Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8263456

EndElementEvent.getNamespaces always returns empty iterator

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: xml
    • Subcomponent:

      Description

      SonarCloud reports:
        The return value of "iterator" must be used.

          @Override
          public Iterator<Namespace> getNamespaces() {
              if (fNamespaces != null) {
                  fNamespaces.iterator(); // <--- here
              }
              return new ReadOnlyIterator<>();
          }

        Attachments

          Activity

            People

            Assignee:
            joehw Joe Wang
            Reporter:
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: