33
33
import jdk .javadoc .internal .doclets .formats .html .markup .Text ;
34
34
import jdk .javadoc .internal .doclets .formats .html .markup .TagName ;
35
35
import jdk .javadoc .internal .doclets .toolkit .Content ;
36
- import jdk .javadoc .internal .doclets .toolkit .util .DocletConstants ;
37
36
import jdk .javadoc .internal .doclets .toolkit .util .Utils ;
38
37
39
38
import javax .lang .model .element .Element ;
@@ -150,7 +149,7 @@ public Content toContent() {
150
149
if (!utils .isPlainInterface (typeElement )) {
151
150
TypeMirror superclass = utils .getFirstVisibleSuperClass (typeElement );
152
151
if (superclass != null ) {
153
- content .add (DocletConstants .NL );
152
+ content .add (Text .NL );
154
153
extendsImplements .add ("extends " );
155
154
Content link = writer .getLink (new HtmlLinkInfo (configuration ,
156
155
HtmlLinkInfo .Kind .CLASS_SIGNATURE_PARENT_NAME ,
@@ -167,7 +166,7 @@ public Content toContent() {
167
166
continue ;
168
167
}
169
168
if (isFirst ) {
170
- extendsImplements .add (DocletConstants .NL );
169
+ extendsImplements .add (Text .NL );
171
170
extendsImplements .add (utils .isPlainInterface (typeElement ) ? "extends " : "implements " );
172
171
isFirst = false ;
173
172
} else {
@@ -192,7 +191,7 @@ public Content toContent() {
192
191
boolean isFirst = true ;
193
192
for (TypeMirror type : linkablePermits ) {
194
193
if (isFirst ) {
195
- content .add (DocletConstants .NL );
194
+ content .add (Text .NL );
196
195
permitsSpan .add ("permits" );
197
196
permitsSpan .add (" " );
198
197
isFirst = false ;
@@ -221,7 +220,7 @@ private Content getRecordComponents() {
221
220
for (RecordComponentElement e : typeElement .getRecordComponents ()) {
222
221
content .add (sep );
223
222
writer .getAnnotations (e .getAnnotationMirrors (), false )
224
- .forEach (a -> { content .add (a ).add (" " ); } );
223
+ .forEach (a -> content .add (a ).add (" " ));
225
224
Content link = writer .getLink (new HtmlLinkInfo (configuration , HtmlLinkInfo .Kind .RECORD_COMPONENT ,
226
225
e .asType ()));
227
226
content .add (link );
@@ -544,7 +543,7 @@ private int appendTypeParameters(Content target, int lastLineSeparator) {
544
543
545
544
// sum below includes length of modifiers plus type params added above
546
545
if (lineLength + returnType .charCount () > RETURN_TYPE_MAX_LINE_LENGTH ) {
547
- target .add (DocletConstants .NL );
546
+ target .add (Text .NL );
548
547
newLastLineSeparator = target .charCount ();
549
548
} else {
550
549
target .add (Entity .NO_BREAK_SPACE );
@@ -574,7 +573,7 @@ private void appendParametersAndExceptions(Content target, int lastLineSeparator
574
573
// Exceptions
575
574
if (exceptions != null && !exceptions .isEmpty ()) {
576
575
CharSequence indent = " " .repeat (Math .max (0 , indentSize + 1 - 7 ));
577
- target .add (DocletConstants .NL )
576
+ target .add (Text .NL )
578
577
.add (indent )
579
578
.add ("throws " )
580
579
.add (HtmlTree .SPAN (HtmlStyle .exceptions , exceptions ));
0 commit comments