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
3e093035
Commit
3e093035
authored
Aug 16, 2018
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1.5.x' into 2.0.x
parents
ff2b3923
91fcec83
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
18 deletions
+5
-18
TraceableHttpServletRequest.java
...ctuate/web/trace/servlet/TraceableHttpServletRequest.java
+2
-10
RestartClassLoaderTests.java
...devtools/restart/classloader/RestartClassLoaderTests.java
+3
-8
No files found.
spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/web/trace/servlet/TraceableHttpServletRequest.java
View file @
3e093035
...
@@ -19,7 +19,7 @@ package org.springframework.boot.actuate.web.trace.servlet;
...
@@ -19,7 +19,7 @@ package org.springframework.boot.actuate.web.trace.servlet;
import
java.net.URI
;
import
java.net.URI
;
import
java.net.URISyntaxException
;
import
java.net.URISyntaxException
;
import
java.nio.charset.StandardCharsets
;
import
java.nio.charset.StandardCharsets
;
import
java.util.
ArrayList
;
import
java.util.
Collections
;
import
java.util.Enumeration
;
import
java.util.Enumeration
;
import
java.util.LinkedHashMap
;
import
java.util.LinkedHashMap
;
import
java.util.List
;
import
java.util.List
;
...
@@ -85,17 +85,9 @@ final class TraceableHttpServletRequest implements TraceableRequest {
...
@@ -85,17 +85,9 @@ final class TraceableHttpServletRequest implements TraceableRequest {
Enumeration
<
String
>
names
=
this
.
request
.
getHeaderNames
();
Enumeration
<
String
>
names
=
this
.
request
.
getHeaderNames
();
while
(
names
.
hasMoreElements
())
{
while
(
names
.
hasMoreElements
())
{
String
name
=
names
.
nextElement
();
String
name
=
names
.
nextElement
();
headers
.
put
(
name
,
toL
ist
(
this
.
request
.
getHeaders
(
name
)));
headers
.
put
(
name
,
Collections
.
l
ist
(
this
.
request
.
getHeaders
(
name
)));
}
}
return
headers
;
return
headers
;
}
}
private
List
<
String
>
toList
(
Enumeration
<
String
>
enumeration
)
{
List
<
String
>
list
=
new
ArrayList
<>();
while
(
enumeration
.
hasMoreElements
())
{
list
.
add
(
enumeration
.
nextElement
());
}
return
list
;
}
}
}
spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/restart/classloader/RestartClassLoaderTests.java
View file @
3e093035
...
@@ -23,7 +23,7 @@ import java.io.InputStream;
...
@@ -23,7 +23,7 @@ import java.io.InputStream;
import
java.net.URL
;
import
java.net.URL
;
import
java.net.URLClassLoader
;
import
java.net.URLClassLoader
;
import
java.nio.charset.StandardCharsets
;
import
java.nio.charset.StandardCharsets
;
import
java.util.
ArrayList
;
import
java.util.
Collections
;
import
java.util.Enumeration
;
import
java.util.Enumeration
;
import
java.util.List
;
import
java.util.List
;
import
java.util.jar.JarOutputStream
;
import
java.util.jar.JarOutputStream
;
...
@@ -212,13 +212,8 @@ public class RestartClassLoaderTests {
...
@@ -212,13 +212,8 @@ public class RestartClassLoaderTests {
}
}
private
<
T
>
List
<
T
>
toList
(
Enumeration
<
T
>
enumeration
)
{
private
<
T
>
List
<
T
>
toList
(
Enumeration
<
T
>
enumeration
)
{
List
<
T
>
list
=
new
ArrayList
<>();
return
(
enumeration
!=
null
)
?
Collections
.
list
(
enumeration
)
if
(
enumeration
!=
null
)
{
:
Collections
.<
T
>
emptyList
();
while
(
enumeration
.
hasMoreElements
())
{
list
.
add
(
enumeration
.
nextElement
());
}
}
return
list
;
}
}
}
}
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