net.sourceforge.pmd
Class RuleSetFactoryCompatibility
java.lang.Object
net.sourceforge.pmd.RuleSetFactoryCompatibility
public class RuleSetFactoryCompatibility
- extends Object
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 |
RuleSetFactoryCompatibility()
Creates a new instance of the compatibility filter with the built-in filters for the
modified PMD rules. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RuleSetFactoryCompatibility
public RuleSetFactoryCompatibility()
- Creates a new instance of the compatibility filter with the built-in filters for the
modified PMD rules.
filterRuleSetFile
public Reader filterRuleSetFile(InputStream stream)
throws IOException
- Applies all configured filters against the given input stream.
The resulting reader will contain the original ruleset modified by
the filters.
- Parameters:
stream
-
- Returns:
-
- Throws:
IOException
Copyright © 2002-2016 InfoEther. All Rights Reserved.