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
98a2a91d
Commit
98a2a91d
authored
Mar 29, 2018
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
ebb2f70e
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
29 additions
and
31 deletions
+29
-31
WebMvcTags.java
...ramework/boot/actuate/metrics/web/servlet/WebMvcTags.java
+3
-5
WebMvcTagsTests.java
...rk/boot/actuate/endpoint/web/servlet/WebMvcTagsTests.java
+1
-0
IntegrationAutoConfiguration.java
...toconfigure/integration/IntegrationAutoConfiguration.java
+1
-0
JooqAutoConfigurationTests.java
...k/boot/autoconfigure/jooq/JooqAutoConfigurationTests.java
+14
-14
ArchiveCommand.java
...ingframework/boot/cli/command/archive/ArchiveCommand.java
+3
-3
ClassPathChangeUploader.java
.../boot/devtools/remote/client/ClassPathChangeUploader.java
+2
-3
ModifiedClassPathRunner.java
...testsupport/runner/classpath/ModifiedClassPathRunner.java
+4
-5
Log4J2LoggingSystemTests.java
...amework/boot/logging/log4j2/Log4J2LoggingSystemTests.java
+1
-1
No files found.
spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/web/servlet/WebMvcTags.java
View file @
98a2a91d
...
@@ -40,7 +40,6 @@ public final class WebMvcTags {
...
@@ -40,7 +40,6 @@ public final class WebMvcTags {
private
static
final
Tag
URI_REDIRECTION
=
Tag
.
of
(
"uri"
,
"REDIRECTION"
);
private
static
final
Tag
URI_REDIRECTION
=
Tag
.
of
(
"uri"
,
"REDIRECTION"
);
private
WebMvcTags
()
{
private
WebMvcTags
()
{
}
}
...
@@ -110,10 +109,9 @@ public final class WebMvcTags {
...
@@ -110,10 +109,9 @@ public final class WebMvcTags {
}
}
private
static
String
getPathInfo
(
HttpServletRequest
request
)
{
private
static
String
getPathInfo
(
HttpServletRequest
request
)
{
String
uri
=
StringUtils
.
hasText
(
request
.
getPathInfo
())
?
String
pathInfo
=
request
.
getPathInfo
();
request
.
getPathInfo
()
:
"/"
;
String
uri
=
(
StringUtils
.
hasText
(
pathInfo
)
?
pathInfo
:
"/"
);
return
uri
.
replaceAll
(
"//+"
,
"/"
)
return
uri
.
replaceAll
(
"//+"
,
"/"
).
replaceAll
(
"/$"
,
""
);
.
replaceAll
(
"/$"
,
""
);
}
}
/**
/**
...
...
spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/web/servlet/WebMvcTagsTests.java
View file @
98a2a91d
...
@@ -79,4 +79,5 @@ public class WebMvcTagsTests {
...
@@ -79,4 +79,5 @@ public class WebMvcTagsTests {
Tag
tag
=
WebMvcTags
.
uri
(
null
,
null
);
Tag
tag
=
WebMvcTags
.
uri
(
null
,
null
);
assertThat
(
tag
.
getValue
()).
isEqualTo
(
"UNKNOWN"
);
assertThat
(
tag
.
getValue
()).
isEqualTo
(
"UNKNOWN"
);
}
}
}
}
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/integration/IntegrationAutoConfiguration.java
View file @
98a2a91d
...
@@ -122,6 +122,7 @@ public class IntegrationAutoConfiguration {
...
@@ -122,6 +122,7 @@ public class IntegrationAutoConfiguration {
@Configuration
@Configuration
@EnableIntegrationManagement
(
defaultCountsEnabled
=
"true"
)
@EnableIntegrationManagement
(
defaultCountsEnabled
=
"true"
)
protected
static
class
EnableIntegrationManagementConfiguration
{
protected
static
class
EnableIntegrationManagementConfiguration
{
}
}
}
}
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jooq/JooqAutoConfigurationTests.java
View file @
98a2a91d
...
@@ -137,20 +137,20 @@ public class JooqAutoConfigurationTests {
...
@@ -137,20 +137,20 @@ public class JooqAutoConfigurationTests {
this
.
contextRunner
.
withUserConfiguration
(
JooqDataSourceConfiguration
.
class
,
this
.
contextRunner
.
withUserConfiguration
(
JooqDataSourceConfiguration
.
class
,
TxManagerConfiguration
.
class
,
TestRecordMapperProvider
.
class
,
TxManagerConfiguration
.
class
,
TestRecordMapperProvider
.
class
,
TestRecordUnmapperProvider
.
class
,
TestRecordListenerProvider
.
class
,
TestRecordUnmapperProvider
.
class
,
TestRecordListenerProvider
.
class
,
TestExecuteListenerProvider
.
class
,
TestVisitListenerProvider
.
class
TestExecuteListenerProvider
.
class
,
TestVisitListenerProvider
.
class
)
)
.
run
((
context
)
->
{
.
run
((
context
)
->
{
DSLContext
dsl
=
context
.
getBean
(
DSLContext
.
class
);
DSLContext
dsl
=
context
.
getBean
(
DSLContext
.
class
);
assertThat
(
dsl
.
configuration
().
recordMapperProvider
().
getClass
())
assertThat
(
dsl
.
configuration
().
recordMapperProvider
().
getClass
())
.
isEqualTo
(
TestRecordMapperProvider
.
class
);
.
isEqualTo
(
TestRecordMapperProvider
.
class
);
assertThat
(
dsl
.
configuration
().
recordUnmapperProvider
().
getClass
())
assertThat
(
dsl
.
configuration
().
recordUnmapperProvider
().
getClass
())
.
isEqualTo
(
TestRecordUnmapperProvider
.
class
);
.
isEqualTo
(
TestRecordUnmapperProvider
.
class
);
assertThat
(
dsl
.
configuration
().
recordListenerProviders
().
length
)
assertThat
(
dsl
.
configuration
().
recordListenerProviders
().
length
)
.
isEqualTo
(
1
);
.
isEqualTo
(
1
);
assertThat
(
dsl
.
configuration
().
executeListenerProviders
().
length
)
assertThat
(
dsl
.
configuration
().
executeListenerProviders
().
length
)
.
isEqualTo
(
2
);
.
isEqualTo
(
2
);
assertThat
(
dsl
.
configuration
().
visitListenerProviders
().
length
)
assertThat
(
dsl
.
configuration
().
visitListenerProviders
().
length
)
.
isEqualTo
(
1
);
.
isEqualTo
(
1
);
});
});
}
}
@Test
@Test
...
...
spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/archive/ArchiveCommand.java
View file @
98a2a91d
...
@@ -124,9 +124,9 @@ abstract class ArchiveCommand extends OptionParsingCommand {
...
@@ -124,9 +124,9 @@ abstract class ArchiveCommand extends OptionParsingCommand {
protected
ExitStatus
run
(
OptionSet
options
)
throws
Exception
{
protected
ExitStatus
run
(
OptionSet
options
)
throws
Exception
{
List
<?>
nonOptionArguments
=
new
ArrayList
<
Object
>(
List
<?>
nonOptionArguments
=
new
ArrayList
<
Object
>(
options
.
nonOptionArguments
());
options
.
nonOptionArguments
());
Assert
.
isTrue
(
nonOptionArguments
.
size
()
>=
2
,
()
->
"The name of the "
Assert
.
isTrue
(
nonOptionArguments
.
size
()
>=
2
,
+
"resulting "
+
this
.
type
+
" and at least one source file must be "
()
->
"The name of the "
+
"resulting "
+
this
.
type
+
"specified"
);
+
" and at least one source file must be "
+
"specified"
);
File
output
=
new
File
((
String
)
nonOptionArguments
.
remove
(
0
));
File
output
=
new
File
((
String
)
nonOptionArguments
.
remove
(
0
));
Assert
.
isTrue
(
Assert
.
isTrue
(
...
...
spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/remote/client/ClassPathChangeUploader.java
View file @
98a2a91d
...
@@ -112,9 +112,8 @@ public class ClassPathChangeUploader
...
@@ -112,9 +112,8 @@ public class ClassPathChangeUploader
FileCopyUtils
.
copy
(
bytes
,
request
.
getBody
());
FileCopyUtils
.
copy
(
bytes
,
request
.
getBody
());
ClientHttpResponse
response
=
request
.
execute
();
ClientHttpResponse
response
=
request
.
execute
();
HttpStatus
statusCode
=
response
.
getStatusCode
();
HttpStatus
statusCode
=
response
.
getStatusCode
();
Assert
.
state
(
statusCode
==
HttpStatus
.
OK
,
Assert
.
state
(
statusCode
==
HttpStatus
.
OK
,
()
->
"Unexpected "
()
->
"Unexpected "
+
statusCode
+
statusCode
+
" response uploading class files"
);
+
" response uploading class files"
);
logUpload
(
classLoaderFiles
);
logUpload
(
classLoaderFiles
);
return
;
return
;
}
}
...
...
spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/runner/classpath/ModifiedClassPathRunner.java
View file @
98a2a91d
...
@@ -67,8 +67,8 @@ import org.springframework.util.StringUtils;
...
@@ -67,8 +67,8 @@ import org.springframework.util.StringUtils;
*/
*/
public
class
ModifiedClassPathRunner
extends
BlockJUnit4ClassRunner
{
public
class
ModifiedClassPathRunner
extends
BlockJUnit4ClassRunner
{
private
static
final
Pattern
INTELLIJ_CLASSPATH_JAR_PATTERN
=
Pattern
.
compile
(
private
static
final
Pattern
INTELLIJ_CLASSPATH_JAR_PATTERN
=
Pattern
".*classpath(\\d+)?.jar"
);
.
compile
(
".*classpath(\\d+)?.jar"
);
public
ModifiedClassPathRunner
(
Class
<?>
testClass
)
throws
InitializationError
{
public
ModifiedClassPathRunner
(
Class
<?>
testClass
)
throws
InitializationError
{
super
(
testClass
);
super
(
testClass
);
...
@@ -147,7 +147,6 @@ public class ModifiedClassPathRunner extends BlockJUnit4ClassRunner {
...
@@ -147,7 +147,6 @@ public class ModifiedClassPathRunner extends BlockJUnit4ClassRunner {
return
createdBy
!=
null
&&
createdBy
.
contains
(
"IntelliJ"
);
return
createdBy
!=
null
&&
createdBy
.
contains
(
"IntelliJ"
);
}
}
catch
(
Exception
ex
)
{
catch
(
Exception
ex
)
{
return
false
;
}
}
}
}
return
false
;
return
false
;
...
@@ -168,8 +167,8 @@ public class ModifiedClassPathRunner extends BlockJUnit4ClassRunner {
...
@@ -168,8 +167,8 @@ public class ModifiedClassPathRunner extends BlockJUnit4ClassRunner {
private
String
[]
getClassPath
(
URL
booterJar
)
throws
Exception
{
private
String
[]
getClassPath
(
URL
booterJar
)
throws
Exception
{
Attributes
attributes
=
getManifestMainAttributesFromUrl
(
booterJar
);
Attributes
attributes
=
getManifestMainAttributesFromUrl
(
booterJar
);
return
StringUtils
.
delimitedListToStringArray
(
attributes
return
StringUtils
.
delimitedListToStringArray
(
.
getValue
(
Attributes
.
Name
.
CLASS_PATH
),
" "
);
attributes
.
getValue
(
Attributes
.
Name
.
CLASS_PATH
),
" "
);
}
}
private
Attributes
getManifestMainAttributesFromUrl
(
URL
url
)
throws
Exception
{
private
Attributes
getManifestMainAttributesFromUrl
(
URL
url
)
throws
Exception
{
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/logging/log4j2/Log4J2LoggingSystemTests.java
View file @
98a2a91d
/*
/*
* Copyright 2012-201
7
the original author or authors.
* Copyright 2012-201
8
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
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