Skip to content

Commit 1ed14d0

Browse files
committed
Fix checkstyle, restore backwards compatibility, fix some unit tests
1 parent d67a38c commit 1ed14d0

File tree

13 files changed

+563
-510
lines changed

13 files changed

+563
-510
lines changed

net.sourceforge.pmd.eclipse.plugin.test/src/main/java/net/sourceforge/pmd/eclipse/runtime/cmd/ReviewCmdTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,16 @@
4848
import org.junit.Before;
4949
import org.junit.Test;
5050

51-
import name.herlin.command.CommandException;
52-
import name.herlin.command.UnsetInputPropertiesException;
5351
import net.sourceforge.pmd.Rule;
5452
import net.sourceforge.pmd.RuleSet;
55-
import net.sourceforge.pmd.RuleSets;
5653
import net.sourceforge.pmd.eclipse.EclipseUtils;
5754
import net.sourceforge.pmd.eclipse.plugin.PMDPlugin;
5855
import net.sourceforge.pmd.eclipse.runtime.properties.IProjectProperties;
5956
import net.sourceforge.pmd.eclipse.ui.actions.RuleSetUtil;
6057

58+
import name.herlin.command.CommandException;
59+
import name.herlin.command.UnsetInputPropertiesException;
60+
6161
/**
6262
* This tests the PMD Processor command
6363
*
@@ -135,7 +135,7 @@ public void testProjectBuildPath() throws Exception {
135135
.loadProjectProperties(testProject);
136136
Rule compareObjectsWithEquals = properties.getProjectRuleSet().getRuleByName("CompareObjectsWithEquals");
137137
RuleSet projectRuleSet = RuleSetUtil.newSingle(compareObjectsWithEquals);
138-
properties.setProjectRuleSets(new RuleSets(projectRuleSet));
138+
properties.setProjectRuleSet(projectRuleSet);
139139
boolean oldSetting = PMDPlugin.getDefault().getPreferencesManager().loadPreferences()
140140
.isProjectBuildPathEnabled();
141141

0 commit comments

Comments
 (0)