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
aa748cb0
Commit
aa748cb0
authored
Jan 18, 2018
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish "Use System.lineSeparator()""
Closes gh-11665
parent
d8c83af9
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
16 additions
and
12 deletions
+16
-12
ServiceCapabilitiesReportGenerator.java
.../cli/command/init/ServiceCapabilitiesReportGenerator.java
+1
-1
DescriptionExtractor.java
...work/boot/configurationmetadata/DescriptionExtractor.java
+1
-1
DescriptionExtractorTests.java
...boot/configurationmetadata/DescriptionExtractorTests.java
+7
-4
ImageBannerTests.java
.../test/java/org/springframework/boot/ImageBannerTests.java
+1
-1
ExtendedWhitespaceThrowablePatternConverterTests.java
...4j2/ExtendedWhitespaceThrowablePatternConverterTests.java
+3
-2
WhitespaceThrowablePatternConverterTests.java
...ging/log4j2/WhitespaceThrowablePatternConverterTests.java
+1
-1
ExtendedWhitespaceThrowableProxyConverterTests.java
...gback/ExtendedWhitespaceThrowableProxyConverterTests.java
+1
-1
WhitespaceThrowableProxyConverterTests.java
...gging/logback/WhitespaceThrowableProxyConverterTests.java
+1
-1
No files found.
spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/ServiceCapabilitiesReportGenerator.java
View file @
aa748cb0
/*
/*
* 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.
...
...
spring-boot-project/spring-boot-tools/spring-boot-configuration-metadata/src/main/java/org/springframework/boot/configurationmetadata/DescriptionExtractor.java
View file @
aa748cb0
/*
/*
* 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.
...
...
spring-boot-project/spring-boot-tools/spring-boot-configuration-metadata/src/test/java/org/springframework/boot/configurationmetadata/DescriptionExtractorTests.java
View file @
aa748cb0
/*
/*
* 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.
...
@@ -39,14 +39,16 @@ public class DescriptionExtractorTests {
...
@@ -39,14 +39,16 @@ public class DescriptionExtractorTests {
@Test
@Test
public
void
extractShortDescriptionNewLineBeforeDot
()
{
public
void
extractShortDescriptionNewLineBeforeDot
()
{
String
description
=
this
.
extractor
.
getShortDescription
(
String
description
=
this
.
extractor
.
getShortDescription
(
"My short"
+
System
.
lineSeparator
()
+
"description."
+
System
.
lineSeparator
()
+
"More stuff."
);
"My short"
+
System
.
lineSeparator
()
+
"description."
+
System
.
lineSeparator
()
+
"More stuff."
);
assertThat
(
description
).
isEqualTo
(
"My short description."
);
assertThat
(
description
).
isEqualTo
(
"My short description."
);
}
}
@Test
@Test
public
void
extractShortDescriptionNewLineBeforeDotWithSpaces
()
{
public
void
extractShortDescriptionNewLineBeforeDotWithSpaces
()
{
String
description
=
this
.
extractor
.
getShortDescription
(
String
description
=
this
.
extractor
.
getShortDescription
(
"My short "
+
System
.
lineSeparator
()
+
" description. "
+
System
.
lineSeparator
()
+
"More stuff."
);
"My short "
+
System
.
lineSeparator
()
+
" description. "
+
System
.
lineSeparator
()
+
"More stuff."
);
assertThat
(
description
).
isEqualTo
(
"My short description."
);
assertThat
(
description
).
isEqualTo
(
"My short description."
);
}
}
...
@@ -59,7 +61,8 @@ public class DescriptionExtractorTests {
...
@@ -59,7 +61,8 @@ public class DescriptionExtractorTests {
@Test
@Test
public
void
extractShortDescriptionNoDotMultipleLines
()
{
public
void
extractShortDescriptionNoDotMultipleLines
()
{
String
description
=
this
.
extractor
String
description
=
this
.
extractor
.
getShortDescription
(
"My short description "
+
System
.
lineSeparator
()
+
" More stuff"
);
.
getShortDescription
(
"My short description "
+
System
.
lineSeparator
()
+
" More stuff"
);
assertThat
(
description
).
isEqualTo
(
"My short description"
);
assertThat
(
description
).
isEqualTo
(
"My short description"
);
}
}
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/ImageBannerTests.java
View file @
aa748cb0
/*
/*
* 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.
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/logging/log4j2/ExtendedWhitespaceThrowablePatternConverterTests.java
View file @
aa748cb0
/*
/*
* 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.
...
@@ -48,7 +48,8 @@ public class ExtendedWhitespaceThrowablePatternConverterTests {
...
@@ -48,7 +48,8 @@ public class ExtendedWhitespaceThrowablePatternConverterTests {
LogEvent
event
=
Log4jLogEvent
.
newBuilder
().
setThrown
(
new
Exception
()).
build
();
LogEvent
event
=
Log4jLogEvent
.
newBuilder
().
setThrown
(
new
Exception
()).
build
();
StringBuilder
builder
=
new
StringBuilder
();
StringBuilder
builder
=
new
StringBuilder
();
this
.
converter
.
format
(
event
,
builder
);
this
.
converter
.
format
(
event
,
builder
);
assertThat
(
builder
).
startsWith
(
System
.
lineSeparator
()).
endsWith
(
System
.
lineSeparator
());
assertThat
(
builder
).
startsWith
(
System
.
lineSeparator
())
.
endsWith
(
System
.
lineSeparator
());
}
}
}
}
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/logging/log4j2/WhitespaceThrowablePatternConverterTests.java
View file @
aa748cb0
/*
/*
* 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.
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/logging/logback/ExtendedWhitespaceThrowableProxyConverterTests.java
View file @
aa748cb0
/*
/*
* 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.
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/logging/logback/WhitespaceThrowableProxyConverterTests.java
View file @
aa748cb0
/*
/*
* 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