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
31d7ebc9
Commit
31d7ebc9
authored
Nov 20, 2015
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4554 from izeye/polish-20151119
* pr/4554: Polish
parents
30791599
efff4a00
Changes
19
Show whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
34 additions
and
34 deletions
+34
-34
PropertyPlaceholderAutoConfigurationTests.java
...oconfigure/PropertyPlaceholderAutoConfigurationTests.java
+1
-1
ServerPropertiesAutoConfigurationTests.java
...configure/web/ServerPropertiesAutoConfigurationTests.java
+2
-2
WebSocketMessagingAutoConfigurationTests.java
...e/websocket/WebSocketMessagingAutoConfigurationTests.java
+1
-1
InitCommand.java
...rg/springframework/boot/cli/command/init/InitCommand.java
+1
-1
ServiceCapabilitiesReportGenerator.java
.../cli/command/init/ServiceCapabilitiesReportGenerator.java
+1
-1
AnsiString.java
...rg/springframework/boot/cli/command/shell/AnsiString.java
+1
-1
CommandCompleter.java
...ingframework/boot/cli/command/shell/CommandCompleter.java
+2
-2
Shell.java
...ava/org/springframework/boot/cli/command/shell/Shell.java
+1
-1
DependencyCustomizer.java
...ringframework/boot/cli/compiler/DependencyCustomizer.java
+4
-4
SpringTestCompilerAutoConfiguration.java
...er/autoconfigure/SpringTestCompilerAutoConfiguration.java
+3
-3
GroovyTemplate.java
.../java/org/springframework/boot/groovy/GroovyTemplate.java
+1
-1
RemoteDevToolsAutoConfiguration.java
...vtools/autoconfigure/RemoteDevToolsAutoConfiguration.java
+4
-4
FileSystemWatcher.java
...gframework/boot/devtools/filewatch/FileSystemWatcher.java
+1
-1
Connection.java
.../springframework/boot/devtools/livereload/Connection.java
+1
-1
UrlHandlerMapper.java
...amework/boot/devtools/remote/server/UrlHandlerMapper.java
+3
-3
HttpTunnelConnection.java
...ork/boot/devtools/tunnel/client/HttpTunnelConnection.java
+2
-2
LocalDevToolsAutoConfigurationTests.java
...ls/autoconfigure/LocalDevToolsAutoConfigurationTests.java
+2
-2
RemoteDevToolsAutoConfigurationTests.java
...s/autoconfigure/RemoteDevToolsAutoConfigurationTests.java
+2
-2
HttpTunnelServerTests.java
...rk/boot/devtools/tunnel/server/HttpTunnelServerTests.java
+1
-1
No files found.
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/PropertyPlaceholderAutoConfigurationTests.java
View file @
31d7ebc9
...
...
@@ -46,7 +46,7 @@ public class PropertyPlaceholderAutoConfigurationTests {
}
@Test
public
void
propertyPlaceholders
e
()
throws
Exception
{
public
void
propertyPlaceholders
()
throws
Exception
{
this
.
context
.
register
(
PropertyPlaceholderAutoConfiguration
.
class
,
PlaceholderConfig
.
class
);
EnvironmentTestUtils
.
addEnvironment
(
this
.
context
,
"foo:two"
);
...
...
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/ServerPropertiesAutoConfigurationTests.java
View file @
31d7ebc9
...
...
@@ -147,7 +147,7 @@ public class ServerPropertiesAutoConfigurationTests {
@Test
public
void
testAccidentalMultipleServerPropertiesBeans
()
throws
Exception
{
this
.
context
=
new
AnnotationConfigEmbeddedWebApplicationContext
();
this
.
context
.
register
(
Config
.
class
,
MutiServerPropertiesBeanConfig
.
class
,
this
.
context
.
register
(
Config
.
class
,
Mu
l
tiServerPropertiesBeanConfig
.
class
,
ServerPropertiesAutoConfiguration
.
class
,
PropertyPlaceholderAutoConfiguration
.
class
);
this
.
thrown
.
expect
(
ApplicationContextException
.
class
);
...
...
@@ -222,7 +222,7 @@ public class ServerPropertiesAutoConfigurationTests {
}
@Configuration
protected
static
class
MutiServerPropertiesBeanConfig
{
protected
static
class
Mu
l
tiServerPropertiesBeanConfig
{
@Bean
public
ServerProperties
serverPropertiesOne
()
{
...
...
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/websocket/WebSocketMessagingAutoConfigurationTests.java
View file @
31d7ebc9
...
...
@@ -192,7 +192,7 @@ public class WebSocketMessagingAutoConfigurationTests {
}
@Bean
public
TomcatWebSocketContainerCustomizer
tomcatCu
ztomis
er
()
{
public
TomcatWebSocketContainerCustomizer
tomcatCu
stomiz
er
()
{
return
new
TomcatWebSocketContainerCustomizer
();
}
...
...
spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/InitCommand.java
View file @
31d7ebc9
...
...
@@ -48,7 +48,7 @@ public class InitCommand extends OptionParsingCommand {
public
InitCommand
(
InitOptionHandler
handler
)
{
super
(
"init"
,
"Initialize a new project using Spring "
+
"Initialzr (start.spring.io)"
,
"Initialize a new project using Spring "
+
"Initial
i
zr (start.spring.io)"
,
handler
);
}
...
...
spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/ServiceCapabilitiesReportGenerator.java
View file @
31d7ebc9
...
...
@@ -38,7 +38,7 @@ class ServiceCapabilitiesReportGenerator {
/**
* Creates an instance using the specified {@link InitializrService}.
* @param initializrService the initialzr service
* @param initializrService the initial
i
zr service
*/
ServiceCapabilitiesReportGenerator
(
InitializrService
initializrService
)
{
this
.
initializrService
=
initializrService
;
...
...
spring-boot-cli/src/main/java/org/springframework/boot/cli/command/shell/AnsiString.java
View file @
31d7ebc9
...
...
@@ -21,7 +21,7 @@ import org.fusesource.jansi.Ansi;
import
org.fusesource.jansi.AnsiRenderer.Code
;
/**
* Simple uti
tli
y class to build an ANSI string when supported by the {@link Terminal}.
* Simple uti
lit
y class to build an ANSI string when supported by the {@link Terminal}.
*
* @author Phillip Webb
*/
...
...
spring-boot-cli/src/main/java/org/springframework/boot/cli/command/shell/CommandCompleter.java
View file @
31d7ebc9
...
...
@@ -59,10 +59,10 @@ public class CommandCompleter extends StringsCompleter {
for
(
OptionHelp
optionHelp
:
command
.
getOptionsHelp
())
{
options
.
addAll
(
optionHelp
.
getOptions
());
}
AggregateCompleter
argu
e
mentCompleters
=
new
AggregateCompleter
(
AggregateCompleter
argumentCompleters
=
new
AggregateCompleter
(
new
StringsCompleter
(
options
),
new
FileNameCompleter
());
ArgumentCompleter
argumentCompleter
=
new
ArgumentCompleter
(
argumentDelimiter
,
argu
e
mentCompleters
);
argumentCompleters
);
argumentCompleter
.
setStrict
(
false
);
this
.
commandCompleters
.
put
(
command
.
getName
(),
argumentCompleter
);
}
...
...
spring-boot-cli/src/main/java/org/springframework/boot/cli/command/shell/Shell.java
View file @
31d7ebc9
...
...
@@ -175,7 +175,7 @@ public class Shell {
}
/**
* Final handle an interrup signal (CTRL-C).
* Final handle an interrup
t
signal (CTRL-C).
*/
protected
void
handleSigInt
()
{
if
(
this
.
commandRunner
.
handleSigInt
())
{
...
...
spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/DependencyCustomizer.java
View file @
31d7ebc9
...
...
@@ -92,9 +92,9 @@ public class DependencyCustomizer {
return
new
DependencyCustomizer
(
this
)
{
@Override
protected
boolean
canAdd
()
{
for
(
String
class
n
ame
:
classNames
)
{
for
(
String
class
N
ame
:
classNames
)
{
try
{
DependencyCustomizer
.
this
.
loader
.
loadClass
(
class
n
ame
);
DependencyCustomizer
.
this
.
loader
.
loadClass
(
class
N
ame
);
}
catch
(
Exception
ex
)
{
return
true
;
...
...
@@ -115,9 +115,9 @@ public class DependencyCustomizer {
return
new
DependencyCustomizer
(
this
)
{
@Override
protected
boolean
canAdd
()
{
for
(
String
class
n
ame
:
classNames
)
{
for
(
String
class
N
ame
:
classNames
)
{
try
{
DependencyCustomizer
.
this
.
loader
.
loadClass
(
class
n
ame
);
DependencyCustomizer
.
this
.
loader
.
loadClass
(
class
N
ame
);
return
false
;
}
catch
(
Exception
ex
)
{
...
...
spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/autoconfigure/SpringTestCompilerAutoConfiguration.java
View file @
31d7ebc9
...
...
@@ -56,10 +56,10 @@ public class SpringTestCompilerAutoConfiguration extends CompilerAutoConfigurati
GeneratorContext
generatorContext
,
SourceUnit
source
,
ClassNode
classNode
)
throws
CompilationFailedException
{
if
(!
AstUtils
.
hasAtLeastOneAnnotation
(
classNode
,
"RunWith"
))
{
AnnotationNode
run
w
ith
=
new
AnnotationNode
(
ClassHelper
.
make
(
"RunWith"
));
run
w
ith
.
addMember
(
"value"
,
AnnotationNode
run
W
ith
=
new
AnnotationNode
(
ClassHelper
.
make
(
"RunWith"
));
run
W
ith
.
addMember
(
"value"
,
new
ClassExpression
(
ClassHelper
.
make
(
"SpringJUnit4ClassRunner"
)));
classNode
.
addAnnotation
(
run
w
ith
);
classNode
.
addAnnotation
(
run
W
ith
);
}
}
...
...
spring-boot-cli/src/main/java/org/springframework/boot/groovy/GroovyTemplate.java
View file @
31d7ebc9
...
...
@@ -30,7 +30,7 @@ import groovy.text.TemplateEngine;
import
org.codehaus.groovy.control.CompilationFailedException
;
/**
* Helpful utilties for working with Groovy {@link Template}s.
* Helpful util
i
ties for working with Groovy {@link Template}s.
*
* @author Dave Syer
*/
...
...
spring-boot-devtools/src/main/java/org/springframework/boot/devtools/autoconfigure/RemoteDevToolsAutoConfiguration.java
View file @
31d7ebc9
...
...
@@ -130,8 +130,8 @@ public class RemoteDevToolsAutoConfiguration {
}
@Bean
@ConditionalOnMissingBean
(
name
=
"remoteRestartHanderMapper"
)
public
UrlHandlerMapper
remoteRestartHanderMapper
(
HttpRestartServer
server
)
{
@ConditionalOnMissingBean
(
name
=
"remoteRestartHand
l
erMapper"
)
public
UrlHandlerMapper
remoteRestartHand
l
erMapper
(
HttpRestartServer
server
)
{
String
url
=
(
this
.
serverProperties
.
getContextPath
()
==
null
?
""
:
this
.
serverProperties
.
getContextPath
())
+
this
.
properties
.
getRemote
().
getContextPath
()
+
"/restart"
;
...
...
@@ -155,8 +155,8 @@ public class RemoteDevToolsAutoConfiguration {
private
ServerProperties
serverProperties
;
@Bean
@ConditionalOnMissingBean
(
name
=
"remoteDebugHanderMapper"
)
public
UrlHandlerMapper
remoteDebugHanderMapper
(
@ConditionalOnMissingBean
(
name
=
"remoteDebugHand
l
erMapper"
)
public
UrlHandlerMapper
remoteDebugHand
l
erMapper
(
@Qualifier
(
"remoteDebugHttpTunnelServer"
)
HttpTunnelServer
server
)
{
String
url
=
(
this
.
serverProperties
.
getContextPath
()
==
null
?
""
:
this
.
serverProperties
.
getContextPath
())
...
...
spring-boot-devtools/src/main/java/org/springframework/boot/devtools/filewatch/FileSystemWatcher.java
View file @
31d7ebc9
...
...
@@ -240,7 +240,7 @@ public class FileSystemWatcher {
/**
* Stop monitoring the source folders.
* @param remainingScans the number of
scans remaming
* @param remainingScans the number of
remaining scans
*/
synchronized
void
stopAfter
(
int
remainingScans
)
{
Thread
thread
=
this
.
watchThread
;
...
...
spring-boot-devtools/src/main/java/org/springframework/boot/devtools/livereload/Connection.java
View file @
31d7ebc9
...
...
@@ -113,7 +113,7 @@ class Connection {
throw
new
ConnectionClosedException
();
}
else
if
(
frame
.
getType
()
==
Frame
.
Type
.
TEXT
)
{
logger
.
debug
(
"Rec
ie
ved LiveReload text frame "
+
frame
);
logger
.
debug
(
"Rec
ei
ved LiveReload text frame "
+
frame
);
}
else
{
throw
new
IOException
(
"Unexpected Frame Type "
+
frame
.
getType
());
...
...
spring-boot-devtools/src/main/java/org/springframework/boot/devtools/remote/server/UrlHandlerMapper.java
View file @
31d7ebc9
...
...
@@ -30,7 +30,7 @@ public class UrlHandlerMapper implements HandlerMapper {
private
final
String
requestUri
;
private
final
Handler
hander
;
private
final
Handler
hand
l
er
;
/**
* Create a new {@link UrlHandlerMapper}.
...
...
@@ -41,13 +41,13 @@ public class UrlHandlerMapper implements HandlerMapper {
Assert
.
hasLength
(
url
,
"URL must not be empty"
);
Assert
.
isTrue
(
url
.
startsWith
(
"/"
),
"URL must start with '/'"
);
this
.
requestUri
=
url
;
this
.
hander
=
handler
;
this
.
hand
l
er
=
handler
;
}
@Override
public
Handler
getHandler
(
ServerHttpRequest
request
)
{
if
(
this
.
requestUri
.
equals
(
request
.
getURI
().
getPath
()))
{
return
this
.
hander
;
return
this
.
hand
l
er
;
}
return
null
;
}
...
...
spring-boot-devtools/src/main/java/org/springframework/boot/devtools/tunnel/client/HttpTunnelConnection.java
View file @
31d7ebc9
...
...
@@ -158,11 +158,11 @@ public class HttpTunnelConnection implements TunnelConnection {
}
catch
(
IOException
ex
)
{
logger
.
trace
(
"Unexpected connection error"
,
ex
);
closeQui
te
ly
();
closeQui
et
ly
();
}
}
private
void
closeQui
te
ly
()
{
private
void
closeQui
et
ly
()
{
try
{
close
();
}
...
...
spring-boot-devtools/src/test/java/org/springframework/boot/devtools/autoconfigure/LocalDevToolsAutoConfigurationTests.java
View file @
31d7ebc9
...
...
@@ -92,7 +92,7 @@ public class LocalDevToolsAutoConfigurationTests {
}
@Test
public
void
defaultPropertyCanBeOverridenFromCommandLine
()
throws
Exception
{
public
void
defaultPropertyCanBeOverrid
d
enFromCommandLine
()
throws
Exception
{
this
.
context
=
initializeAndRun
(
Config
.
class
,
"--spring.thymeleaf.cache=true"
);
TemplateResolver
resolver
=
this
.
context
.
getBean
(
TemplateResolver
.
class
);
resolver
.
initialize
();
...
...
@@ -100,7 +100,7 @@ public class LocalDevToolsAutoConfigurationTests {
}
@Test
public
void
defaultPropertyCanBeOverridenFromUserHomeProperties
()
throws
Exception
{
public
void
defaultPropertyCanBeOverrid
d
enFromUserHomeProperties
()
throws
Exception
{
String
userHome
=
System
.
getProperty
(
"user.home"
);
System
.
setProperty
(
"user.home"
,
new
File
(
"src/test/resources/user-home"
).
getAbsolutePath
());
...
...
spring-boot-devtools/src/test/java/org/springframework/boot/devtools/autoconfigure/RemoteDevToolsAutoConfigurationTests.java
View file @
31d7ebc9
...
...
@@ -153,7 +153,7 @@ public class RemoteDevToolsAutoConfigurationTests {
loadContext
(
"spring.devtools.remote.secret:supersecret"
,
"spring.devtools.remote.restart.enabled:false"
);
this
.
thrown
.
expect
(
NoSuchBeanDefinitionException
.
class
);
this
.
context
.
getBean
(
"remoteRestartHanderMapper"
);
this
.
context
.
getBean
(
"remoteRestartHand
l
erMapper"
);
}
@Test
...
...
@@ -193,7 +193,7 @@ public class RemoteDevToolsAutoConfigurationTests {
loadContext
(
"spring.devtools.remote.secret:supersecret"
,
"spring.devtools.remote.debug.enabled:false"
);
this
.
thrown
.
expect
(
NoSuchBeanDefinitionException
.
class
);
this
.
context
.
getBean
(
"remoteDebugHanderMapper"
);
this
.
context
.
getBean
(
"remoteDebugHand
l
erMapper"
);
}
@Test
...
...
spring-boot-devtools/src/test/java/org/springframework/boot/devtools/tunnel/server/HttpTunnelServerTests.java
View file @
31d7ebc9
...
...
@@ -223,7 +223,7 @@ public class HttpTunnelServerTests {
}
@Test
public
void
requestRec
ie
vedOutOfOrder
()
throws
Exception
{
public
void
requestRec
ei
vedOutOfOrder
()
throws
Exception
{
MockHttpConnection
h1
=
new
MockHttpConnection
();
MockHttpConnection
h2
=
new
MockHttpConnection
(
"1+2"
,
1
);
MockHttpConnection
h3
=
new
MockHttpConnection
(
"+3"
,
2
);
...
...
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