Class DateFormatStringChecker

    • Field Detail

      • bugPcMap

        private final BugPcMap bugPcMap
    • Constructor Detail

      • DateFormatStringChecker

        public DateFormatStringChecker​(BugReporter bugReporter)
    • Method Detail

      • visitAfter

        public void visitAfter​(org.apache.bcel.classfile.Code obj)
        Description copied from class: PreorderVisitor
        Called after visiting a code attribute
        Overrides:
        visitAfter in class PreorderVisitor
        Parameters:
        obj - Code that was just visited
      • runDateFormatRuleVerify

        private boolean runDateFormatRuleVerify​(java.lang.String dateFormat)
        Runs the check per each bad combination (Rule objects) on the provided string.
        Parameters:
        dateFormat - - string to be checked
        Returns:
        true if given string matches any bad combination.
      • removeNonInterpretedText

        protected java.lang.String removeNonInterpretedText​(java.lang.String dateFormat)