Class SuspiciousThreadInterrupted

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

public class SuspiciousThreadInterrupted extends BytecodeScanningDetector implements StatelessDetector
looks for calls to Thread.interrupted from a non static context, especially when that context is not 'currentThread()'.
  • Field Details

    • SEEN_NOTHING

      public static final int SEEN_NOTHING
      See Also:
    • SEEN_CURRENTTHREAD

      public static final int SEEN_CURRENTTHREAD
      See Also:
    • SEEN_POP_AFTER_CURRENTTHREAD

      public static final int SEEN_POP_AFTER_CURRENTTHREAD
      See Also:
    • SEEN_UNKNOWNCONTEXT_POP

      public static final int SEEN_UNKNOWNCONTEXT_POP
      See Also:
    • SEEN_POSSIBLE_THREAD

      public static final int SEEN_POSSIBLE_THREAD
      See Also:
    • bugReporter

      private final BugReporter bugReporter
    • localsWithCurrentThreadValue

      private BitSet localsWithCurrentThreadValue
    • state

      private int state
  • Constructor Details

    • SuspiciousThreadInterrupted

      public SuspiciousThreadInterrupted(BugReporter bugReporter)
  • Method Details