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
9fba2c4a
Commit
9fba2c4a
authored
Jul 16, 2018
by
Johnny Lim
Committed by
Stephane Nicoll
Jul 16, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove carriage returns in TypeUtils.getJavaDoc()
Closes gh-13779
parent
e556c04d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
TypeUtils.java
...pringframework/boot/configurationprocessor/TypeUtils.java
+1
-2
ConfigurationMetadataAnnotationProcessorTests.java
...cessor/ConfigurationMetadataAnnotationProcessorTests.java
+1
-1
DescriptionProperties.java
...oot/configurationsample/simple/DescriptionProperties.java
+1
-1
No files found.
spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/TypeUtils.java
View file @
9fba2c4a
...
...
@@ -142,8 +142,7 @@ class TypeUtils {
String
javadoc
=
(
element
!=
null
?
this
.
env
.
getElementUtils
().
getDocComment
(
element
)
:
null
);
if
(
javadoc
!=
null
)
{
javadoc
=
javadoc
.
replaceAll
(
"\\n"
,
""
);
javadoc
=
javadoc
.
trim
();
javadoc
=
javadoc
.
replaceAll
(
"[\r\n]+"
,
""
).
trim
();
}
return
(
""
.
equals
(
javadoc
)
?
null
:
javadoc
);
}
...
...
spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationprocessor/ConfigurationMetadataAnnotationProcessorTests.java
View file @
9fba2c4a
...
...
@@ -204,7 +204,7 @@ public class ConfigurationMetadataAnnotationProcessorTests {
assertThat
(
metadata
).
has
(
Metadata
.
withProperty
(
"description.multi-line"
,
String
.
class
)
.
fromSource
(
DescriptionProperties
.
class
).
withDescription
(
"This is a lengthy description that spans across multiple lines to showcase that the
carriage return is
cleaned automatically."
));
"This is a lengthy description that spans across multiple lines to showcase that the
line separators are
cleaned automatically."
));
}
@Test
...
...
spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationsample/simple/DescriptionProperties.java
View file @
9fba2c4a
...
...
@@ -33,7 +33,7 @@ public class DescriptionProperties {
/**
* This is a lengthy description that spans across multiple lines to showcase that the
*
carriage return is
cleaned automatically.
*
line separators are
cleaned automatically.
*/
private
String
multiLine
;
...
...
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