Skip to content

Commit 44d708e

Browse files
author
Phillip Webb
committed
Polish
1 parent c11d941 commit 44d708e

File tree

9 files changed

+18
-13
lines changed

9 files changed

+18
-13
lines changed

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/FallbackWebSecurityAutoConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2013 the original author or authors.
2+
* Copyright 2012-2014 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -43,4 +43,4 @@
4343
@AutoConfigureAfter(SecurityAutoConfiguration.class)
4444
@EnableWebSecurity
4545
public class FallbackWebSecurityAutoConfiguration {
46-
}
46+
}

spring-boot-cli/src/main/java/org/springframework/boot/cli/command/jar/JarCommand.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,9 @@ private List<MatchedResource> findMatchingClasspathEntries(List<URL> classpath,
155155
options.valuesOf(this.excludeOption));
156156
List<File> roots = new ArrayList<File>();
157157
for (URL classpathEntry : classpath) {
158-
File file = new File(URI.create(classpathEntry.toString()));
159-
roots.add(file);
158+
roots.add(new File(URI.create(classpathEntry.toString())));
160159
}
161-
List<MatchedResource> found = matcher.find(roots);
162-
return found;
160+
return matcher.find(roots);
163161
}
164162

165163
private void writeJar(File file, Class<?>[] compiledClasses,

spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/autoconfigure/RabbitCompilerAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2013 the original author or authors.
2+
* Copyright 2012-2014 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

spring-boot-cli/src/main/java/org/springframework/boot/groovy/EnableRabbitMessaging.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2013 the original author or authors.
2+
* Copyright 2012-2014 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -22,9 +22,14 @@
2222
import java.lang.annotation.RetentionPolicy;
2323
import java.lang.annotation.Target;
2424

25+
import org.springframework.boot.cli.compiler.autoconfigure.RabbitCompilerAutoConfiguration;
26+
27+
/**
28+
* Pseudo annotation used to trigger {@link RabbitCompilerAutoConfiguration}.
29+
*/
2530
@Target(ElementType.TYPE)
2631
@Documented
2732
@Retention(RetentionPolicy.RUNTIME)
2833
public @interface EnableRabbitMessaging {
2934

30-
}
35+
}

spring-boot-dependencies/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<slf4j.version>1.7.6</slf4j.version>
4444
<snakeyaml.version>1.13</snakeyaml.version>
4545
<spock.version>0.7-groovy-2.0</spock.version>
46-
<spring.version>4.0.2.RELEASE</spring.version>
46+
<spring.version>4.0.3.BUILD-SNAPSHOT</spring.version>
4747
<spring-integration.version>3.0.1.RELEASE</spring-integration.version>
4848
<spring-batch.version>2.2.5.RELEASE</spring-batch.version>
4949
<spring-data-jpa.version>1.5.1.RELEASE</spring-data-jpa.version>

spring-boot-docs/src/main/asciidoc/howto.adoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,8 +569,7 @@ Tomcat 8 for it to work. For example, using the starter poms in Maven:
569569
</dependencies>
570570
----
571571

572-
change the classpath to use Tomcat 8
573-
for it to work.
572+
change the classpath to use Tomcat 8 for it to work.
574573

575574

576575

spring-boot-samples/spring-boot-sample-data-jpa/src/main/java/sample/data/jpa/SampleDataJpaApplication.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@ public class SampleDataJpaApplication {
2929
public static void main(String[] args) throws Exception {
3030
SpringApplication.run(SampleDataJpaApplication.class, args);
3131
}
32+
3233
}

spring-boot-samples/spring-boot-sample-secure/src/main/java/sample/secure/SampleSecureApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public void run(String... args) throws Exception {
4040
new UsernamePasswordAuthenticationToken("user", "N/A", AuthorityUtils
4141
.commaSeparatedStringToAuthorityList("ROLE_USER")));
4242
try {
43-
System.out.println(service.secure());
43+
System.out.println(this.service.secure());
4444
}
4545
finally {
4646
SecurityContextHolder.clearContext();

spring-boot/src/main/java/org/springframework/boot/context/embedded/tomcat/TomcatEmbeddedServletContainerFactory.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,8 +510,10 @@ private Object createNativePage(ErrorPage errorPage) {
510510
}
511511
}
512512
catch (ClassNotFoundException ex) {
513+
// Swallow and continue
513514
}
514515
catch (LinkageError ex) {
516+
// Swallow and continue
515517
}
516518
return nativePage;
517519
}

0 commit comments

Comments
 (0)