Class OverridingEqualsNotSymmetrical

All Implemented Interfaces:
Detector, FirstPassDetector, Priorities, org.apache.bcel.classfile.Visitor

public class OverridingEqualsNotSymmetrical extends OpcodeStackDetector implements FirstPassDetector
  • Constructor Details

    • OverridingEqualsNotSymmetrical

      public OverridingEqualsNotSymmetrical(BugReporter bugReporter)
  • Method Details

    • visit

      public void visit(org.apache.bcel.classfile.Code obj)
      Overrides:
      visit in class DismantleBytecode
    • sawOpcode

      public void sawOpcode(int seen)
      Description copied from class: OpcodeStackDetector

      By default, this method will not be called when stack is TOP. To change this behavior, override #beforeOpcode(int) and change to return true even if stack is TOP.

      see Using FindBugs for Research to learn lattice and what TOP means.

      Specified by:
      sawOpcode in class OpcodeStackDetector
      See Also:
    • invokesMethodWithEqualLikeName

      public boolean invokesMethodWithEqualLikeName()
    • report

      public void report()
      Description copied from interface: Detector
      This method is called after all classes to be visited. It should be used by any detectors which accumulate information over all visited classes to generate results.
      Specified by:
      report in interface Detector
      Overrides:
      report in class BytecodeScanningDetector