Merge branch 'pr-190'

Closes #190 (rebased onto pmd/5.4.x)
This commit is contained in:
Andreas Dangel
2017-01-22 19:49:48 +01:00
9 changed files with 124 additions and 197 deletions

View File

@@ -219,9 +219,7 @@ public abstract class RuleTst {
ctx.setLanguageVersion(languageVersion);
ctx.setIgnoreExceptions(false);
RuleSet rules = new RuleSetFactory().createSingleRuleRuleSet(rule);
rules.start(ctx);
p.getSourceCodeProcessor().processSourceCode(new StringReader(code), new RuleSets(rules), ctx);
rules.end(ctx);
} catch (Exception e) {
throw new RuntimeException(e);
}