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
60eace17
Commit
60eace17
authored
Aug 23, 2018
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14172 from izeye:polish-20180823
* pr/14172: Polish
parents
1b7f7134
9602a32a
Changes
16
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
22 additions
and
34 deletions
+22
-34
LocalDevToolsAutoConfiguration.java
...evtools/autoconfigure/LocalDevToolsAutoConfiguration.java
+3
-6
spring-boot-features.adoc
...ing-boot-docs/src/main/asciidoc/spring-boot-features.adoc
+2
-2
DataLdapTestPropertiesIntegrationTests.java
...ure/data/ldap/DataLdapTestPropertiesIntegrationTests.java
+1
-2
DataMongoTestPropertiesIntegrationTests.java
...e/data/mongo/DataMongoTestPropertiesIntegrationTests.java
+1
-2
DataNeo4jTestPropertiesIntegrationTests.java
...e/data/neo4j/DataNeo4jTestPropertiesIntegrationTests.java
+1
-2
DataRedisTestPropertiesIntegrationTests.java
...e/data/redis/DataRedisTestPropertiesIntegrationTests.java
+1
-2
JdbcTestPropertiesIntegrationTests.java
...utoconfigure/jdbc/JdbcTestPropertiesIntegrationTests.java
+1
-2
JooqTestPropertiesIntegrationTests.java
...utoconfigure/jooq/JooqTestPropertiesIntegrationTests.java
+1
-2
JsonTestPropertiesIntegrationTests.java
...utoconfigure/json/JsonTestPropertiesIntegrationTests.java
+1
-2
DataJpaTestPropertiesIntegrationTests.java
...figure/orm/jpa/DataJpaTestPropertiesIntegrationTests.java
+1
-2
RestClientTestPropertiesIntegrationTests.java
.../web/client/RestClientTestPropertiesIntegrationTests.java
+1
-2
WebFluxTestPropertiesIntegrationTests.java
...e/web/reactive/WebFluxTestPropertiesIntegrationTests.java
+1
-2
WebMvcTestPropertiesIntegrationTests.java
...ure/web/servlet/WebMvcTestPropertiesIntegrationTests.java
+1
-2
NoSuchMethodFailureAnalyzer.java
...oot/diagnostics/analyzer/NoSuchMethodFailureAnalyzer.java
+2
-2
MockDataSizeTypeDescriptor.java
...ingframework/boot/convert/MockDataSizeTypeDescriptor.java
+1
-1
NoSuchMethodFailureAnalyzerTests.java
...iagnostics/analyzer/NoSuchMethodFailureAnalyzerTests.java
+3
-1
No files found.
spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/autoconfigure/LocalDevToolsAutoConfiguration.java
View file @
60eace17
...
...
@@ -191,14 +191,11 @@ public class LocalDevToolsAutoConfiguration {
@Override
public
void
onApplicationEvent
(
ApplicationEvent
event
)
{
if
(
event
instanceof
ContextRefreshedEvent
)
{
if
(
event
instanceof
ContextRefreshedEvent
||
(
event
instanceof
ClassPathChangedEvent
&&
!((
ClassPathChangedEvent
)
event
).
isRestartRequired
()))
{
this
.
liveReloadServer
.
triggerReload
();
}
if
(
event
instanceof
ClassPathChangedEvent
)
{
if
(!((
ClassPathChangedEvent
)
event
).
isRestartRequired
())
{
this
.
liveReloadServer
.
triggerReload
();
}
}
}
@Override
...
...
spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
60eace17
...
...
@@ -1290,7 +1290,7 @@ To specify a session timeout of 30 seconds, `30`, `PT30S` and `30s` are all equi
read timeout of 500ms can be specified in any of the following form: `500`, `PT0.5S` and
`500ms`.
You can also use any of the supported unit. These are:
You can also use any of the supported unit
s
. These are:
* `ns` for nanoseconds
* `us` for microseconds
...
...
@@ -1331,7 +1331,7 @@ include::{code-examples}/context/properties/bind/AppIoProperties.java[tag=exampl
To specify a buffer size of 10 megabytes, `10` and `10MB` are equivalent. A size threshold
of 256 bytes can be specified as `256` or `256B`.
You can also use any of the supported unit. These are:
You can also use any of the supported unit
s
. These are:
* `B` for bytes
* `KB` for kilobytes
...
...
spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/data/ldap/DataLdapTestPropertiesIntegrationTests.java
View file @
60eace17
...
...
@@ -40,8 +40,7 @@ public class DataLdapTestPropertiesIntegrationTests {
@Test
public
void
environmentWithNewProfile
()
{
String
profile
=
this
.
environment
.
getActiveProfiles
()[
0
];
assertThat
(
profile
).
isEqualTo
(
"test"
);
assertThat
(
this
.
environment
.
getActiveProfiles
()).
containsExactly
(
"test"
);
}
}
spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/data/mongo/DataMongoTestPropertiesIntegrationTests.java
View file @
60eace17
...
...
@@ -40,8 +40,7 @@ public class DataMongoTestPropertiesIntegrationTests {
@Test
public
void
environmentWithNewProfile
()
{
String
profile
=
this
.
environment
.
getActiveProfiles
()[
0
];
assertThat
(
profile
).
isEqualTo
(
"test"
);
assertThat
(
this
.
environment
.
getActiveProfiles
()).
containsExactly
(
"test"
);
}
}
spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/data/neo4j/DataNeo4jTestPropertiesIntegrationTests.java
View file @
60eace17
...
...
@@ -50,8 +50,7 @@ public class DataNeo4jTestPropertiesIntegrationTests {
@Test
public
void
environmentWithNewProfile
()
{
String
profile
=
this
.
environment
.
getActiveProfiles
()[
0
];
assertThat
(
profile
).
isEqualTo
(
"test"
);
assertThat
(
this
.
environment
.
getActiveProfiles
()).
containsExactly
(
"test"
);
}
static
class
Initializer
...
...
spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/data/redis/DataRedisTestPropertiesIntegrationTests.java
View file @
60eace17
...
...
@@ -50,8 +50,7 @@ public class DataRedisTestPropertiesIntegrationTests {
@Test
public
void
environmentWithNewProfile
()
{
String
profile
=
this
.
environment
.
getActiveProfiles
()[
0
];
assertThat
(
profile
).
isEqualTo
(
"test"
);
assertThat
(
this
.
environment
.
getActiveProfiles
()).
containsExactly
(
"test"
);
}
static
class
Initializer
...
...
spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/jdbc/JdbcTestPropertiesIntegrationTests.java
View file @
60eace17
...
...
@@ -40,8 +40,7 @@ public class JdbcTestPropertiesIntegrationTests {
@Test
public
void
environmentWithNewProfile
()
{
String
profile
=
this
.
environment
.
getActiveProfiles
()[
0
];
assertThat
(
profile
).
isEqualTo
(
"test"
);
assertThat
(
this
.
environment
.
getActiveProfiles
()).
containsExactly
(
"test"
);
}
}
spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/jooq/JooqTestPropertiesIntegrationTests.java
View file @
60eace17
...
...
@@ -40,8 +40,7 @@ public class JooqTestPropertiesIntegrationTests {
@Test
public
void
environmentWithNewProfile
()
{
String
profile
=
this
.
environment
.
getActiveProfiles
()[
0
];
assertThat
(
profile
).
isEqualTo
(
"test"
);
assertThat
(
this
.
environment
.
getActiveProfiles
()).
containsExactly
(
"test"
);
}
}
spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/json/JsonTestPropertiesIntegrationTests.java
View file @
60eace17
...
...
@@ -40,8 +40,7 @@ public class JsonTestPropertiesIntegrationTests {
@Test
public
void
environmentWithNewProfile
()
{
String
profile
=
this
.
environment
.
getActiveProfiles
()[
0
];
assertThat
(
profile
).
isEqualTo
(
"test"
);
assertThat
(
this
.
environment
.
getActiveProfiles
()).
containsExactly
(
"test"
);
}
}
spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/orm/jpa/DataJpaTestPropertiesIntegrationTests.java
View file @
60eace17
...
...
@@ -40,8 +40,7 @@ public class DataJpaTestPropertiesIntegrationTests {
@Test
public
void
environmentWithNewProfile
()
{
String
profile
=
this
.
environment
.
getActiveProfiles
()[
0
];
assertThat
(
profile
).
isEqualTo
(
"test"
);
assertThat
(
this
.
environment
.
getActiveProfiles
()).
containsExactly
(
"test"
);
}
}
spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/client/RestClientTestPropertiesIntegrationTests.java
View file @
60eace17
...
...
@@ -40,8 +40,7 @@ public class RestClientTestPropertiesIntegrationTests {
@Test
public
void
environmentWithNewProfile
()
{
String
profile
=
this
.
environment
.
getActiveProfiles
()[
0
];
assertThat
(
profile
).
isEqualTo
(
"test"
);
assertThat
(
this
.
environment
.
getActiveProfiles
()).
containsExactly
(
"test"
);
}
}
spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/reactive/WebFluxTestPropertiesIntegrationTests.java
View file @
60eace17
...
...
@@ -40,8 +40,7 @@ public class WebFluxTestPropertiesIntegrationTests {
@Test
public
void
environmentWithNewProfile
()
{
String
profile
=
this
.
environment
.
getActiveProfiles
()[
0
];
assertThat
(
profile
).
isEqualTo
(
"test"
);
assertThat
(
this
.
environment
.
getActiveProfiles
()).
containsExactly
(
"test"
);
}
}
spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/servlet/WebMvcTestPropertiesIntegrationTests.java
View file @
60eace17
...
...
@@ -40,8 +40,7 @@ public class WebMvcTestPropertiesIntegrationTests {
@Test
public
void
environmentWithNewProfile
()
{
String
profile
=
this
.
environment
.
getActiveProfiles
()[
0
];
assertThat
(
profile
).
isEqualTo
(
"test"
);
assertThat
(
this
.
environment
.
getActiveProfiles
()).
containsExactly
(
"test"
);
}
}
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/diagnostics/analyzer/NoSuchMethodFailureAnalyzer.java
View file @
60eace17
...
...
@@ -86,9 +86,9 @@ class NoSuchMethodFailureAnalyzer extends AbstractFailureAnalyzer<NoSuchMethodEr
private
List
<
URL
>
findCandidates
(
String
className
)
{
try
{
return
Collections
.
list
(
(
NoSuchMethodFailureAnalyzer
.
class
.
getClassLoader
()
return
Collections
.
list
(
NoSuchMethodFailureAnalyzer
.
class
.
getClassLoader
()
.
getResources
(
ClassUtils
.
convertClassNameToResourcePath
(
className
)
+
".class"
))
)
;
+
".class"
));
}
catch
(
Throwable
ex
)
{
return
null
;
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/convert/MockDataSizeTypeDescriptor.java
View file @
60eace17
...
...
@@ -27,7 +27,7 @@ import static org.mockito.BDDMockito.given;
import
static
org
.
mockito
.
Mockito
.
mock
;
/**
* Create a mock {@link TypeDescriptor} with optional {@link DataUnit} annotation.
* Create a mock {@link TypeDescriptor} with optional {@link Data
Size
Unit} annotation.
*
* @author Stephane Nicoll
*/
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/diagnostics/analyzer/NoSuchMethodFailureAnalyzerTests.java
View file @
60eace17
...
...
@@ -30,7 +30,9 @@ import static org.assertj.core.api.Assertions.assertThat;
import
static
org
.
mockito
.
Mockito
.
mock
;
/**
* @author awilkinson
* Tests for {@link NoSuchMethodFailureAnalyzer}.
*
* @author Andy Wilkinson
*/
@RunWith
(
ModifiedClassPathRunner
.
class
)
@ClassPathOverrides
(
"javax.servlet:servlet-api:2.5"
)
...
...
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