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
3f580951
Commit
3f580951
authored
May 07, 2017
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9103 from izeye:polish-20170505
* pr/9103: Polish
parents
068c52b7
53e5d67c
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
20 additions
and
20 deletions
+20
-20
spring-boot-features.adoc
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
+1
-1
ExampleEntry.java
...ework/boot/test/autoconfigure/data/ldap/ExampleEntry.java
+1
-1
HandlerTests.java
...ava/org/springframework/boot/loader/jar/HandlerTests.java
+1
-1
BindHandler.java
...ngframework/boot/context/properties/bind/BindHandler.java
+1
-1
Bindable.java
...pringframework/boot/context/properties/bind/Bindable.java
+2
-2
ConfigurationPropertyName.java
.../context/properties/source/ConfigurationPropertyName.java
+1
-1
MustacheView.java
...framework/boot/web/reactive/result/view/MustacheView.java
+2
-2
ArrayBinderTests.java
...mework/boot/context/properties/bind/ArrayBinderTests.java
+1
-1
BindableTests.java
...framework/boot/context/properties/bind/BindableTests.java
+3
-3
JavaBeanBinderTests.java
...ork/boot/context/properties/bind/JavaBeanBinderTests.java
+1
-1
IgnoreNestedPropertiesBindHandlerTests.java
.../bind/handler/IgnoreNestedPropertiesBindHandlerTests.java
+2
-2
AliasedIterableConfigurationPropertySourceTests.java
...urce/AliasedIterableConfigurationPropertySourceTests.java
+1
-1
ConfigurationPropertyNameAliasesTests.java
...perties/source/ConfigurationPropertyNameAliasesTests.java
+1
-1
ConfigurationPropertySourcesTests.java
.../properties/source/ConfigurationPropertySourcesTests.java
+1
-1
ConfigurationPropertyTests.java
...context/properties/source/ConfigurationPropertyTests.java
+1
-1
No files found.
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
3f580951
...
@@ -3262,7 +3262,7 @@ http://projects.spring.io/spring-data[projects.spring.io/spring-data].
...
@@ -3262,7 +3262,7 @@ http://projects.spring.io/spring-data[projects.spring.io/spring-data].
=== Redis
=== Redis
http://redis.io/[Redis] is a cache, message broker and richly-featured key-value store.
http://redis.io/[Redis] is a cache, message broker and richly-featured key-value store.
Spring Boot offers basic auto-configuration for the
Spring Boot offers basic auto-configuration for the
https://github.com/xetorthio/jedis/[Jedis] and
and
https://github.com/mp911de/lettuce/[Lettuce]
https://github.com/xetorthio/jedis/[Jedis] and https://github.com/mp911de/lettuce/[Lettuce]
client library and abstractions on top of it provided by
client library and abstractions on top of it provided by
https://github.com/spring-projects/spring-data-redis[Spring Data Redis].
https://github.com/spring-projects/spring-data-redis[Spring Data Redis].
...
...
spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/data/ldap/ExampleEntry.java
View file @
3f580951
...
@@ -22,7 +22,7 @@ import org.springframework.ldap.odm.annotations.Entry;
...
@@ -22,7 +22,7 @@ import org.springframework.ldap.odm.annotations.Entry;
import
org.springframework.ldap.odm.annotations.Id
;
import
org.springframework.ldap.odm.annotations.Id
;
/**
/**
* Example entr
e
y used with {@link DataLdapTest} tests.
* Example entry used with {@link DataLdapTest} tests.
*
*
* @author Eddú Meléndez
* @author Eddú Meléndez
*/
*/
...
...
spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/jar/HandlerTests.java
View file @
3f580951
...
@@ -128,7 +128,7 @@ public class HandlerTests {
...
@@ -128,7 +128,7 @@ public class HandlerTests {
}
}
@Test
@Test
public
void
hash
c
odesAreEqualForUrlsThatReferenceSameFileViaNestedArchiveAndFromRootOfJar
()
public
void
hash
C
odesAreEqualForUrlsThatReferenceSameFileViaNestedArchiveAndFromRootOfJar
()
throws
MalformedURLException
{
throws
MalformedURLException
{
assertThat
(
this
.
handler
assertThat
(
this
.
handler
.
hashCode
(
new
URL
(
"jar:file:/test.jar!/BOOT-INF/classes!/foo.txt"
)))
.
hashCode
(
new
URL
(
"jar:file:/test.jar!/BOOT-INF/classes!/foo.txt"
)))
...
...
spring-boot/src/main/java/org/springframework/boot/context/properties/bind/BindHandler.java
View file @
3f580951
...
@@ -63,7 +63,7 @@ public interface BindHandler {
...
@@ -63,7 +63,7 @@ public interface BindHandler {
/**
/**
* Called when binding fails for any reason (including failures from
* Called when binding fails for any reason (including failures from
* {@link #onSuccess} calls). Implementations may chose to swallow exceptions and
* {@link #onSuccess} calls). Implementations may cho
o
se to swallow exceptions and
* return an alternative result.
* return an alternative result.
* @param name the name of the element being bound
* @param name the name of the element being bound
* @param target the item being bound
* @param target the item being bound
...
...
spring-boot/src/main/java/org/springframework/boot/context/properties/bind/Bindable.java
View file @
3f580951
...
@@ -32,7 +32,7 @@ import org.springframework.util.ObjectUtils;
...
@@ -32,7 +32,7 @@ import org.springframework.util.ObjectUtils;
* Source that can be bound by a {@link Binder}.
* Source that can be bound by a {@link Binder}.
*
*
* @param <T> The source type
* @param <T> The source type
* @author Philip Webb
* @author Phil
l
ip Webb
* @author Madhura Bhave
* @author Madhura Bhave
* @since 2.0.0
* @since 2.0.0
* @see Bindable#of(Class)
* @see Bindable#of(Class)
...
@@ -195,7 +195,7 @@ public final class Bindable<T> {
...
@@ -195,7 +195,7 @@ public final class Bindable<T> {
}
}
/**
/**
* Create a new {@link Bindable} {@link Map} of the specified k
a
y and value type.
* Create a new {@link Bindable} {@link Map} of the specified k
e
y and value type.
* @param <K> the key type
* @param <K> the key type
* @param <V> the value type
* @param <V> the value type
* @param keyType the map key type
* @param keyType the map key type
...
...
spring-boot/src/main/java/org/springframework/boot/context/properties/source/ConfigurationPropertyName.java
View file @
3f580951
...
@@ -443,7 +443,7 @@ public final class ConfigurationPropertyName
...
@@ -443,7 +443,7 @@ public final class ConfigurationPropertyName
},
},
/**
/**
* The uniform configuration form (used for equals/hash
c
ode; lower-case with only
* The uniform configuration form (used for equals/hash
C
ode; lower-case with only
* alphanumeric characters).
* alphanumeric characters).
* <ul>
* <ul>
* <li>"{@code foo-bar}" = "{@code foobar}"</li>
* <li>"{@code foo-bar}" = "{@code foobar}"</li>
...
...
spring-boot/src/main/java/org/springframework/boot/web/reactive/result/view/MustacheView.java
View file @
3f580951
...
@@ -91,8 +91,8 @@ public class MustacheView extends AbstractUrlBasedView {
...
@@ -91,8 +91,8 @@ public class MustacheView extends AbstractUrlBasedView {
writer
.
flush
();
writer
.
flush
();
}
}
}
}
catch
(
Throwable
ex
c
)
{
catch
(
Throwable
ex
)
{
return
Mono
.
error
(
ex
c
);
return
Mono
.
error
(
ex
);
}
}
return
exchange
.
getResponse
().
writeWith
(
Flux
.
just
(
dataBuffer
));
return
exchange
.
getResponse
().
writeWith
(
Flux
.
just
(
dataBuffer
));
}
}
...
...
spring-boot/src/test/java/org/springframework/boot/context/properties/bind/ArrayBinderTests.java
View file @
3f580951
...
@@ -87,7 +87,7 @@ public class ArrayBinderTests {
...
@@ -87,7 +87,7 @@ public class ArrayBinderTests {
}
}
@Test
@Test
public
void
bindToArrayShouldReturnPrim
a
tiveArray
()
throws
Exception
{
public
void
bindToArrayShouldReturnPrim
i
tiveArray
()
throws
Exception
{
MockConfigurationPropertySource
source
=
new
MockConfigurationPropertySource
();
MockConfigurationPropertySource
source
=
new
MockConfigurationPropertySource
();
source
.
put
(
"foo[0]"
,
"1"
);
source
.
put
(
"foo[0]"
,
"1"
);
source
.
put
(
"foo[1]"
,
"2"
);
source
.
put
(
"foo[1]"
,
"2"
);
...
...
spring-boot/src/test/java/org/springframework/boot/context/properties/bind/BindableTests.java
View file @
3f580951
...
@@ -113,7 +113,7 @@ public class BindableTests {
...
@@ -113,7 +113,7 @@ public class BindableTests {
}
}
@Test
@Test
public
void
getBoxedTypeWhenPrim
a
tiveShouldReturnBoxedType
()
throws
Exception
{
public
void
getBoxedTypeWhenPrim
i
tiveShouldReturnBoxedType
()
throws
Exception
{
Bindable
<
Integer
>
bindable
=
Bindable
.
of
(
int
.
class
);
Bindable
<
Integer
>
bindable
=
Bindable
.
of
(
int
.
class
);
assertThat
(
bindable
.
getType
()).
isEqualTo
(
ResolvableType
.
forClass
(
int
.
class
));
assertThat
(
bindable
.
getType
()).
isEqualTo
(
ResolvableType
.
forClass
(
int
.
class
));
assertThat
(
bindable
.
getBoxedType
())
assertThat
(
bindable
.
getBoxedType
())
...
@@ -121,7 +121,7 @@ public class BindableTests {
...
@@ -121,7 +121,7 @@ public class BindableTests {
}
}
@Test
@Test
public
void
getBoxedTypeWhenPrim
a
tiveArrayShouldReturnBoxedType
()
throws
Exception
{
public
void
getBoxedTypeWhenPrim
i
tiveArrayShouldReturnBoxedType
()
throws
Exception
{
Bindable
<
int
[]>
bindable
=
Bindable
.
of
(
int
[].
class
);
Bindable
<
int
[]>
bindable
=
Bindable
.
of
(
int
[].
class
);
assertThat
(
bindable
.
getType
().
getComponentType
())
assertThat
(
bindable
.
getType
().
getComponentType
())
.
isEqualTo
(
ResolvableType
.
forClass
(
int
.
class
));
.
isEqualTo
(
ResolvableType
.
forClass
(
int
.
class
));
...
@@ -156,7 +156,7 @@ public class BindableTests {
...
@@ -156,7 +156,7 @@ public class BindableTests {
}
}
@Test
@Test
public
void
equalsAndHash
c
ode
()
throws
Exception
{
public
void
equalsAndHash
C
ode
()
throws
Exception
{
Annotation
annotation
=
AnnotationUtils
Annotation
annotation
=
AnnotationUtils
.
synthesizeAnnotation
(
TestAnnotation
.
class
);
.
synthesizeAnnotation
(
TestAnnotation
.
class
);
Bindable
<
String
>
bindable1
=
Bindable
.
of
(
String
.
class
).
withExistingValue
(
"foo"
)
Bindable
<
String
>
bindable1
=
Bindable
.
of
(
String
.
class
).
withExistingValue
(
"foo"
)
...
...
spring-boot/src/test/java/org/springframework/boot/context/properties/bind/JavaBeanBinderTests.java
View file @
3f580951
...
@@ -439,7 +439,7 @@ public class JavaBeanBinderTests {
...
@@ -439,7 +439,7 @@ public class JavaBeanBinderTests {
}
}
@Test
@Test
public
void
bind
t
oInstanceWithExistingValueShouldReturnUnbound
()
throws
Exception
{
public
void
bind
T
oInstanceWithExistingValueShouldReturnUnbound
()
throws
Exception
{
MockConfigurationPropertySource
source
=
new
MockConfigurationPropertySource
();
MockConfigurationPropertySource
source
=
new
MockConfigurationPropertySource
();
this
.
sources
.
add
(
source
);
this
.
sources
.
add
(
source
);
ExampleNestedBean
existingValue
=
new
ExampleNestedBean
();
ExampleNestedBean
existingValue
=
new
ExampleNestedBean
();
...
...
spring-boot/src/test/java/org/springframework/boot/context/properties/bind/handler/IgnoreNestedPropertiesBindHandlerTests.java
View file @
3f580951
...
@@ -51,14 +51,14 @@ public class IgnoreNestedPropertiesBindHandlerTests {
...
@@ -51,14 +51,14 @@ public class IgnoreNestedPropertiesBindHandlerTests {
}
}
@Test
@Test
public
void
bindWhenNotI
ng
oringNestedShouldBindAll
()
throws
Exception
{
public
void
bindWhenNotI
gn
oringNestedShouldBindAll
()
throws
Exception
{
Example
bound
=
this
.
binder
.
bind
(
"example"
,
Bindable
.
of
(
Example
.
class
)).
get
();
Example
bound
=
this
.
binder
.
bind
(
"example"
,
Bindable
.
of
(
Example
.
class
)).
get
();
assertThat
(
bound
.
getFoo
()).
isEqualTo
(
"foovalue"
);
assertThat
(
bound
.
getFoo
()).
isEqualTo
(
"foovalue"
);
assertThat
(
bound
.
getNested
().
getBar
()).
isEqualTo
(
"barvalue"
);
assertThat
(
bound
.
getNested
().
getBar
()).
isEqualTo
(
"barvalue"
);
}
}
@Test
@Test
public
void
bindWhenI
ng
oringNestedShouldFilterNested
()
throws
Exception
{
public
void
bindWhenI
gn
oringNestedShouldFilterNested
()
throws
Exception
{
Example
bound
=
this
.
binder
.
bind
(
"example"
,
Bindable
.
of
(
Example
.
class
),
Example
bound
=
this
.
binder
.
bind
(
"example"
,
Bindable
.
of
(
Example
.
class
),
new
IgnoreNestedPropertiesBindHandler
()).
get
();
new
IgnoreNestedPropertiesBindHandler
()).
get
();
assertThat
(
bound
.
getFoo
()).
isEqualTo
(
"foovalue"
);
assertThat
(
bound
.
getFoo
()).
isEqualTo
(
"foovalue"
);
...
...
spring-boot/src/test/java/org/springframework/boot/context/properties/source/AliasedIterableConfigurationPropertySourceTests.java
View file @
3f580951
...
@@ -30,7 +30,7 @@ public class AliasedIterableConfigurationPropertySourceTests
...
@@ -30,7 +30,7 @@ public class AliasedIterableConfigurationPropertySourceTests
extends
AliasedConfigurationPropertySourceTests
{
extends
AliasedConfigurationPropertySourceTests
{
@Test
@Test
public
void
streamShouldInclueAliases
()
throws
Exception
{
public
void
streamShouldInclu
d
eAliases
()
throws
Exception
{
MockConfigurationPropertySource
source
=
new
MockConfigurationPropertySource
();
MockConfigurationPropertySource
source
=
new
MockConfigurationPropertySource
();
source
.
put
(
"foo.bar"
,
"bing"
);
source
.
put
(
"foo.bar"
,
"bing"
);
source
.
put
(
"foo.baz"
,
"biff"
);
source
.
put
(
"foo.baz"
,
"biff"
);
...
...
spring-boot/src/test/java/org/springframework/boot/context/properties/source/ConfigurationPropertyNameAliasesTests.java
View file @
3f580951
...
@@ -69,7 +69,7 @@ public class ConfigurationPropertyNameAliasesTests {
...
@@ -69,7 +69,7 @@ public class ConfigurationPropertyNameAliasesTests {
}
}
@Test
@Test
public
void
addAl
ai
sesFromNameShouldAddMapping
()
throws
Exception
{
public
void
addAl
ia
sesFromNameShouldAddMapping
()
throws
Exception
{
ConfigurationPropertyNameAliases
aliases
=
new
ConfigurationPropertyNameAliases
();
ConfigurationPropertyNameAliases
aliases
=
new
ConfigurationPropertyNameAliases
();
aliases
.
addAliases
(
ConfigurationPropertyName
.
of
(
"foo"
),
aliases
.
addAliases
(
ConfigurationPropertyName
.
of
(
"foo"
),
ConfigurationPropertyName
.
of
(
"bar"
),
ConfigurationPropertyName
.
of
(
"baz"
));
ConfigurationPropertyName
.
of
(
"bar"
),
ConfigurationPropertyName
.
of
(
"baz"
));
...
...
spring-boot/src/test/java/org/springframework/boot/context/properties/source/ConfigurationPropertySourcesTests.java
View file @
3f580951
...
@@ -111,7 +111,7 @@ public class ConfigurationPropertySourcesTests {
...
@@ -111,7 +111,7 @@ public class ConfigurationPropertySourcesTests {
}
}
@Test
@Test
public
void
attachShouldAddAdapterAtBegining
()
throws
Exception
{
public
void
attachShouldAddAdapterAtBegin
n
ing
()
throws
Exception
{
MutablePropertySources
sources
=
new
MutablePropertySources
();
MutablePropertySources
sources
=
new
MutablePropertySources
();
sources
.
addLast
(
new
SystemEnvironmentPropertySource
(
"system"
,
sources
.
addLast
(
new
SystemEnvironmentPropertySource
(
"system"
,
Collections
.<
String
,
Object
>
singletonMap
(
"SERVER_PORT"
,
"1234"
)));
Collections
.<
String
,
Object
>
singletonMap
(
"SERVER_PORT"
,
"1234"
)));
...
...
spring-boot/src/test/java/org/springframework/boot/context/properties/source/ConfigurationPropertyTests.java
View file @
3f580951
...
@@ -67,7 +67,7 @@ public class ConfigurationPropertyTests {
...
@@ -67,7 +67,7 @@ public class ConfigurationPropertyTests {
}
}
@Test
@Test
public
void
getPropertyOrginShouldReturnValuePropertyOrigin
()
throws
Exception
{
public
void
getPropertyOr
i
ginShouldReturnValuePropertyOrigin
()
throws
Exception
{
Origin
origin
=
mock
(
Origin
.
class
);
Origin
origin
=
mock
(
Origin
.
class
);
OriginProvider
property
=
ConfigurationProperty
.
of
(
NAME
,
"foo"
,
origin
);
OriginProvider
property
=
ConfigurationProperty
.
of
(
NAME
,
"foo"
,
origin
);
assertThat
(
property
.
getOrigin
()).
isEqualTo
(
origin
);
assertThat
(
property
.
getOrigin
()).
isEqualTo
(
origin
);
...
...
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