-
Type:
Task
-
Resolution: Fixed
-
Priority:
P5
-
Affects Version/s: 17
-
Component/s: tools
-
b23
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?
"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?