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
c65f099b
Commit
c65f099b
authored
Sep 13, 2016
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6872 from izeye:polish-20160913
* pr/6872: Polish
parents
3684c2ec
caa4c080
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
11 additions
and
11 deletions
+11
-11
ConditionMessage.java
...mework/boot/autoconfigure/condition/ConditionMessage.java
+3
-3
OnResourceCondition.java
...ork/boot/autoconfigure/condition/OnResourceCondition.java
+2
-2
DataSourceAutoConfiguration.java
.../boot/autoconfigure/jdbc/DataSourceAutoConfiguration.java
+1
-1
DispatcherServletAutoConfiguration.java
...autoconfigure/web/DispatcherServletAutoConfiguration.java
+1
-1
ErrorMvcAutoConfiguration.java
...ork/boot/autoconfigure/web/ErrorMvcAutoConfiguration.java
+1
-1
SpringBootTest.java
...org/springframework/boot/test/context/SpringBootTest.java
+1
-1
LocalHostUriTemplateHandler.java
...ork/boot/test/web/client/LocalHostUriTemplateHandler.java
+1
-1
BuildInfoMojo.java
...in/java/org/springframework/boot/maven/BuildInfoMojo.java
+1
-1
No files found.
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionMessage.java
View file @
c65f099b
...
@@ -314,7 +314,7 @@ public final class ConditionMessage {
...
@@ -314,7 +314,7 @@ public final class ConditionMessage {
private
final
Builder
condition
;
private
final
Builder
condition
;
private
final
String
reson
;
private
final
String
re
a
son
;
private
final
String
singular
;
private
final
String
singular
;
...
@@ -323,7 +323,7 @@ public final class ConditionMessage {
...
@@ -323,7 +323,7 @@ public final class ConditionMessage {
private
ItemsBuilder
(
Builder
condition
,
String
reason
,
String
singular
,
private
ItemsBuilder
(
Builder
condition
,
String
reason
,
String
singular
,
String
plural
)
{
String
plural
)
{
this
.
condition
=
condition
;
this
.
condition
=
condition
;
this
.
reson
=
reason
;
this
.
re
a
son
=
reason
;
this
.
singular
=
singular
;
this
.
singular
=
singular
;
this
.
plural
=
plural
;
this
.
plural
=
plural
;
}
}
...
@@ -383,7 +383,7 @@ public final class ConditionMessage {
...
@@ -383,7 +383,7 @@ public final class ConditionMessage {
*/
*/
public
ConditionMessage
items
(
Style
style
,
Collection
<?>
items
)
{
public
ConditionMessage
items
(
Style
style
,
Collection
<?>
items
)
{
Assert
.
notNull
(
style
,
"Style must not be null"
);
Assert
.
notNull
(
style
,
"Style must not be null"
);
StringBuilder
message
=
new
StringBuilder
(
this
.
reson
);
StringBuilder
message
=
new
StringBuilder
(
this
.
re
a
son
);
items
=
style
.
applyTo
(
items
);
items
=
style
.
applyTo
(
items
);
if
((
this
.
condition
==
null
||
items
.
size
()
<=
1
)
if
((
this
.
condition
==
null
||
items
.
size
()
<=
1
)
&&
StringUtils
.
hasLength
(
this
.
singular
))
{
&&
StringUtils
.
hasLength
(
this
.
singular
))
{
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/OnResourceCondition.java
View file @
c65f099b
...
@@ -52,8 +52,8 @@ class OnResourceCondition extends SpringBootCondition {
...
@@ -52,8 +52,8 @@ class OnResourceCondition extends SpringBootCondition {
+
"least one resource location"
);
+
"least one resource location"
);
List
<
String
>
missing
=
new
ArrayList
<
String
>();
List
<
String
>
missing
=
new
ArrayList
<
String
>();
for
(
String
location
:
locations
)
{
for
(
String
location
:
locations
)
{
String
resouce
=
context
.
getEnvironment
().
resolvePlaceholders
(
location
);
String
resou
r
ce
=
context
.
getEnvironment
().
resolvePlaceholders
(
location
);
if
(!
loader
.
getResource
(
resouce
).
exists
())
{
if
(!
loader
.
getResource
(
resou
r
ce
).
exists
())
{
missing
.
add
(
location
);
missing
.
add
(
location
);
}
}
}
}
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/DataSourceAutoConfiguration.java
View file @
c65f099b
...
@@ -224,7 +224,7 @@ public class DataSourceAutoConfiguration {
...
@@ -224,7 +224,7 @@ public class DataSourceAutoConfiguration {
public
ConditionOutcome
getMatchOutcome
(
ConditionContext
context
,
public
ConditionOutcome
getMatchOutcome
(
ConditionContext
context
,
AnnotatedTypeMetadata
metadata
)
{
AnnotatedTypeMetadata
metadata
)
{
ConditionMessage
.
Builder
message
=
ConditionMessage
ConditionMessage
.
Builder
message
=
ConditionMessage
.
forCondition
(
"EmbeddedDataAvailble"
);
.
forCondition
(
"EmbeddedDataAvail
a
ble"
);
if
(
hasBean
(
context
,
DataSource
.
class
)
if
(
hasBean
(
context
,
DataSource
.
class
)
||
hasBean
(
context
,
XADataSource
.
class
))
{
||
hasBean
(
context
,
XADataSource
.
class
))
{
return
ConditionOutcome
return
ConditionOutcome
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/DispatcherServletAutoConfiguration.java
View file @
c65f099b
...
@@ -174,7 +174,7 @@ public class DispatcherServletAutoConfiguration {
...
@@ -174,7 +174,7 @@ public class DispatcherServletAutoConfiguration {
.
match
(
message
.
didNotFind
(
"dispatcher servlet beans"
).
atAll
());
.
match
(
message
.
didNotFind
(
"dispatcher servlet beans"
).
atAll
());
}
}
return
ConditionOutcome
.
match
(
message
return
ConditionOutcome
.
match
(
message
.
found
(
"dipatcher servlet bean"
,
"dispatcher servlet beans"
)
.
found
(
"di
s
patcher servlet bean"
,
"dispatcher servlet beans"
)
.
items
(
Style
.
QUOTE
,
dispatchServletBeans
)
.
items
(
Style
.
QUOTE
,
dispatchServletBeans
)
.
append
(
"and none is named "
+
DEFAULT_DISPATCHER_SERVLET_BEAN_NAME
));
.
append
(
"and none is named "
+
DEFAULT_DISPATCHER_SERVLET_BEAN_NAME
));
}
}
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ErrorMvcAutoConfiguration.java
View file @
c65f099b
...
@@ -168,7 +168,7 @@ public class ErrorMvcAutoConfiguration {
...
@@ -168,7 +168,7 @@ public class ErrorMvcAutoConfiguration {
public
ConditionOutcome
getMatchOutcome
(
ConditionContext
context
,
public
ConditionOutcome
getMatchOutcome
(
ConditionContext
context
,
AnnotatedTypeMetadata
metadata
)
{
AnnotatedTypeMetadata
metadata
)
{
ConditionMessage
.
Builder
message
=
ConditionMessage
ConditionMessage
.
Builder
message
=
ConditionMessage
.
forCondition
(
"ErrorTemplate Miss
s
ing"
);
.
forCondition
(
"ErrorTemplate Missing"
);
TemplateAvailabilityProviders
providers
=
new
TemplateAvailabilityProviders
(
TemplateAvailabilityProviders
providers
=
new
TemplateAvailabilityProviders
(
context
.
getClassLoader
());
context
.
getClassLoader
());
TemplateAvailabilityProvider
provider
=
providers
.
getProvider
(
"error"
,
TemplateAvailabilityProvider
provider
=
providers
.
getProvider
(
"error"
,
...
...
spring-boot-test/src/main/java/org/springframework/boot/test/context/SpringBootTest.java
View file @
c65f099b
...
@@ -55,7 +55,7 @@ import org.springframework.web.context.WebApplicationContext;
...
@@ -55,7 +55,7 @@ import org.springframework.web.context.WebApplicationContext;
* {@link WebEnvironment#DEFINED_PORT defined} or {@link WebEnvironment#RANDOM_PORT
* {@link WebEnvironment#DEFINED_PORT defined} or {@link WebEnvironment#RANDOM_PORT
* random} port.</li>
* random} port.</li>
* <li>Registers a {@link org.springframework.boot.test.web.client.TestRestTemplate
* <li>Registers a {@link org.springframework.boot.test.web.client.TestRestTemplate
* TestRestTemplate} bean for use in web tests that are using a fully running container
* TestRestTemplate} bean for use in web tests that are using a fully running container
.
* </li>
* </li>
* </ul>
* </ul>
*
*
...
...
spring-boot-test/src/main/java/org/springframework/boot/test/web/client/LocalHostUriTemplateHandler.java
View file @
c65f099b
...
@@ -46,7 +46,7 @@ public class LocalHostUriTemplateHandler extends RootUriTemplateHandler {
...
@@ -46,7 +46,7 @@ public class LocalHostUriTemplateHandler extends RootUriTemplateHandler {
}
}
/**
/**
* Create a new {@code LocalHostUriTemplateHandler} th
e
will generate URIs with the
* Create a new {@code LocalHostUriTemplateHandler} th
at
will generate URIs with the
* given {@code scheme} and use the given {@code environment} to determine the port.
* given {@code scheme} and use the given {@code environment} to determine the port.
* @param environment the environment used to determine the port
* @param environment the environment used to determine the port
* @param scheme the scheme of the root uri
* @param scheme the scheme of the root uri
...
...
spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/BuildInfoMojo.java
View file @
c65f099b
...
@@ -70,7 +70,7 @@ public class BuildInfoMojo extends AbstractMojo {
...
@@ -70,7 +70,7 @@ public class BuildInfoMojo extends AbstractMojo {
}
}
catch
(
NullAdditionalPropertyValueException
ex
)
{
catch
(
NullAdditionalPropertyValueException
ex
)
{
throw
new
MojoFailureException
(
throw
new
MojoFailureException
(
"Failed to generate
d
build-info.properties. "
+
ex
.
getMessage
(),
ex
);
"Failed to generate build-info.properties. "
+
ex
.
getMessage
(),
ex
);
}
}
catch
(
Exception
ex
)
{
catch
(
Exception
ex
)
{
throw
new
MojoExecutionException
(
ex
.
getMessage
(),
ex
);
throw
new
MojoExecutionException
(
ex
.
getMessage
(),
ex
);
...
...
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