|
16 | 16 | import static j2html.TagCreator.meta; |
17 | 17 | import static j2html.TagCreator.ol; |
18 | 18 | import static j2html.TagCreator.p; |
19 | | -import static j2html.TagCreator.pre; |
20 | 19 | import static j2html.TagCreator.span; |
21 | 20 | import static j2html.TagCreator.title; |
22 | 21 | import static j2html.TagCreator.ul; |
|
34 | 33 | import j2html.tags.specialized.HtmlTag; |
35 | 34 | import j2html.tags.specialized.LiTag; |
36 | 35 | import j2html.tags.specialized.OlTag; |
37 | | -import j2html.tags.specialized.SpanTag; |
38 | 36 | import j2html.tags.specialized.UlTag; |
39 | 37 | import java.io.IOException; |
40 | 38 | import java.io.OutputStreamWriter; |
@@ -207,8 +205,7 @@ private OlTag ol_changed(List<ChangedOperation> changedOperations) { |
207 | 205 | UlTag ul_detail = ul().withClass("detail"); |
208 | 206 | if (result(changedOperation.getOperationId()).isDifferent()) { |
209 | 207 | ul_detail.with( |
210 | | - li().with(h3("Operation ID")).with(ul_operation_id(changedOperation.getOperationId())) |
211 | | - ); |
| 208 | + li().with(h3("Operation ID")).with(ul_operation_id(changedOperation.getOperationId()))); |
212 | 209 | } |
213 | 210 | if (result(changedOperation.getParameters()).isDifferent()) { |
214 | 211 | ul_detail.with( |
@@ -571,13 +568,12 @@ private LiTag li_changedParam(ChangedParameter changeParam) { |
571 | 568 | } |
572 | 569 |
|
573 | 570 | private UlTag ul_operation_id(ChangedOperationId changedOperationId) { |
574 | | - return ul().withClass("change").with( |
575 | | - li().withText( |
576 | | - "Changed " + |
577 | | - Optional.ofNullable(changedOperationId.getLeft()).orElse("") + |
578 | | - " to " + |
579 | | - Optional.ofNullable(changedOperationId.getRight()).orElse("") |
580 | | - ) |
581 | | - ); |
| 571 | + return ul().withClass("change") |
| 572 | + .with( |
| 573 | + li().withText( |
| 574 | + "Changed " |
| 575 | + + Optional.ofNullable(changedOperationId.getLeft()).orElse("") |
| 576 | + + " to " |
| 577 | + + Optional.ofNullable(changedOperationId.getRight()).orElse(""))); |
582 | 578 | } |
583 | 579 | } |
0 commit comments