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

Unused method AbstractMemberWriter.isInherited

XMLWordPrintable

      SonarCloud reports the issue here:
        "Correct one of the identical sub-expressions on both sides of equals."

          protected boolean isInherited(Element ped){
              return (!utils.isPrivate(ped) &&
                      (!utils.isPackagePrivate(ped) ||
                          ped.getEnclosingElement().equals(ped.getEnclosingElement()))); // <-- here
          }

      This might point to a real bug?

            hannesw Hannes Wallnoefer
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: