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

EndElementEvent.getNamespaces always returns empty iterator

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 25
    • xml

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

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

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

              Created:
              Updated: