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
602f733f
Commit
602f733f
authored
Feb 24, 2018
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12205 from izeye:polish-20180224
* pr/12205: Polish
parents
13146788
d441a8a8
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
13 additions
and
14 deletions
+13
-14
EmbeddedLdapProperties.java
...t/autoconfigure/ldap/embedded/EmbeddedLdapProperties.java
+1
-1
ServletWebServerFactoryCustomizer.java
...figure/web/servlet/ServletWebServerFactoryCustomizer.java
+1
-2
DataSourceJmxConfigurationTests.java
...t/autoconfigure/jdbc/DataSourceJmxConfigurationTests.java
+1
-1
RestartClassLoaderTests.java
...devtools/restart/classloader/RestartClassLoaderTests.java
+2
-2
appendix-application-properties.adoc
...cs/src/main/asciidoc/appendix-application-properties.adoc
+1
-1
spring-boot-features.adoc
...ing-boot-docs/src/main/asciidoc/spring-boot-features.adoc
+1
-1
Deprecation.java
...ringframework/boot/configurationmetadata/Deprecation.java
+1
-1
JsonReaderTests.java
...framework/boot/configurationmetadata/JsonReaderTests.java
+2
-2
SentenceExtractorTests.java
...rk/boot/configurationmetadata/SentenceExtractorTests.java
+1
-1
RepackagerTests.java
...rg/springframework/boot/loader/tools/RepackagerTests.java
+1
-1
PropertyMapperTests.java
...ramework/boot/context/properties/PropertyMapperTests.java
+1
-1
No files found.
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/ldap/embedded/EmbeddedLdapProperties.java
View file @
602f733f
...
...
@@ -44,7 +44,7 @@ public class EmbeddedLdapProperties {
private
Credential
credential
=
new
Credential
();
/**
* List of base DN.
* List of base DN
s
.
*/
@Delimiter
(
Delimiter
.
NONE
)
private
List
<
String
>
baseDn
=
new
ArrayList
<>();
...
...
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/servlet/ServletWebServerFactoryCustomizer.java
View file @
602f733f
...
...
@@ -57,8 +57,7 @@ public class ServletWebServerFactoryCustomizer implements
.
to
(
factory:
:
setDisplayName
);
map
.
from
(
this
.
serverProperties
.
getServlet
()::
getSession
).
to
(
factory:
:
setSession
);
map
.
from
(
this
.
serverProperties
::
getSsl
).
to
(
factory:
:
setSsl
);
map
.
from
(
this
.
serverProperties
::
getServlet
).
as
(
ServerProperties
.
Servlet
::
getJsp
)
.
to
(
factory:
:
setJsp
);
map
.
from
(
this
.
serverProperties
.
getServlet
()::
getJsp
).
to
(
factory:
:
setJsp
);
map
.
from
(
this
.
serverProperties
::
getCompression
).
to
(
factory:
:
setCompression
);
map
.
from
(
this
.
serverProperties
::
getHttp2
).
to
(
factory:
:
setHttp2
);
map
.
from
(
this
.
serverProperties
::
getServerHeader
).
to
(
factory:
:
setServerHeader
);
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jdbc/DataSourceJmxConfigurationTests.java
View file @
602f733f
...
...
@@ -82,7 +82,7 @@ public class DataSourceJmxConfigurationTests {
assertThat
(
this
.
context
.
getBean
(
HikariDataSource
.
class
).
isRegisterMbeans
())
.
isTrue
();
// We can't rely on the number of MBeans so we're checking that the pool and pool
// config
m
Beans were registered
// config
M
Beans were registered
assertThat
(
mBeanServer
.
queryMBeans
(
new
ObjectName
(
"com.zaxxer.hikari:type=*"
),
null
).
size
())
.
isEqualTo
(
existingInstances
.
size
()
+
2
);
...
...
spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/restart/classloader/RestartClassLoaderTests.java
View file @
602f733f
...
...
@@ -144,14 +144,14 @@ public class RestartClassLoaderTests {
public
void
getDeletedResource
()
{
String
name
=
PACKAGE_PATH
+
"/Sample.txt"
;
this
.
updatedFiles
.
addFile
(
name
,
new
ClassLoaderFile
(
Kind
.
DELETED
,
null
));
assertThat
(
this
.
reloadClassLoader
.
getResource
(
name
)).
is
EqualTo
(
null
);
assertThat
(
this
.
reloadClassLoader
.
getResource
(
name
)).
is
Null
(
);
}
@Test
public
void
getDeletedResourceAsStream
()
{
String
name
=
PACKAGE_PATH
+
"/Sample.txt"
;
this
.
updatedFiles
.
addFile
(
name
,
new
ClassLoaderFile
(
Kind
.
DELETED
,
null
));
assertThat
(
this
.
reloadClassLoader
.
getResourceAsStream
(
name
)).
is
EqualTo
(
null
);
assertThat
(
this
.
reloadClassLoader
.
getResourceAsStream
(
name
)).
is
Null
(
);
}
@Test
...
...
spring-boot-project/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc
View file @
602f733f
...
...
@@ -370,7 +370,7 @@ content into your application. Rather, pick only the properties that you need.
spring.ldap.username= # Login username of the server.
# EMBEDDED LDAP ({sc-spring-boot-autoconfigure}/ldap/embedded/EmbeddedLdapProperties.{sc-ext}[EmbeddedLdapProperties])
spring.ldap.embedded.base-dn= # List of base DN.
spring.ldap.embedded.base-dn= # List of base DN
s
.
spring.ldap.embedded.credential.username= # Embedded LDAP username.
spring.ldap.embedded.credential.password= # Embedded LDAP password.
spring.ldap.embedded.ldif=classpath:schema.ldif # Schema (LDIF) script resource reference.
...
...
spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
602f733f
...
...
@@ -4466,7 +4466,7 @@ In yaml files, you can use the yaml list notation:
- dc=pivotal,dc=io
----
i
n properties files, you must include the index as part of the property name:
I
n properties files, you must include the index as part of the property name:
[source,properties,indent=0]
----
...
...
spring-boot-project/spring-boot-tools/spring-boot-configuration-metadata/src/main/java/org/springframework/boot/configurationmetadata/Deprecation.java
View file @
602f733f
...
...
@@ -65,7 +65,7 @@ public class Deprecation implements Serializable {
* A single-line, single-sentence reason why the related property is deprecated, if
* any.
* @return the short deprecation reason
* @see #get
Short
Reason()
* @see #getReason()
*/
public
String
getShortReason
()
{
return
this
.
shortReason
;
...
...
spring-boot-project/spring-boot-tools/spring-boot-configuration-metadata/src/test/java/org/springframework/boot/configurationmetadata/JsonReaderTests.java
View file @
602f733f
...
...
@@ -121,7 +121,7 @@ public class JsonReaderTests extends AbstractConfigurationMetadataTests {
assertThat
(
valueHint
.
getDescription
()).
isEqualTo
(
"One."
);
ValueHint
valueHint2
=
hint
.
getValueHints
().
get
(
1
);
assertThat
(
valueHint2
.
getValue
()).
isEqualTo
(
"two"
);
assertThat
(
valueHint2
.
getDescription
()).
is
EqualTo
(
null
);
assertThat
(
valueHint2
.
getDescription
()).
is
Null
(
);
assertThat
(
hint
.
getValueProviders
()).
hasSize
(
2
);
ValueProvider
valueProvider
=
hint
.
getValueProviders
().
get
(
0
);
...
...
@@ -175,7 +175,7 @@ public class JsonReaderTests extends AbstractConfigurationMetadataTests {
assertProperty
(
item3
,
"spring.server.name"
,
"spring.server.name"
,
String
.
class
,
null
);
assertThat
(
item3
.
isDeprecated
()).
isFalse
();
assertThat
(
item3
.
getDeprecation
()).
is
EqualTo
(
null
);
assertThat
(
item3
.
getDeprecation
()).
is
Null
(
);
ConfigurationMetadataItem
item4
=
items
.
get
(
3
);
assertProperty
(
item4
,
"spring.server-name"
,
"spring.server-name"
,
String
.
class
,
...
...
spring-boot-project/spring-boot-tools/spring-boot-configuration-metadata/src/test/java/org/springframework/boot/configurationmetadata/SentenceExtractorTests.java
View file @
602f733f
...
...
@@ -67,7 +67,7 @@ public class SentenceExtractorTests {
@Test
public
void
extractFirstSentenceNull
()
{
assertThat
(
this
.
extractor
.
getFirstSentence
(
null
)).
is
EqualTo
(
null
);
assertThat
(
this
.
extractor
.
getFirstSentence
(
null
)).
is
Null
(
);
}
}
spring-boot-project/spring-boot-tools/spring-boot-loader-tools/src/test/java/org/springframework/boot/loader/tools/RepackagerTests.java
View file @
602f733f
...
...
@@ -209,7 +209,7 @@ public class RepackagerTests {
repackager
.
repackage
(
file
,
NO_LIBRARIES
);
Manifest
actualManifest
=
getManifest
(
file
);
assertThat
(
actualManifest
.
getMainAttributes
().
getValue
(
"Main-Class"
))
.
is
EqualTo
(
null
);
.
is
Null
(
);
assertThat
(
hasLauncherClasses
(
file
)).
isFalse
();
}
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/PropertyMapperTests.java
View file @
602f733f
...
...
@@ -143,7 +143,7 @@ public class PropertyMapperTests {
}
@Test
public
void
whenInstanceOf
To
WhenValueIsTargetTypeShouldMatch
()
{
public
void
whenInstanceOfWhenValueIsTargetTypeShouldMatch
()
{
Long
result
=
this
.
map
.
from
(()
->
123L
).
whenInstanceOf
(
Long
.
class
)
.
toInstance
((
value
)
->
value
+
1
);
assertThat
(
result
).
isEqualTo
(
124L
);
...
...
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