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
407894e1
Commit
407894e1
authored
Mar 08, 2017
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8526 from izeye:polish-20170307
* pr/8526: Polish
parents
8f903987
709ee232
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
BeanTypeRegistry.java
...mework/boot/autoconfigure/condition/BeanTypeRegistry.java
+3
-3
OriginTrackedPropertiesLoader.java
...ringframework/boot/env/OriginTrackedPropertiesLoader.java
+5
-5
TextResourcePropertyOrigin.java
.../springframework/boot/env/TextResourcePropertyOrigin.java
+1
-1
TextResourcePropertyOriginTests.java
...ngframework/boot/env/TextResourcePropertyOriginTests.java
+1
-1
No files found.
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/BeanTypeRegistry.java
View file @
407894e1
...
...
@@ -127,7 +127,7 @@ final class BeanTypeRegistry implements SmartInitializingSingleton {
* the case of {@link FactoryBean FactoryBeans}. Will include singletons but will not
* cause early bean initialization.
* @param annotation the annotation to match (must not be {@code null})
* @return the names of beans (or objects created by FactoryBeans) annoated with the
* @return the names of beans (or objects created by FactoryBeans) anno
t
ated with the
* given annotation, or an empty set if none
*/
Set
<
String
>
getNamesForAnnotation
(
Class
<?
extends
Annotation
>
annotation
)
{
...
...
@@ -188,8 +188,8 @@ final class BeanTypeRegistry implements SmartInitializingSingleton {
}
private
void
logIgnoredError
(
String
message
,
String
name
,
Exception
ex
)
{
if
(
BeanTypeRegistry
.
logger
.
isDebugEnabled
())
{
BeanTypeRegistry
.
logger
.
debug
(
"Ignoring "
+
message
+
" '"
+
name
+
"'"
,
ex
);
if
(
logger
.
isDebugEnabled
())
{
logger
.
debug
(
"Ignoring "
+
message
+
" '"
+
name
+
"'"
,
ex
);
}
}
...
...
spring-boot/src/main/java/org/springframework/boot/env/OriginTrackedPropertiesLoader.java
View file @
407894e1
...
...
@@ -61,7 +61,7 @@ class OriginTrackedPropertiesLoader {
/**
* Load {@code .properties} data and return a map of {@code String} ->
* {@link OriginTrackedValue}.
* @param expandLists if list {@code name[]=a,b,c} shorcuts should be expanded
* @param expandLists if list {@code name[]=a,b,c} shor
t
cuts should be expanded
* @return the loaded properties
* @throws IOException on read error
*/
...
...
@@ -104,7 +104,7 @@ class OriginTrackedPropertiesLoader {
buffer
.
setLength
(
0
);
boolean
previousWhitespace
=
false
;
while
(!
reader
.
isEndOfLine
())
{
if
(
reader
.
isPropertyDelim
e
ter
())
{
if
(
reader
.
isPropertyDelim
i
ter
())
{
reader
.
read
();
return
buffer
.
toString
();
}
...
...
@@ -125,7 +125,7 @@ class OriginTrackedPropertiesLoader {
reader
.
read
();
}
Location
location
=
reader
.
getLocation
();
while
(!
reader
.
isEndOfLine
()
&&
!(
splitLists
&&
reader
.
isListDelim
e
ter
()))
{
while
(!
reader
.
isEndOfLine
()
&&
!(
splitLists
&&
reader
.
isListDelim
i
ter
()))
{
buffer
.
append
(
reader
.
getCharacter
());
reader
.
read
();
}
...
...
@@ -241,11 +241,11 @@ class OriginTrackedPropertiesLoader {
return
this
.
character
==
-
1
||
(!
this
.
escaped
&&
this
.
character
==
'\n'
);
}
public
boolean
isListDelim
e
ter
()
{
public
boolean
isListDelim
i
ter
()
{
return
!
this
.
escaped
&&
this
.
character
==
','
;
}
public
boolean
isPropertyDelim
e
ter
()
{
public
boolean
isPropertyDelim
i
ter
()
{
return
!
this
.
escaped
&&
(
this
.
character
==
'='
||
this
.
character
==
':'
);
}
...
...
spring-boot/src/main/java/org/springframework/boot/env/TextResourcePropertyOrigin.java
View file @
407894e1
...
...
@@ -21,7 +21,7 @@ import org.springframework.util.ObjectUtils;
/**
* {@link PropertyOrigin} for an item loaded from a text resource. Provides access to the
* origina {@link Resource} that loaded the text and a {@link Location} within it.
* origina
l
{@link Resource} that loaded the text and a {@link Location} within it.
*
* @author Madhura Bhave
* @author Phillip Webb
...
...
spring-boot/src/test/java/org/springframework/boot/env/TextResourcePropertyOriginTests.java
View file @
407894e1
...
...
@@ -103,7 +103,7 @@ public class TextResourcePropertyOriginTests {
}
@Test
public
void
locationEqualsAndHash
c
odeShouldUseLineAndColumn
()
throws
Exception
{
public
void
locationEqualsAndHash
C
odeShouldUseLineAndColumn
()
throws
Exception
{
Location
location1
=
new
Location
(
1
,
2
);
Location
location2
=
new
Location
(
1
,
2
);
Location
location3
=
new
Location
(
2
,
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