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
ffe99433
Commit
ffe99433
authored
Jul 16, 2018
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1.5.x' into 2.0.x
parents
a18c4137
fec5ecc5
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-project/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/TypeUtils.java
View file @
ffe99433
...
...
@@ -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-project/spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationprocessor/ConfigurationMetadataAnnotationProcessorTests.java
View file @
ffe99433
...
...
@@ -222,7 +222,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-project/spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationsample/simple/DescriptionProperties.java
View file @
ffe99433
...
...
@@ -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