Class ReadReturnShouldBeChecked

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

public class ReadReturnShouldBeChecked extends BytecodeScanningDetector implements StatelessDetector
  • Field Details

    • sawRead

      boolean sawRead
    • sawSkip

      boolean sawSkip
    • recentCallToAvailable

      boolean recentCallToAvailable
    • sawAvailable

      int sawAvailable
    • wasBufferedInputStream

      boolean wasBufferedInputStream
    • accumulator

      BugAccumulator accumulator
    • locationOfCall

      private int locationOfCall
    • lastCallClass

      private String lastCallClass
    • lastCallMethod

      private String lastCallMethod
    • lastCallSig

      private String lastCallSig
  • Constructor Details

    • ReadReturnShouldBeChecked

      public ReadReturnShouldBeChecked(BugReporter bugReporter)
  • Method Details

    • visit

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

      private boolean isInputStream()
    • isBufferedInputStream

      private boolean isBufferedInputStream()
    • isImageIOInputStream

      private boolean isImageIOInputStream()
    • sawOpcode

      public void sawOpcode(int seen)
      Overrides:
      sawOpcode in class DismantleBytecode