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
87874ffb
Commit
87874ffb
authored
May 15, 2019
by
Johnny Lim
Committed by
Stephane Nicoll
May 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
Closes gh-16875
parent
cce8c45a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
10 deletions
+4
-10
AsciidocBuilder.java
...ringframework/boot/configurationdocs/AsciidocBuilder.java
+3
-8
CompoundConfigurationTableEntry.java
...ot/configurationdocs/CompoundConfigurationTableEntry.java
+1
-2
No files found.
spring-boot-project/spring-boot-tools/spring-boot-configuration-docs/src/main/java/org/springframework/boot/configurationdocs/AsciidocBuilder.java
View file @
87874ffb
...
...
@@ -23,8 +23,6 @@ package org.springframework.boot.configurationdocs;
*/
class
AsciidocBuilder
{
private
static
final
String
NEWLINE
=
System
.
lineSeparator
();
private
final
StringBuilder
content
;
AsciidocBuilder
()
{
...
...
@@ -33,20 +31,17 @@ class AsciidocBuilder {
public
AsciidocBuilder
appendKey
(
Object
...
items
)
{
for
(
Object
item
:
items
)
{
append
(
"`+"
,
item
,
"+` +"
,
NEWLINE
);
append
ln
(
"`+"
,
item
,
"+` +"
);
}
return
this
;
}
public
AsciidocBuilder
newLine
()
{
append
(
NEWLINE
);
return
this
;
return
append
(
System
.
lineSeparator
());
}
public
AsciidocBuilder
appendln
(
Object
...
items
)
{
append
(
items
);
append
(
NEWLINE
);
return
this
;
return
append
(
items
).
newLine
();
}
public
AsciidocBuilder
append
(
Object
...
items
)
{
...
...
spring-boot-project/spring-boot-tools/spring-boot-configuration-docs/src/main/java/org/springframework/boot/configurationdocs/CompoundConfigurationTableEntry.java
View file @
87874ffb
...
...
@@ -48,8 +48,7 @@ class CompoundConfigurationTableEntry extends ConfigurationTableEntry {
public
void
write
(
AsciidocBuilder
builder
)
{
builder
.
append
(
"|"
);
this
.
configurationKeys
.
forEach
(
builder:
:
appendKey
);
builder
.
newLine
().
appendln
(
"|"
);
builder
.
appendln
(
"|+++"
,
this
.
description
,
"+++"
);
builder
.
newLine
().
appendln
(
"|"
).
appendln
(
"|+++"
,
this
.
description
,
"+++"
);
}
}
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