Class AbstractInefficientZeroCheck

    • Constructor Detail

      • AbstractInefficientZeroCheck

        public AbstractInefficientZeroCheck()
        Deprecated.
    • Method Detail

      • appliesToClassName

        public abstract boolean appliesToClassName​(String name)
        Deprecated.
      • isTargetMethod

        public abstract boolean isTargetMethod​(JavaNameOccurrence occ)
        Deprecated.
      • getComparisonTargets

        public Map<String,​List<String>> getComparisonTargets()
        Deprecated.
        For each relation/equality operator, comparison targets need to define.
        Returns:
        map
      • checkNodeAndReport

        protected void checkNodeAndReport​(Object data,
                                          Node location,
                                          Node expr)
        Deprecated.
        Checks whether the given expression is a equality/relation expression that compares with a size() call.
        Parameters:
        data - the rule context
        location - the node location to report
        expr - the ==, <, > expression