Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
b7d08ee5
Commit
b7d08ee5
authored
Dec 08, 2017
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11294 from izeye:remove-final
* pr/11294: Remove "final" keywords
parents
bd7bd6ed
6d54072e
Changes
48
Hide whitespace changes
Inline
Side-by-side
Showing
48 changed files
with
60 additions
and
60 deletions
+60
-60
AuthorizationExceptionMatcher.java
...configure/cloudfoundry/AuthorizationExceptionMatcher.java
+1
-1
OnClassCondition.java
...mework/boot/autoconfigure/condition/OnClassCondition.java
+1
-1
MessageSourceProperties.java
...k/boot/autoconfigure/context/MessageSourceProperties.java
+1
-1
SendGridProperties.java
...ework/boot/autoconfigure/sendgrid/SendGridProperties.java
+1
-1
WebFluxAutoConfiguration.java
.../autoconfigure/web/reactive/WebFluxAutoConfiguration.java
+1
-1
DefaultServletWebServerFactoryCustomizer.java
...web/servlet/DefaultServletWebServerFactoryCustomizer.java
+2
-2
WelcomePageHandlerMapping.java
.../autoconfigure/web/servlet/WelcomePageHandlerMapping.java
+1
-1
Neo4jPropertiesTests.java
...k/boot/autoconfigure/data/neo4j/Neo4jPropertiesTests.java
+1
-1
ArtemisAutoConfigurationTests.java
...oconfigure/jms/artemis/ArtemisAutoConfigurationTests.java
+1
-1
WebSocketMessagingAutoConfigurationTests.java
...ket/servlet/WebSocketMessagingAutoConfigurationTests.java
+1
-1
HelpCommand.java
...rg/springframework/boot/cli/command/core/HelpCommand.java
+1
-1
SpringApplicationRunner.java
...amework/boot/cli/command/run/SpringApplicationRunner.java
+1
-1
DependencyCustomizer.java
...ringframework/boot/cli/compiler/DependencyCustomizer.java
+4
-4
ExtendedGroovyClassLoader.java
...ramework/boot/cli/compiler/ExtendedGroovyClassLoader.java
+1
-1
GroovyCompiler.java
...org/springframework/boot/cli/compiler/GroovyCompiler.java
+1
-1
CliTester.java
...src/test/java/org/springframework/boot/cli/CliTester.java
+2
-2
Restarter.java
.../org/springframework/boot/devtools/restart/Restarter.java
+4
-4
RestartClassLoader.java
...boot/devtools/restart/classloader/RestartClassLoader.java
+2
-2
HttpTunnelConnection.java
...ork/boot/devtools/tunnel/client/HttpTunnelConnection.java
+1
-1
MockRestarter.java
.../springframework/boot/devtools/restart/MockRestarter.java
+1
-1
DataMongoTypeExcludeFilter.java
.../autoconfigure/data/mongo/DataMongoTypeExcludeFilter.java
+1
-1
JooqTypeExcludeFilter.java
...k/boot/test/autoconfigure/jooq/JooqTypeExcludeFilter.java
+1
-1
ConfigFileApplicationContextInitializer.java
...test/context/ConfigFileApplicationContextInitializer.java
+1
-1
AbstractJsonMarshalTester.java
...ngframework/boot/test/json/AbstractJsonMarshalTester.java
+2
-2
OutputCapture.java
...ava/org/springframework/boot/test/rule/OutputCapture.java
+1
-1
JsonContentAssertTests.java
...pringframework/boot/test/json/JsonContentAssertTests.java
+1
-1
ObjectContentAssertTests.java
...ingframework/boot/test/json/ObjectContentAssertTests.java
+1
-1
JarWriter.java
...java/org/springframework/boot/loader/tools/JarWriter.java
+1
-1
SignalUtils.java
...va/org/springframework/boot/loader/tools/SignalUtils.java
+1
-1
LaunchedURLClassLoader.java
...g/springframework/boot/loader/LaunchedURLClassLoader.java
+1
-1
JarFile.java
...ain/java/org/springframework/boot/loader/jar/JarFile.java
+1
-1
PropertiesLauncherTests.java
.../springframework/boot/loader/PropertiesLauncherTests.java
+1
-1
Matched.java
...org/springframework/boot/testsupport/assertj/Matched.java
+1
-1
OutputCapture.java
.../springframework/boot/testsupport/rule/OutputCapture.java
+1
-1
RedisTestServer.java
...pringframework/boot/testsupport/rule/RedisTestServer.java
+1
-1
ModifiedClassPathRunner.java
...testsupport/runner/classpath/ModifiedClassPathRunner.java
+1
-1
StartupInfoLogger.java
...main/java/org/springframework/boot/StartupInfoLogger.java
+1
-1
ExitCodeGeneratorsTests.java
...ava/org/springframework/boot/ExitCodeGeneratorsTests.java
+2
-2
ConfigFileApplicationListenerTests.java
...ot/context/config/ConfigFileApplicationListenerTests.java
+2
-2
UndertowServletWebServerFactoryTests.java
...bedded/undertow/UndertowServletWebServerFactoryTests.java
+1
-1
ChatService.java
...mosphere/src/main/java/sample/atmosphere/ChatService.java
+1
-1
SampleCassandraApplicationTests.java
...ample/data/cassandra/SampleCassandraApplicationTests.java
+1
-1
SampleElasticsearchApplicationTests.java
...ta/elasticsearch/SampleElasticsearchApplicationTests.java
+1
-1
SampleFlywayApplication.java
.../src/main/java/sample/flyway/SampleFlywayApplication.java
+1
-1
SampleAtomikosApplicationTests.java
.../java/sample/atomikos/SampleAtomikosApplicationTests.java
+1
-1
SampleBitronixApplicationTests.java
.../java/sample/bitronix/SampleBitronixApplicationTests.java
+1
-1
SampleNarayanaApplicationTests.java
.../java/sample/narayana/SampleNarayanaApplicationTests.java
+1
-1
SampleIntegrationParentApplicationTests.java
...ent/consumer/SampleIntegrationParentApplicationTests.java
+1
-1
No files found.
spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/cloudfoundry/AuthorizationExceptionMatcher.java
View file @
b7d08ee5
...
@@ -31,7 +31,7 @@ public final class AuthorizationExceptionMatcher {
...
@@ -31,7 +31,7 @@ public final class AuthorizationExceptionMatcher {
private
AuthorizationExceptionMatcher
()
{
private
AuthorizationExceptionMatcher
()
{
}
}
public
static
Matcher
<?>
withReason
(
final
Reason
reason
)
{
public
static
Matcher
<?>
withReason
(
Reason
reason
)
{
return
new
CustomMatcher
<
Object
>(
return
new
CustomMatcher
<
Object
>(
"CloudFoundryAuthorizationException with "
+
reason
+
" reason"
)
{
"CloudFoundryAuthorizationException with "
+
reason
+
" reason"
)
{
...
...
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/OnClassCondition.java
View file @
b7d08ee5
...
@@ -252,7 +252,7 @@ class OnClassCondition extends SpringBootCondition
...
@@ -252,7 +252,7 @@ class OnClassCondition extends SpringBootCondition
private
volatile
ConditionOutcome
[]
outcomes
;
private
volatile
ConditionOutcome
[]
outcomes
;
private
ThreadedOutcomesResolver
(
final
OutcomesResolver
outcomesResolver
)
{
private
ThreadedOutcomesResolver
(
OutcomesResolver
outcomesResolver
)
{
this
.
thread
=
new
Thread
(
this
.
thread
=
new
Thread
(
()
->
this
.
outcomes
=
outcomesResolver
.
resolveOutcomes
());
()
->
this
.
outcomes
=
outcomesResolver
.
resolveOutcomes
());
this
.
thread
.
start
();
this
.
thread
.
start
();
...
...
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/context/MessageSourceProperties.java
View file @
b7d08ee5
...
@@ -110,7 +110,7 @@ public class MessageSourceProperties {
...
@@ -110,7 +110,7 @@ public class MessageSourceProperties {
return
this
.
useCodeAsDefaultMessage
;
return
this
.
useCodeAsDefaultMessage
;
}
}
public
void
setUseCodeAsDefaultMessage
(
final
boolean
useCodeAsDefaultMessage
)
{
public
void
setUseCodeAsDefaultMessage
(
boolean
useCodeAsDefaultMessage
)
{
this
.
useCodeAsDefaultMessage
=
useCodeAsDefaultMessage
;
this
.
useCodeAsDefaultMessage
=
useCodeAsDefaultMessage
;
}
}
...
...
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/sendgrid/SendGridProperties.java
View file @
b7d08ee5
...
@@ -42,7 +42,7 @@ public class SendGridProperties {
...
@@ -42,7 +42,7 @@ public class SendGridProperties {
return
this
.
apiKey
;
return
this
.
apiKey
;
}
}
public
void
setApiKey
(
final
String
apiKey
)
{
public
void
setApiKey
(
String
apiKey
)
{
this
.
apiKey
=
apiKey
;
this
.
apiKey
=
apiKey
;
}
}
...
...
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/reactive/WebFluxAutoConfiguration.java
View file @
b7d08ee5
...
@@ -179,7 +179,7 @@ public class WebFluxAutoConfiguration {
...
@@ -179,7 +179,7 @@ public class WebFluxAutoConfiguration {
}
}
@Override
@Override
public
void
addFormatters
(
final
FormatterRegistry
registry
)
{
public
void
addFormatters
(
FormatterRegistry
registry
)
{
for
(
Converter
<?,
?>
converter
:
getBeansOfType
(
Converter
.
class
))
{
for
(
Converter
<?,
?>
converter
:
getBeansOfType
(
Converter
.
class
))
{
registry
.
addConverter
(
converter
);
registry
.
addConverter
(
converter
);
}
}
...
...
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/servlet/DefaultServletWebServerFactoryCustomizer.java
View file @
b7d08ee5
...
@@ -411,7 +411,7 @@ public class DefaultServletWebServerFactoryCustomizer
...
@@ -411,7 +411,7 @@ public class DefaultServletWebServerFactoryCustomizer
private
static
class
UndertowCustomizer
{
private
static
class
UndertowCustomizer
{
protected
static
void
customizeUndertow
(
final
ServerProperties
serverProperties
,
protected
static
void
customizeUndertow
(
ServerProperties
serverProperties
,
Environment
environment
,
UndertowServletWebServerFactory
factory
)
{
Environment
environment
,
UndertowServletWebServerFactory
factory
)
{
ServerProperties
.
Undertow
undertowProperties
=
serverProperties
.
getUndertow
();
ServerProperties
.
Undertow
undertowProperties
=
serverProperties
.
getUndertow
();
...
@@ -478,7 +478,7 @@ public class DefaultServletWebServerFactoryCustomizer
...
@@ -478,7 +478,7 @@ public class DefaultServletWebServerFactoryCustomizer
private
static
class
JettyCustomizer
{
private
static
class
JettyCustomizer
{
public
static
void
customizeJetty
(
final
ServerProperties
serverProperties
,
public
static
void
customizeJetty
(
ServerProperties
serverProperties
,
Environment
environment
,
JettyServletWebServerFactory
factory
)
{
Environment
environment
,
JettyServletWebServerFactory
factory
)
{
ServerProperties
.
Jetty
jettyProperties
=
serverProperties
.
getJetty
();
ServerProperties
.
Jetty
jettyProperties
=
serverProperties
.
getJetty
();
factory
.
setUseForwardHeaders
(
factory
.
setUseForwardHeaders
(
...
...
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/servlet/WelcomePageHandlerMapping.java
View file @
b7d08ee5
...
@@ -66,7 +66,7 @@ final class WelcomePageHandlerMapping extends AbstractUrlHandlerMapping {
...
@@ -66,7 +66,7 @@ final class WelcomePageHandlerMapping extends AbstractUrlHandlerMapping {
applicationContext
)
!=
null
;
applicationContext
)
!=
null
;
}
}
private
void
setRootViewName
(
final
String
viewName
)
{
private
void
setRootViewName
(
String
viewName
)
{
ParameterizableViewController
controller
=
new
ParameterizableViewController
();
ParameterizableViewController
controller
=
new
ParameterizableViewController
();
controller
.
setViewName
(
viewName
);
controller
.
setViewName
(
viewName
);
setRootHandler
(
controller
);
setRootHandler
(
controller
);
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/neo4j/Neo4jPropertiesTests.java
View file @
b7d08ee5
...
@@ -172,7 +172,7 @@ public class Neo4jPropertiesTests {
...
@@ -172,7 +172,7 @@ public class Neo4jPropertiesTests {
}
}
}
}
public
Neo4jProperties
load
(
final
boolean
embeddedAvailable
,
String
...
environment
)
{
public
Neo4jProperties
load
(
boolean
embeddedAvailable
,
String
...
environment
)
{
AnnotationConfigApplicationContext
ctx
=
new
AnnotationConfigApplicationContext
();
AnnotationConfigApplicationContext
ctx
=
new
AnnotationConfigApplicationContext
();
ctx
.
setClassLoader
(
new
URLClassLoader
(
new
URL
[
0
],
getClass
().
getClassLoader
())
{
ctx
.
setClassLoader
(
new
URLClassLoader
(
new
URL
[
0
],
getClass
().
getClassLoader
())
{
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jms/artemis/ArtemisAutoConfigurationTests.java
View file @
b7d08ee5
...
@@ -335,7 +335,7 @@ public class ArtemisAutoConfigurationTests {
...
@@ -335,7 +335,7 @@ public class ArtemisAutoConfigurationTests {
checkDestination
(
name
,
true
,
shouldExist
);
checkDestination
(
name
,
true
,
shouldExist
);
}
}
public
void
checkDestination
(
final
String
name
,
final
boolean
pubSub
,
public
void
checkDestination
(
String
name
,
final
boolean
pubSub
,
final
boolean
shouldExist
)
{
final
boolean
shouldExist
)
{
this
.
jmsTemplate
.
execute
((
SessionCallback
<
Void
>)
(
session
)
->
{
this
.
jmsTemplate
.
execute
((
SessionCallback
<
Void
>)
(
session
)
->
{
try
{
try
{
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/websocket/servlet/WebSocketMessagingAutoConfigurationTests.java
View file @
b7d08ee5
...
@@ -139,7 +139,7 @@ public class WebSocketMessagingAutoConfigurationTests {
...
@@ -139,7 +139,7 @@ public class WebSocketMessagingAutoConfigurationTests {
.
getField
(
compositeDefaultConverter
,
"converters"
);
.
getField
(
compositeDefaultConverter
,
"converters"
);
}
}
private
Object
performStompSubscription
(
final
String
topic
)
throws
Throwable
{
private
Object
performStompSubscription
(
String
topic
)
throws
Throwable
{
TestPropertyValues
TestPropertyValues
.
of
(
"server.port:0"
,
"spring.jackson.serialization.indent-output:true"
)
.
of
(
"server.port:0"
,
"spring.jackson.serialization.indent-output:true"
)
.
applyTo
(
this
.
context
);
.
applyTo
(
this
.
context
);
...
...
spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/core/HelpCommand.java
View file @
b7d08ee5
...
@@ -59,7 +59,7 @@ public class HelpCommand extends AbstractCommand {
...
@@ -59,7 +59,7 @@ public class HelpCommand extends AbstractCommand {
@Override
@Override
public
Collection
<
OptionHelp
>
getOptionsHelp
()
{
public
Collection
<
OptionHelp
>
getOptionsHelp
()
{
List
<
OptionHelp
>
help
=
new
ArrayList
<>();
List
<
OptionHelp
>
help
=
new
ArrayList
<>();
for
(
final
Command
command
:
this
.
commandRunner
)
{
for
(
Command
command
:
this
.
commandRunner
)
{
if
(
isHelpShown
(
command
))
{
if
(
isHelpShown
(
command
))
{
help
.
add
(
new
OptionHelp
()
{
help
.
add
(
new
OptionHelp
()
{
...
...
spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/run/SpringApplicationRunner.java
View file @
b7d08ee5
...
@@ -65,7 +65,7 @@ public class SpringApplicationRunner {
...
@@ -65,7 +65,7 @@ public class SpringApplicationRunner {
* @param sources the files to compile/watch
* @param sources the files to compile/watch
* @param args input arguments
* @param args input arguments
*/
*/
SpringApplicationRunner
(
final
SpringApplicationRunnerConfiguration
configuration
,
SpringApplicationRunner
(
SpringApplicationRunnerConfiguration
configuration
,
String
[]
sources
,
String
...
args
)
{
String
[]
sources
,
String
...
args
)
{
this
.
configuration
=
configuration
;
this
.
configuration
=
configuration
;
this
.
sources
=
sources
.
clone
();
this
.
sources
=
sources
.
clone
();
...
...
spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/DependencyCustomizer.java
View file @
b7d08ee5
...
@@ -88,7 +88,7 @@ public class DependencyCustomizer {
...
@@ -88,7 +88,7 @@ public class DependencyCustomizer {
* @param classNames the class names to test
* @param classNames the class names to test
* @return a nested {@link DependencyCustomizer}
* @return a nested {@link DependencyCustomizer}
*/
*/
public
DependencyCustomizer
ifAnyMissingClasses
(
final
String
...
classNames
)
{
public
DependencyCustomizer
ifAnyMissingClasses
(
String
...
classNames
)
{
return
new
DependencyCustomizer
(
this
)
{
return
new
DependencyCustomizer
(
this
)
{
@Override
@Override
protected
boolean
canAdd
()
{
protected
boolean
canAdd
()
{
...
@@ -111,7 +111,7 @@ public class DependencyCustomizer {
...
@@ -111,7 +111,7 @@ public class DependencyCustomizer {
* @param classNames the class names to test
* @param classNames the class names to test
* @return a nested {@link DependencyCustomizer}
* @return a nested {@link DependencyCustomizer}
*/
*/
public
DependencyCustomizer
ifAllMissingClasses
(
final
String
...
classNames
)
{
public
DependencyCustomizer
ifAllMissingClasses
(
String
...
classNames
)
{
return
new
DependencyCustomizer
(
this
)
{
return
new
DependencyCustomizer
(
this
)
{
@Override
@Override
protected
boolean
canAdd
()
{
protected
boolean
canAdd
()
{
...
@@ -135,7 +135,7 @@ public class DependencyCustomizer {
...
@@ -135,7 +135,7 @@ public class DependencyCustomizer {
* @param paths the paths to test
* @param paths the paths to test
* @return a nested {@link DependencyCustomizer}
* @return a nested {@link DependencyCustomizer}
*/
*/
public
DependencyCustomizer
ifAllResourcesPresent
(
final
String
...
paths
)
{
public
DependencyCustomizer
ifAllResourcesPresent
(
String
...
paths
)
{
return
new
DependencyCustomizer
(
this
)
{
return
new
DependencyCustomizer
(
this
)
{
@Override
@Override
protected
boolean
canAdd
()
{
protected
boolean
canAdd
()
{
...
@@ -161,7 +161,7 @@ public class DependencyCustomizer {
...
@@ -161,7 +161,7 @@ public class DependencyCustomizer {
* @param paths the paths to test
* @param paths the paths to test
* @return a nested {@link DependencyCustomizer}
* @return a nested {@link DependencyCustomizer}
*/
*/
public
DependencyCustomizer
ifAnyResourcesPresent
(
final
String
...
paths
)
{
public
DependencyCustomizer
ifAnyResourcesPresent
(
String
...
paths
)
{
return
new
DependencyCustomizer
(
this
)
{
return
new
DependencyCustomizer
(
this
)
{
@Override
@Override
protected
boolean
canAdd
()
{
protected
boolean
canAdd
()
{
...
...
spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/ExtendedGroovyClassLoader.java
View file @
b7d08ee5
...
@@ -179,7 +179,7 @@ public class ExtendedGroovyClassLoader extends GroovyClassLoader {
...
@@ -179,7 +179,7 @@ public class ExtendedGroovyClassLoader extends GroovyClassLoader {
parent
.
getParent
());
parent
.
getParent
());
}
}
private
URL
[]
getGroovyJars
(
final
ClassLoader
parent
)
{
private
URL
[]
getGroovyJars
(
ClassLoader
parent
)
{
Set
<
URL
>
urls
=
new
HashSet
<>();
Set
<
URL
>
urls
=
new
HashSet
<>();
findGroovyJarsDirectly
(
parent
,
urls
);
findGroovyJarsDirectly
(
parent
,
urls
);
if
(
urls
.
isEmpty
())
{
if
(
urls
.
isEmpty
())
{
...
...
spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/GroovyCompiler.java
View file @
b7d08ee5
...
@@ -85,7 +85,7 @@ public class GroovyCompiler {
...
@@ -85,7 +85,7 @@ public class GroovyCompiler {
* Create a new {@link GroovyCompiler} instance.
* Create a new {@link GroovyCompiler} instance.
* @param configuration the compiler configuration
* @param configuration the compiler configuration
*/
*/
public
GroovyCompiler
(
final
GroovyCompilerConfiguration
configuration
)
{
public
GroovyCompiler
(
GroovyCompilerConfiguration
configuration
)
{
this
.
configuration
=
configuration
;
this
.
configuration
=
configuration
;
this
.
loader
=
createLoader
(
configuration
);
this
.
loader
=
createLoader
(
configuration
);
...
...
spring-boot-project/spring-boot-cli/src/test/java/org/springframework/boot/cli/CliTester.java
View file @
b7d08ee5
...
@@ -100,7 +100,7 @@ public class CliTester implements TestRule {
...
@@ -100,7 +100,7 @@ public class CliTester implements TestRule {
return
getOutput
();
return
getOutput
();
}
}
private
<
T
extends
OptionParsingCommand
>
Future
<
T
>
submitCommand
(
final
T
command
,
private
<
T
extends
OptionParsingCommand
>
Future
<
T
>
submitCommand
(
T
command
,
String
...
args
)
{
String
...
args
)
{
clearUrlHandler
();
clearUrlHandler
();
final
String
[]
sources
=
getSources
(
args
);
final
String
[]
sources
=
getSources
(
args
);
...
@@ -165,7 +165,7 @@ public class CliTester implements TestRule {
...
@@ -165,7 +165,7 @@ public class CliTester implements TestRule {
}
}
@Override
@Override
public
Statement
apply
(
final
Statement
base
,
final
Description
description
)
{
public
Statement
apply
(
Statement
base
,
Description
description
)
{
final
Statement
statement
=
CliTester
.
this
.
outputCapture
final
Statement
statement
=
CliTester
.
this
.
outputCapture
.
apply
(
new
RunLauncherStatement
(
base
),
description
);
.
apply
(
new
RunLauncherStatement
(
base
),
description
);
return
new
Statement
()
{
return
new
Statement
()
{
...
...
spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/Restarter.java
View file @
b7d08ee5
...
@@ -240,7 +240,7 @@ public class Restarter {
...
@@ -240,7 +240,7 @@ public class Restarter {
* Restart the running application.
* Restart the running application.
* @param failureHandler a failure handler to deal with application that doesn't start
* @param failureHandler a failure handler to deal with application that doesn't start
*/
*/
public
void
restart
(
final
FailureHandler
failureHandler
)
{
public
void
restart
(
FailureHandler
failureHandler
)
{
if
(!
this
.
enabled
)
{
if
(!
this
.
enabled
)
{
this
.
logger
.
debug
(
"Application restart is disabled"
);
this
.
logger
.
debug
(
"Application restart is disabled"
);
return
;
return
;
...
@@ -382,7 +382,7 @@ public class Restarter {
...
@@ -382,7 +382,7 @@ public class Restarter {
memory
.
add
(
new
long
[
102400
]);
memory
.
add
(
new
long
[
102400
]);
}
}
}
}
catch
(
final
OutOfMemoryError
ex
)
{
catch
(
OutOfMemoryError
ex
)
{
// Expected
// Expected
}
}
}
}
...
@@ -439,7 +439,7 @@ public class Restarter {
...
@@ -439,7 +439,7 @@ public class Restarter {
}
}
}
}
public
Object
getOrAddAttribute
(
final
String
name
,
public
Object
getOrAddAttribute
(
String
name
,
final
ObjectFactory
<?>
objectFactory
)
{
final
ObjectFactory
<?>
objectFactory
)
{
synchronized
(
this
.
attributes
)
{
synchronized
(
this
.
attributes
)
{
if
(!
this
.
attributes
.
containsKey
(
name
))
{
if
(!
this
.
attributes
.
containsKey
(
name
))
{
...
@@ -630,7 +630,7 @@ public class Restarter {
...
@@ -630,7 +630,7 @@ public class Restarter {
private
class
LeakSafeThreadFactory
implements
ThreadFactory
{
private
class
LeakSafeThreadFactory
implements
ThreadFactory
{
@Override
@Override
public
Thread
newThread
(
final
Runnable
runnable
)
{
public
Thread
newThread
(
Runnable
runnable
)
{
return
getLeakSafeThread
().
callAndWait
(()
->
{
return
getLeakSafeThread
().
callAndWait
(()
->
{
Thread
thread
=
new
Thread
(
runnable
);
Thread
thread
=
new
Thread
(
runnable
);
thread
.
setContextClassLoader
(
Restarter
.
this
.
applicationClassLoader
);
thread
.
setContextClassLoader
(
Restarter
.
this
.
applicationClassLoader
);
...
...
spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/classloader/RestartClassLoader.java
View file @
b7d08ee5
...
@@ -118,7 +118,7 @@ public class RestartClassLoader extends URLClassLoader implements SmartClassLoad
...
@@ -118,7 +118,7 @@ public class RestartClassLoader extends URLClassLoader implements SmartClassLoad
}
}
@Override
@Override
public
URL
findResource
(
final
String
name
)
{
public
URL
findResource
(
String
name
)
{
final
ClassLoaderFile
file
=
this
.
updatedFiles
.
getFile
(
name
);
final
ClassLoaderFile
file
=
this
.
updatedFiles
.
getFile
(
name
);
if
(
file
==
null
)
{
if
(
file
==
null
)
{
return
super
.
findResource
(
name
);
return
super
.
findResource
(
name
);
...
@@ -154,7 +154,7 @@ public class RestartClassLoader extends URLClassLoader implements SmartClassLoad
...
@@ -154,7 +154,7 @@ public class RestartClassLoader extends URLClassLoader implements SmartClassLoad
}
}
@Override
@Override
protected
Class
<?>
findClass
(
final
String
name
)
throws
ClassNotFoundException
{
protected
Class
<?>
findClass
(
String
name
)
throws
ClassNotFoundException
{
String
path
=
name
.
replace
(
'.'
,
'/'
).
concat
(
".class"
);
String
path
=
name
.
replace
(
'.'
,
'/'
).
concat
(
".class"
);
final
ClassLoaderFile
file
=
this
.
updatedFiles
.
getFile
(
path
);
final
ClassLoaderFile
file
=
this
.
updatedFiles
.
getFile
(
path
);
if
(
file
==
null
)
{
if
(
file
==
null
)
{
...
...
spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/tunnel/client/HttpTunnelConnection.java
View file @
b7d08ee5
...
@@ -147,7 +147,7 @@ public class HttpTunnelConnection implements TunnelConnection {
...
@@ -147,7 +147,7 @@ public class HttpTunnelConnection implements TunnelConnection {
return
size
;
return
size
;
}
}
private
void
openNewConnection
(
final
HttpTunnelPayload
payload
)
{
private
void
openNewConnection
(
HttpTunnelPayload
payload
)
{
HttpTunnelConnection
.
this
.
executor
.
execute
(
new
Runnable
()
{
HttpTunnelConnection
.
this
.
executor
.
execute
(
new
Runnable
()
{
@Override
@Override
...
...
spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/restart/MockRestarter.java
View file @
b7d08ee5
...
@@ -43,7 +43,7 @@ public class MockRestarter implements TestRule {
...
@@ -43,7 +43,7 @@ public class MockRestarter implements TestRule {
private
Restarter
mock
=
mock
(
Restarter
.
class
);
private
Restarter
mock
=
mock
(
Restarter
.
class
);
@Override
@Override
public
Statement
apply
(
final
Statement
base
,
Description
description
)
{
public
Statement
apply
(
Statement
base
,
Description
description
)
{
return
new
Statement
()
{
return
new
Statement
()
{
@Override
@Override
...
...
spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/data/mongo/DataMongoTypeExcludeFilter.java
View file @
b7d08ee5
...
@@ -44,7 +44,7 @@ class DataMongoTypeExcludeFilter extends AnnotationCustomizableTypeExcludeFilter
...
@@ -44,7 +44,7 @@ class DataMongoTypeExcludeFilter extends AnnotationCustomizableTypeExcludeFilter
}
}
@Override
@Override
protected
Filter
[]
getFilters
(
final
FilterType
type
)
{
protected
Filter
[]
getFilters
(
FilterType
type
)
{
switch
(
type
)
{
switch
(
type
)
{
case
INCLUDE:
case
INCLUDE:
return
this
.
annotation
.
includeFilters
();
return
this
.
annotation
.
includeFilters
();
...
...
spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/jooq/JooqTypeExcludeFilter.java
View file @
b7d08ee5
...
@@ -44,7 +44,7 @@ class JooqTypeExcludeFilter extends AnnotationCustomizableTypeExcludeFilter {
...
@@ -44,7 +44,7 @@ class JooqTypeExcludeFilter extends AnnotationCustomizableTypeExcludeFilter {
}
}
@Override
@Override
protected
Filter
[]
getFilters
(
final
FilterType
type
)
{
protected
Filter
[]
getFilters
(
FilterType
type
)
{
switch
(
type
)
{
switch
(
type
)
{
case
INCLUDE:
case
INCLUDE:
return
this
.
annotation
.
includeFilters
();
return
this
.
annotation
.
includeFilters
();
...
...
spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/ConfigFileApplicationContextInitializer.java
View file @
b7d08ee5
...
@@ -34,7 +34,7 @@ public class ConfigFileApplicationContextInitializer
...
@@ -34,7 +34,7 @@ public class ConfigFileApplicationContextInitializer
implements
ApplicationContextInitializer
<
ConfigurableApplicationContext
>
{
implements
ApplicationContextInitializer
<
ConfigurableApplicationContext
>
{
@Override
@Override
public
void
initialize
(
final
ConfigurableApplicationContext
applicationContext
)
{
public
void
initialize
(
ConfigurableApplicationContext
applicationContext
)
{
new
ConfigFileApplicationListener
()
{
new
ConfigFileApplicationListener
()
{
public
void
apply
()
{
public
void
apply
()
{
addPropertySources
(
applicationContext
.
getEnvironment
(),
addPropertySources
(
applicationContext
.
getEnvironment
(),
...
...
spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/json/AbstractJsonMarshalTester.java
View file @
b7d08ee5
...
@@ -365,13 +365,13 @@ public abstract class AbstractJsonMarshalTester<T> {
...
@@ -365,13 +365,13 @@ public abstract class AbstractJsonMarshalTester<T> {
this
.
testerClass
=
testerClass
;
this
.
testerClass
=
testerClass
;
}
}
public
void
initFields
(
final
Object
testInstance
,
final
M
marshaller
)
{
public
void
initFields
(
Object
testInstance
,
M
marshaller
)
{
Assert
.
notNull
(
testInstance
,
"TestInstance must not be null"
);
Assert
.
notNull
(
testInstance
,
"TestInstance must not be null"
);
Assert
.
notNull
(
marshaller
,
"Marshaller must not be null"
);
Assert
.
notNull
(
marshaller
,
"Marshaller must not be null"
);
initFields
(
testInstance
,
()
->
marshaller
);
initFields
(
testInstance
,
()
->
marshaller
);
}
}
public
void
initFields
(
final
Object
testInstance
,
public
void
initFields
(
Object
testInstance
,
final
ObjectFactory
<
M
>
marshaller
)
{
final
ObjectFactory
<
M
>
marshaller
)
{
Assert
.
notNull
(
testInstance
,
"TestInstance must not be null"
);
Assert
.
notNull
(
testInstance
,
"TestInstance must not be null"
);
Assert
.
notNull
(
marshaller
,
"Marshaller must not be null"
);
Assert
.
notNull
(
marshaller
,
"Marshaller must not be null"
);
...
...
spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/rule/OutputCapture.java
View file @
b7d08ee5
...
@@ -52,7 +52,7 @@ public class OutputCapture implements TestRule {
...
@@ -52,7 +52,7 @@ public class OutputCapture implements TestRule {
private
List
<
Matcher
<?
super
String
>>
matchers
=
new
ArrayList
<>();
private
List
<
Matcher
<?
super
String
>>
matchers
=
new
ArrayList
<>();
@Override
@Override
public
Statement
apply
(
final
Statement
base
,
Description
description
)
{
public
Statement
apply
(
Statement
base
,
Description
description
)
{
return
new
Statement
()
{
return
new
Statement
()
{
@Override
@Override
public
void
evaluate
()
throws
Throwable
{
public
void
evaluate
()
throws
Throwable
{
...
...
spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/json/JsonContentAssertTests.java
View file @
b7d08ee5
...
@@ -1306,7 +1306,7 @@ public class JsonContentAssertTests {
...
@@ -1306,7 +1306,7 @@ public class JsonContentAssertTests {
}
}
private
AssertProvider
<
JsonContentAssert
>
forJson
(
final
String
json
)
{
private
AssertProvider
<
JsonContentAssert
>
forJson
(
String
json
)
{
return
()
->
new
JsonContentAssert
(
JsonContentAssertTests
.
class
,
json
);
return
()
->
new
JsonContentAssert
(
JsonContentAssertTests
.
class
,
json
);
}
}
...
...
spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/json/ObjectContentAssertTests.java
View file @
b7d08ee5
...
@@ -72,7 +72,7 @@ public class ObjectContentAssertTests {
...
@@ -72,7 +72,7 @@ public class ObjectContentAssertTests {
assertThat
(
forObject
(
SOURCE
)).
asMap
();
assertThat
(
forObject
(
SOURCE
)).
asMap
();
}
}
private
AssertProvider
<
ObjectContentAssert
<
Object
>>
forObject
(
final
Object
source
)
{
private
AssertProvider
<
ObjectContentAssert
<
Object
>>
forObject
(
Object
source
)
{
return
()
->
new
ObjectContentAssert
<>(
source
);
return
()
->
new
ObjectContentAssert
<>(
source
);
}
}
...
...
spring-boot-project/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/JarWriter.java
View file @
b7d08ee5
...
@@ -108,7 +108,7 @@ public class JarWriter implements LoaderClassesWriter, AutoCloseable {
...
@@ -108,7 +108,7 @@ public class JarWriter implements LoaderClassesWriter, AutoCloseable {
* @param manifest the manifest to write
* @param manifest the manifest to write
* @throws IOException of the manifest cannot be written
* @throws IOException of the manifest cannot be written
*/
*/
public
void
writeManifest
(
final
Manifest
manifest
)
throws
IOException
{
public
void
writeManifest
(
Manifest
manifest
)
throws
IOException
{
JarArchiveEntry
entry
=
new
JarArchiveEntry
(
"META-INF/MANIFEST.MF"
);
JarArchiveEntry
entry
=
new
JarArchiveEntry
(
"META-INF/MANIFEST.MF"
);
writeEntry
(
entry
,
manifest:
:
write
);
writeEntry
(
entry
,
manifest:
:
write
);
}
}
...
...
spring-boot-project/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/SignalUtils.java
View file @
b7d08ee5
...
@@ -37,7 +37,7 @@ public final class SignalUtils {
...
@@ -37,7 +37,7 @@ public final class SignalUtils {
* Handle {@literal INT} signals by calling the specified {@link Runnable}.
* Handle {@literal INT} signals by calling the specified {@link Runnable}.
* @param runnable the runnable to call on SIGINT.
* @param runnable the runnable to call on SIGINT.
*/
*/
public
static
void
attachSignalHandler
(
final
Runnable
runnable
)
{
public
static
void
attachSignalHandler
(
Runnable
runnable
)
{
Signal
.
handle
(
SIG_INT
,
(
signal
)
->
runnable
.
run
());
Signal
.
handle
(
SIG_INT
,
(
signal
)
->
runnable
.
run
());
}
}
...
...
spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/LaunchedURLClassLoader.java
View file @
b7d08ee5
...
@@ -126,7 +126,7 @@ public class LaunchedURLClassLoader extends URLClassLoader {
...
@@ -126,7 +126,7 @@ public class LaunchedURLClassLoader extends URLClassLoader {
}
}
}
}
private
void
definePackage
(
final
String
className
,
final
String
packageName
)
{
private
void
definePackage
(
String
className
,
String
packageName
)
{
try
{
try
{
AccessController
.
doPrivileged
((
PrivilegedExceptionAction
<
Object
>)
()
->
{
AccessController
.
doPrivileged
((
PrivilegedExceptionAction
<
Object
>)
()
->
{
String
packageEntryName
=
packageName
.
replace
(
'.'
,
'/'
)
+
"/"
;
String
packageEntryName
=
packageName
.
replace
(
'.'
,
'/'
)
+
"/"
;
...
...
spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/JarFile.java
View file @
b7d08ee5
...
@@ -228,7 +228,7 @@ public class JarFile extends java.util.jar.JarFile {
...
@@ -228,7 +228,7 @@ public class JarFile extends java.util.jar.JarFile {
* @return a {@link JarFile} for the entry
* @return a {@link JarFile} for the entry
* @throws IOException if the nested jar file cannot be read
* @throws IOException if the nested jar file cannot be read
*/
*/
public
synchronized
JarFile
getNestedJarFile
(
final
ZipEntry
entry
)
public
synchronized
JarFile
getNestedJarFile
(
ZipEntry
entry
)
throws
IOException
{
throws
IOException
{
return
getNestedJarFile
((
JarEntry
)
entry
);
return
getNestedJarFile
((
JarEntry
)
entry
);
}
}
...
...
spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/PropertiesLauncherTests.java
View file @
b7d08ee5
...
@@ -348,7 +348,7 @@ public class PropertiesLauncherTests {
...
@@ -348,7 +348,7 @@ public class PropertiesLauncherTests {
assertThat
(
timeout
).
as
(
"Timed out waiting for ("
+
value
+
")"
).
isTrue
();
assertThat
(
timeout
).
as
(
"Timed out waiting for ("
+
value
+
")"
).
isTrue
();
}
}
private
Condition
<
Archive
>
endingWith
(
final
String
value
)
{
private
Condition
<
Archive
>
endingWith
(
String
value
)
{
return
new
Condition
<
Archive
>()
{
return
new
Condition
<
Archive
>()
{
@Override
@Override
...
...
spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/assertj/Matched.java
View file @
b7d08ee5
...
@@ -39,7 +39,7 @@ public final class Matched<T> extends Condition<T> {
...
@@ -39,7 +39,7 @@ public final class Matched<T> extends Condition<T> {
}
}
@Override
@Override
public
boolean
matches
(
final
T
value
)
{
public
boolean
matches
(
T
value
)
{
if
(
this
.
matcher
.
matches
(
value
))
{
if
(
this
.
matcher
.
matches
(
value
))
{
return
true
;
return
true
;
}
}
...
...
spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/rule/OutputCapture.java
View file @
b7d08ee5
...
@@ -48,7 +48,7 @@ public class OutputCapture implements TestRule {
...
@@ -48,7 +48,7 @@ public class OutputCapture implements TestRule {
private
List
<
Matcher
<?
super
String
>>
matchers
=
new
ArrayList
<>();
private
List
<
Matcher
<?
super
String
>>
matchers
=
new
ArrayList
<>();
@Override
@Override
public
Statement
apply
(
final
Statement
base
,
Description
description
)
{
public
Statement
apply
(
Statement
base
,
Description
description
)
{
return
new
Statement
()
{
return
new
Statement
()
{
@Override
@Override
public
void
evaluate
()
throws
Throwable
{
public
void
evaluate
()
throws
Throwable
{
...
...
spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/rule/RedisTestServer.java
View file @
b7d08ee5
...
@@ -48,7 +48,7 @@ public class RedisTestServer implements TestRule {
...
@@ -48,7 +48,7 @@ public class RedisTestServer implements TestRule {
private
RedisConnectionFactory
connectionFactory
;
private
RedisConnectionFactory
connectionFactory
;
@Override
@Override
public
Statement
apply
(
final
Statement
base
,
Description
description
)
{
public
Statement
apply
(
Statement
base
,
Description
description
)
{
try
{
try
{
this
.
connectionFactory
=
createConnectionFactory
();
this
.
connectionFactory
=
createConnectionFactory
();
return
new
RedisStatement
(
base
,
this
.
connectionFactory
);
return
new
RedisStatement
(
base
,
this
.
connectionFactory
);
...
...
spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/runner/classpath/ModifiedClassPathRunner.java
View file @
b7d08ee5
...
@@ -317,7 +317,7 @@ public class ModifiedClassPathRunner extends BlockJUnit4ClassRunner {
...
@@ -317,7 +317,7 @@ public class ModifiedClassPathRunner extends BlockJUnit4ClassRunner {
}
}
@Override
@Override
public
Object
invokeExplosively
(
final
Object
target
,
final
Object
...
params
)
public
Object
invokeExplosively
(
Object
target
,
Object
...
params
)
throws
Throwable
{
throws
Throwable
{
return
doWithModifiedClassPathThreadContextClassLoader
(
return
doWithModifiedClassPathThreadContextClassLoader
(
()
->
ModifiedClassPathFrameworkMethod
.
super
.
invokeExplosively
(
()
->
ModifiedClassPathFrameworkMethod
.
super
.
invokeExplosively
(
...
...
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/StartupInfoLogger.java
View file @
b7d08ee5
...
@@ -99,7 +99,7 @@ class StartupInfoLogger {
...
@@ -99,7 +99,7 @@ class StartupInfoLogger {
:
"application"
);
:
"application"
);
}
}
private
String
getVersion
(
final
Class
<?>
source
)
{
private
String
getVersion
(
Class
<?>
source
)
{
return
getValue
(
" v"
,
()
->
source
.
getPackage
().
getImplementationVersion
(),
""
);
return
getValue
(
" v"
,
()
->
source
.
getPackage
().
getImplementationVersion
(),
""
);
}
}
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/ExitCodeGeneratorsTests.java
View file @
b7d08ee5
...
@@ -101,8 +101,8 @@ public class ExitCodeGeneratorsTests {
...
@@ -101,8 +101,8 @@ public class ExitCodeGeneratorsTests {
return
generator
;
return
generator
;
}
}
private
ExitCodeExceptionMapper
mockMapper
(
final
Class
<?>
exceptionType
,
private
ExitCodeExceptionMapper
mockMapper
(
Class
<?>
exceptionType
,
final
int
exitCode
)
{
int
exitCode
)
{
return
(
exception
)
->
{
return
(
exception
)
->
{
if
(
exceptionType
.
isInstance
(
exception
))
{
if
(
exceptionType
.
isInstance
(
exception
))
{
return
exitCode
;
return
exitCode
;
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigFileApplicationListenerTests.java
View file @
b7d08ee5
...
@@ -100,7 +100,7 @@ public class ConfigFileApplicationListenerTests {
...
@@ -100,7 +100,7 @@ public class ConfigFileApplicationListenerTests {
public
void
loadCustomResource
()
throws
Exception
{
public
void
loadCustomResource
()
throws
Exception
{
this
.
application
.
setResourceLoader
(
new
ResourceLoader
()
{
this
.
application
.
setResourceLoader
(
new
ResourceLoader
()
{
@Override
@Override
public
Resource
getResource
(
final
String
location
)
{
public
Resource
getResource
(
String
location
)
{
if
(
location
.
equals
(
"classpath:/custom.properties"
))
{
if
(
location
.
equals
(
"classpath:/custom.properties"
))
{
return
new
ByteArrayResource
(
"the.property: fromcustom"
.
getBytes
(),
return
new
ByteArrayResource
(
"the.property: fromcustom"
.
getBytes
(),
location
)
{
location
)
{
...
@@ -885,7 +885,7 @@ public class ConfigFileApplicationListenerTests {
...
@@ -885,7 +885,7 @@ public class ConfigFileApplicationListenerTests {
};
};
}
}
private
Condition
<
ConfigurableEnvironment
>
matchingProfile
(
final
String
profile
)
{
private
Condition
<
ConfigurableEnvironment
>
matchingProfile
(
String
profile
)
{
return
new
Condition
<
ConfigurableEnvironment
>(
"accepts profile "
+
profile
)
{
return
new
Condition
<
ConfigurableEnvironment
>(
"accepts profile "
+
profile
)
{
@Override
@Override
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/undertow/UndertowServletWebServerFactoryTests.java
View file @
b7d08ee5
...
@@ -202,7 +202,7 @@ public class UndertowServletWebServerFactoryTests
...
@@ -202,7 +202,7 @@ public class UndertowServletWebServerFactoryTests
}
}
@Override
@Override
protected
void
addConnector
(
final
int
port
,
AbstractServletWebServerFactory
factory
)
{
protected
void
addConnector
(
int
port
,
AbstractServletWebServerFactory
factory
)
{
((
UndertowServletWebServerFactory
)
factory
).
addBuilderCustomizers
(
((
UndertowServletWebServerFactory
)
factory
).
addBuilderCustomizers
(
(
builder
)
->
builder
.
addHttpListener
(
port
,
"0.0.0.0"
));
(
builder
)
->
builder
.
addHttpListener
(
port
,
"0.0.0.0"
));
}
}
...
...
spring-boot-samples/spring-boot-sample-atmosphere/src/main/java/sample/atmosphere/ChatService.java
View file @
b7d08ee5
...
@@ -35,7 +35,7 @@ public class ChatService {
...
@@ -35,7 +35,7 @@ public class ChatService {
private
final
Logger
logger
=
LoggerFactory
.
getLogger
(
ChatService
.
class
);
private
final
Logger
logger
=
LoggerFactory
.
getLogger
(
ChatService
.
class
);
@Ready
@Ready
public
void
onReady
(
final
AtmosphereResource
resource
)
{
public
void
onReady
(
AtmosphereResource
resource
)
{
this
.
logger
.
info
(
"Connected"
,
resource
.
uuid
());
this
.
logger
.
info
(
"Connected"
,
resource
.
uuid
());
}
}
...
...
spring-boot-samples/spring-boot-sample-data-cassandra/src/test/java/sample/data/cassandra/SampleCassandraApplicationTests.java
View file @
b7d08ee5
...
@@ -61,7 +61,7 @@ public class SampleCassandraApplicationTests {
...
@@ -61,7 +61,7 @@ public class SampleCassandraApplicationTests {
static
class
SkipOnWindows
implements
TestRule
{
static
class
SkipOnWindows
implements
TestRule
{
@Override
@Override
public
Statement
apply
(
final
Statement
base
,
Description
description
)
{
public
Statement
apply
(
Statement
base
,
Description
description
)
{
return
new
Statement
()
{
return
new
Statement
()
{
@Override
@Override
...
...
spring-boot-samples/spring-boot-sample-data-elasticsearch/src/test/java/sample/data/elasticsearch/SampleElasticsearchApplicationTests.java
View file @
b7d08ee5
...
@@ -73,7 +73,7 @@ public class SampleElasticsearchApplicationTests {
...
@@ -73,7 +73,7 @@ public class SampleElasticsearchApplicationTests {
static
class
SkipOnWindows
implements
TestRule
{
static
class
SkipOnWindows
implements
TestRule
{
@Override
@Override
public
Statement
apply
(
final
Statement
base
,
Description
description
)
{
public
Statement
apply
(
Statement
base
,
Description
description
)
{
return
new
Statement
()
{
return
new
Statement
()
{
@Override
@Override
...
...
spring-boot-samples/spring-boot-sample-flyway/src/main/java/sample/flyway/SampleFlywayApplication.java
View file @
b7d08ee5
...
@@ -29,7 +29,7 @@ public class SampleFlywayApplication {
...
@@ -29,7 +29,7 @@ public class SampleFlywayApplication {
}
}
@Bean
@Bean
public
CommandLineRunner
runner
(
final
PersonRepository
repository
)
{
public
CommandLineRunner
runner
(
PersonRepository
repository
)
{
return
new
CommandLineRunner
()
{
return
new
CommandLineRunner
()
{
@Override
@Override
...
...
spring-boot-samples/spring-boot-sample-jta-atomikos/src/test/java/sample/atomikos/SampleAtomikosApplicationTests.java
View file @
b7d08ee5
...
@@ -44,7 +44,7 @@ public class SampleAtomikosApplicationTests {
...
@@ -44,7 +44,7 @@ public class SampleAtomikosApplicationTests {
assertThat
(
output
).
has
(
substring
(
1
,
"Simulated error"
));
assertThat
(
output
).
has
(
substring
(
1
,
"Simulated error"
));
}
}
private
Condition
<
String
>
substring
(
final
int
times
,
final
String
substring
)
{
private
Condition
<
String
>
substring
(
int
times
,
String
substring
)
{
return
new
Condition
<
String
>(
return
new
Condition
<
String
>(
"containing '"
+
substring
+
"' "
+
times
+
" times"
)
{
"containing '"
+
substring
+
"' "
+
times
+
" times"
)
{
...
...
spring-boot-samples/spring-boot-sample-jta-bitronix/src/test/java/sample/bitronix/SampleBitronixApplicationTests.java
View file @
b7d08ee5
...
@@ -60,7 +60,7 @@ public class SampleBitronixApplicationTests {
...
@@ -60,7 +60,7 @@ public class SampleBitronixApplicationTests {
.
isNotInstanceOf
(
PoolingConnectionFactory
.
class
);
.
isNotInstanceOf
(
PoolingConnectionFactory
.
class
);
}
}
private
Condition
<
String
>
substring
(
final
int
times
,
final
String
substring
)
{
private
Condition
<
String
>
substring
(
int
times
,
String
substring
)
{
return
new
Condition
<
String
>(
return
new
Condition
<
String
>(
"containing '"
+
substring
+
"' "
+
times
+
" times"
)
{
"containing '"
+
substring
+
"' "
+
times
+
" times"
)
{
...
...
spring-boot-samples/spring-boot-sample-jta-narayana/src/test/java/sample/narayana/SampleNarayanaApplicationTests.java
View file @
b7d08ee5
...
@@ -44,7 +44,7 @@ public class SampleNarayanaApplicationTests {
...
@@ -44,7 +44,7 @@ public class SampleNarayanaApplicationTests {
assertThat
(
output
).
has
(
substring
(
1
,
"Simulated error"
));
assertThat
(
output
).
has
(
substring
(
1
,
"Simulated error"
));
}
}
private
Condition
<
String
>
substring
(
final
int
times
,
final
String
substring
)
{
private
Condition
<
String
>
substring
(
int
times
,
String
substring
)
{
return
new
Condition
<
String
>(
return
new
Condition
<
String
>(
"containing '"
+
substring
+
"' "
+
times
+
" times"
)
{
"containing '"
+
substring
+
"' "
+
times
+
" times"
)
{
...
...
spring-boot-samples/spring-boot-sample-parent-context/src/test/java/sample/parent/consumer/SampleIntegrationParentApplicationTests.java
View file @
b7d08ee5
...
@@ -61,7 +61,7 @@ public class SampleIntegrationParentApplicationTests {
...
@@ -61,7 +61,7 @@ public class SampleIntegrationParentApplicationTests {
awaitOutputContaining
(
"Hello World"
);
awaitOutputContaining
(
"Hello World"
);
}
}
private
void
awaitOutputContaining
(
final
String
requiredContents
)
throws
Exception
{
private
void
awaitOutputContaining
(
String
requiredContents
)
throws
Exception
{
long
endTime
=
System
.
currentTimeMillis
()
+
30000
;
long
endTime
=
System
.
currentTimeMillis
()
+
30000
;
String
output
=
null
;
String
output
=
null
;
while
(
System
.
currentTimeMillis
()
<
endTime
)
{
while
(
System
.
currentTimeMillis
()
<
endTime
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment