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

Unused method AbstractMemberWriter.isInherited

    XMLWordPrintable

Details

    Description

      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?

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: