Package edu.umd.cs.findbugs.detect
Class DateFormatStringChecker.Rule
java.lang.Object
edu.umd.cs.findbugs.detect.DateFormatStringChecker.Rule
- Enclosing class:
DateFormatStringChecker
Contains special flags that can trigger check (triggers); property of the rule
(isRequired - whether flag should be contained or be absent); flags to be checked
(checkItems) and a bypassing flag (ignoreFlag - whether a rule can be skipped if
such flag is included)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) boolean
containsAny
(String dateFormat, List<String> listOfFlags) dateFormat is being checked for existence of any element from listOfFlags(package private) boolean
dateFormat is being checked for existence of any keywords (triggering flags) to start the check (if ignoreFlag flag was found - further checking is skipped); if isRequired property is: - true: dateFormat is checked for existence of flags (this.flags) - false: dateFormat is checked for absence of flags (this.flags)
-
Field Details
-
isRequired
private final boolean isRequired -
ignoreFlag
-
checkItems
-
triggers
-
-
Constructor Details
-
Rule
-
-
Method Details
-
containsAny
dateFormat is being checked for existence of any element from listOfFlags -
verify
dateFormat is being checked for existence of any keywords (triggering flags) to start the check (if ignoreFlag flag was found - further checking is skipped); if isRequired property is: - true: dateFormat is checked for existence of flags (this.flags) - false: dateFormat is checked for absence of flags (this.flags)
-