Package net.sourceforge.pmd
Class RuleSetFactoryCompatibility
- java.lang.Object
-
- net.sourceforge.pmd.RuleSetFactoryCompatibility
-
@InternalApi @Deprecated public class RuleSetFactoryCompatibility extends Object
Deprecated.UseRuleSetLoader.enableCompatibility(boolean)
to enable this feature. This implementation is internal API.Provides a simple filter mechanism to avoid failing to parse an old ruleset, which references rules, that have either been removed from PMD already or renamed or moved to another ruleset.- See Also:
- issue 1360
-
-
Constructor Summary
Constructors Constructor Description RuleSetFactoryCompatibility()
Deprecated.Creates a new instance of the compatibility filter with the built-in filters for the modified PMD rules.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Reader
filterRuleSetFile(InputStream stream)
Deprecated.Applies all configured filters against the given input stream.
-
-
-
Method Detail
-
filterRuleSetFile
public Reader filterRuleSetFile(InputStream stream) throws IOException
Deprecated.Applies all configured filters against the given input stream. The resulting reader will contain the original ruleset modified by the filters.- Parameters:
stream
- the original ruleset file input stream- Returns:
- a reader, from which the filtered ruleset can be read
- Throws:
IOException
- if the stream couldn't be read
-
-