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
efd941bb
Commit
efd941bb
authored
Jan 18, 2018
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1.5.x'
parents
6086bc71
97a51ddc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
DuplicateJsonObjectContextCustomizerFactory.java
...est/json/DuplicateJsonObjectContextCustomizerFactory.java
+5
-5
No files found.
spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/json/DuplicateJsonObjectContextCustomizerFactory.java
View file @
efd941bb
...
@@ -75,13 +75,13 @@ class DuplicateJsonObjectContextCustomizerFactory implements ContextCustomizerFa
...
@@ -75,13 +75,13 @@ class DuplicateJsonObjectContextCustomizerFactory implements ContextCustomizerFa
}
}
private
void
logDuplicateJsonObjectsWarning
(
List
<
URL
>
jsonObjects
)
{
private
void
logDuplicateJsonObjectsWarning
(
List
<
URL
>
jsonObjects
)
{
StringBuilder
message
=
new
StringBuilder
(
"\n\
nFound multiple occurrences of"
StringBuilder
message
=
new
StringBuilder
(
String
.
format
(
"%n%
nFound multiple occurrences of"
+
" org.json.JSONObject on the class path:
\n\n"
);
+
" org.json.JSONObject on the class path:
%n%n"
)
);
for
(
URL
jsonObject
:
jsonObjects
)
{
for
(
URL
jsonObject
:
jsonObjects
)
{
message
.
append
(
"\t"
+
jsonObject
+
"\n"
);
message
.
append
(
String
.
format
(
"\t%s%n"
,
jsonObject
)
);
}
}
message
.
append
(
"\
nYou may wish to exclude one of them to ensure"
message
.
append
(
String
.
format
(
"%
nYou may wish to exclude one of them to ensure"
+
" predictable runtime behavior
\n"
);
+
" predictable runtime behavior
%n"
)
);
this
.
logger
.
warn
(
message
);
this
.
logger
.
warn
(
message
);
}
}
...
...
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