@@ -366,9 +366,9 @@ protected boolean hasSerializationOverviewTags(VariableElement field) {
366
366
return !output .isEmpty ();
367
367
}
368
368
369
- private Content getInlineTagOutput (Element element , DocTree holder , DocTree tree , TagletWriterImpl .Context context ) {
369
+ private Content getInlineTagOutput (Element element , DocTree tree , TagletWriterImpl .Context context ) {
370
370
return getTagletWriterInstance (context )
371
- .getInlineTagOutput (element , configuration .tagletManager , holder , tree );
371
+ .getInlineTagOutput (element , configuration .tagletManager , tree );
372
372
}
373
373
374
374
/**
@@ -1015,7 +1015,7 @@ public Content seeTagToContent(Element element, DocTree see, TagletWriterImpl.Co
1015
1015
1016
1016
boolean isLinkPlain = kind == LINK_PLAIN ;
1017
1017
Content labelContent = plainOrCode (isLinkPlain ,
1018
- commentTagsToContent (see , element , label , context ));
1018
+ commentTagsToContent (element , label , context ));
1019
1019
1020
1020
// The signature from the @see tag. We will output this text when a label is not specified.
1021
1021
Content text = plainOrCode (isLinkPlain ,
@@ -1370,7 +1370,7 @@ private void addCommentTags(Element element, List<? extends DocTree> tags, boole
1370
1370
return ;
1371
1371
}
1372
1372
Content div ;
1373
- Content result = commentTagsToContent (null , element , tags , first , inSummary );
1373
+ Content result = commentTagsToContent (element , tags , first , inSummary );
1374
1374
if (depr ) {
1375
1375
div = HtmlTree .DIV (HtmlStyle .deprecationComment , result );
1376
1376
target .add (div );
@@ -1407,65 +1407,56 @@ boolean ignoreNonInlineTag(DocTree dtree) {
1407
1407
private boolean commentRemoved = false ;
1408
1408
1409
1409
/**
1410
- * Converts inline tags and text to Content , expanding the
1410
+ * Converts inline tags and text to content , expanding the
1411
1411
* inline tags along the way. Called wherever text can contain
1412
1412
* an inline tag, such as in comments or in free-form text arguments
1413
1413
* to block tags.
1414
1414
*
1415
- * @param holderTag specific tag where comment resides
1416
- * @param element specific element where comment resides
1417
- * @param tags array of text tags and inline tags (often alternating)
1418
- present in the text of interest for this element
1419
- * @param isFirstSentence true if text is first sentence
1415
+ * @param element specific element where comment resides
1416
+ * @param tags list of text trees and inline tag trees (often alternating)
1417
+ * @param isFirstSentence true if text is first sentence
1420
1418
* @return a Content object
1421
1419
*/
1422
- public Content commentTagsToContent (DocTree holderTag ,
1423
- Element element ,
1420
+ public Content commentTagsToContent (Element element ,
1424
1421
List <? extends DocTree > tags ,
1425
1422
boolean isFirstSentence )
1426
1423
{
1427
- return commentTagsToContent (holderTag , element , tags , isFirstSentence , false );
1424
+ return commentTagsToContent (element , tags , isFirstSentence , false );
1428
1425
}
1429
1426
1430
1427
/**
1431
- * Converts inline tags and text to text strings , expanding the
1428
+ * Converts inline tags and text to content , expanding the
1432
1429
* inline tags along the way. Called wherever text can contain
1433
1430
* an inline tag, such as in comments or in free-form text arguments
1434
1431
* to block tags.
1435
1432
*
1436
- * @param holderTag specific tag where comment resides
1437
1433
* @param element specific element where comment resides
1438
- * @param trees array of text tags and inline tags (often alternating)
1439
- * present in the text of interest for this element
1434
+ * @param trees list of text trees and inline tag trees (often alternating)
1440
1435
* @param isFirstSentence true if text is first sentence
1441
1436
* @param inSummary if the comment tags are added into the summary section
1442
1437
* @return a Content object
1443
1438
*/
1444
- public Content commentTagsToContent (DocTree holderTag ,
1445
- Element element ,
1439
+ public Content commentTagsToContent (Element element ,
1446
1440
List <? extends DocTree > trees ,
1447
1441
boolean isFirstSentence ,
1448
1442
boolean inSummary ) {
1449
- return commentTagsToContent (holderTag , element , trees ,
1443
+ return commentTagsToContent (element , trees ,
1450
1444
new TagletWriterImpl .Context (isFirstSentence , inSummary ));
1451
1445
}
1452
1446
1453
1447
/**
1454
- * Converts inline tags and text to text strings , expanding the
1448
+ * Converts inline tags and text to content , expanding the
1455
1449
* inline tags along the way. Called wherever text can contain
1456
1450
* an inline tag, such as in comments or in free-form text arguments
1457
1451
* to block tags.
1458
1452
*
1459
- * @param holderTag specific tag where comment resides
1460
1453
* @param element specific element where comment resides
1461
1454
* @param trees list of text trees and inline tag trees (often alternating)
1462
- * present in the text of interest for this element
1463
1455
* @param context the enclosing context for the trees
1464
1456
*
1465
1457
* @return a Content object
1466
1458
*/
1467
- public Content commentTagsToContent (DocTree holderTag ,
1468
- Element element ,
1459
+ public Content commentTagsToContent (Element element ,
1469
1460
List <? extends DocTree > trees ,
1470
1461
TagletWriterImpl .Context context )
1471
1462
{
@@ -1576,7 +1567,7 @@ private Content copyDocRootContent(Content content) {
1576
1567
1577
1568
@ Override
1578
1569
public Boolean visitDocRoot (DocRootTree node , Content c ) {
1579
- Content docRootContent = getInlineTagOutput (element , holderTag , node , context );
1570
+ Content docRootContent = getInlineTagOutput (element , node , context );
1580
1571
if (c != null ) {
1581
1572
c .add (docRootContent );
1582
1573
} else {
@@ -1620,15 +1611,15 @@ public Boolean visitErroneous(ErroneousTree node, Content c) {
1620
1611
1621
1612
@ Override
1622
1613
public Boolean visitInheritDoc (InheritDocTree node , Content c ) {
1623
- Content output = getInlineTagOutput (element , holderTag , node , context );
1614
+ Content output = getInlineTagOutput (element , node , context );
1624
1615
result .add (output );
1625
1616
// if we obtained the first sentence successfully, nothing more to do
1626
1617
return (context .isFirstSentence && !output .isEmpty ());
1627
1618
}
1628
1619
1629
1620
@ Override
1630
1621
public Boolean visitIndex (IndexTree node , Content p ) {
1631
- Content output = getInlineTagOutput (element , holderTag , node , context );
1622
+ Content output = getInlineTagOutput (element , node , context );
1632
1623
if (output != null ) {
1633
1624
result .add (output );
1634
1625
}
@@ -1643,7 +1634,7 @@ public Boolean visitLink(LinkTree node, Content c) {
1643
1634
if (dtp != null ) {
1644
1635
messages .warning (dtp , "doclet.see.nested_link" , "{@" + node .getTagName () + "}" );
1645
1636
}
1646
- Content label = commentTagsToContent (node , element , node .getLabel (), context );
1637
+ Content label = commentTagsToContent (element , node .getLabel (), context );
1647
1638
if (label .isEmpty ()) {
1648
1639
label = Text .of (node .getReference ().getSignature ());
1649
1640
}
@@ -1686,14 +1677,14 @@ public Boolean visitStartElement(StartElementTree node, Content c) {
1686
1677
1687
1678
@ Override
1688
1679
public Boolean visitSummary (SummaryTree node , Content c ) {
1689
- Content output = getInlineTagOutput (element , holderTag , node , context );
1680
+ Content output = getInlineTagOutput (element , node , context );
1690
1681
result .add (output );
1691
1682
return false ;
1692
1683
}
1693
1684
1694
1685
@ Override
1695
1686
public Boolean visitSystemProperty (SystemPropertyTree node , Content p ) {
1696
- Content output = getInlineTagOutput (element , holderTag , node , context );
1687
+ Content output = getInlineTagOutput (element , node , context );
1697
1688
if (output != null ) {
1698
1689
result .add (output );
1699
1690
}
@@ -1726,7 +1717,7 @@ public Boolean visitText(TextTree node, Content c) {
1726
1717
1727
1718
@ Override
1728
1719
protected Boolean defaultAction (DocTree node , Content c ) {
1729
- Content output = getInlineTagOutput (element , holderTag , node , context );
1720
+ Content output = getInlineTagOutput (element , node , context );
1730
1721
if (output != null ) {
1731
1722
result .add (output );
1732
1723
}
1 commit comments
openjdk-notifier[bot] commentedon May 4, 2022
Review
Issues