Class URLProblems

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

    public class URLProblems
    extends OpcodeStackDetector
    equals and hashCode are blocking methods on URL's. Warn about invoking equals or hashCode on them, or defining Set or Maps with them as keys.
    • Field Detail

      • BAD_SIGNATURES

        static final java.lang.String[] BAD_SIGNATURES
      • HASHSET_KEY_METHODS

        private static final java.lang.String[] HASHSET_KEY_METHODS
      • HASHMAP_KEY_METHODS

        private static final java.lang.String[] HASHMAP_KEY_METHODS
      • HASHMAP_TWO_ARG_KEY_METHODS

        private static final java.lang.String[] HASHMAP_TWO_ARG_KEY_METHODS
      • hasInterestingMethodCalls

        private boolean hasInterestingMethodCalls
    • Constructor Detail

      • URLProblems

        public URLProblems​(BugReporter bugReporter)