Skip to content

refactor methods in SiteUtil.java #17256

@romani

Description

@romani

split from #17238 (comment)

in SiteUtil.java

rewrite getSpecifiedPropertyVersion and getPropertyJavadocNodeInModule

to have usage of steamed handling of collections and Optianal.

code

       for (DetailNode htmlElement = JavadocUtil.getNextSibling(
                JavadocUtil.getFirstChild(moduleJavadoc), JavadocTokenTypes.HTML_ELEMENT);
            htmlElement != null && propertyJavadocNode.isEmpty();
            htmlElement = JavadocUtil.getNextSibling(
                htmlElement, JavadocTokenTypes.HTML_ELEMENT)) {

should be get collection of special DetailNode, and then streaming handling of them.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

Status
Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions