Interface IRuleDescriber

  • All Known Implementing Classes:
    VariableEqualsConstant

    public interface IRuleDescriber
    Helpers knowing what could be the impact of given rule
    Author:
    Benoit Lacelle
    • Method Detail

      • isDeprecationNotice

        default boolean isDeprecationNotice()
        Returns:
        true if the rule helps cleaning deprecation notice
        See Also:
        NumberToValueOf
      • isPerformanceImprovment

        default boolean isPerformanceImprovment()
        Returns:
        true if the rule helps improving performances
        See Also:
        UseIsEmptyOnCollections
      • isPreventingExceptions

        default boolean isPreventingExceptions()
        This kind of rules may not fit everybody, as in some cases, exceptions are a feature (even if probably a bad thing).
        Returns:
        true if the rule helps preventing exceptions.
        See Also:
        UseIsEmptyOnCollections
      • minimalJavaVersion

        default String minimalJavaVersion()
        Returns:
        the minimal JDKF version for this rule to trigger