Skip to content

Commit 3084fc0

Browse files
committed
Formatting, whitespace, checkstyle
1 parent d34da50 commit 3084fc0

File tree

20 files changed

+1766
-1763
lines changed

20 files changed

+1766
-1763
lines changed

net.sourceforge.pmd.eclipse.plugin.test.fragment/src/main/java/test/RuleSetsExtension.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@
3838

3939
import java.util.Set;
4040

41+
import org.eclipse.core.runtime.IStatus;
42+
4143
import net.sourceforge.pmd.RuleSet;
4244
import net.sourceforge.pmd.RuleSetFactory;
4345
import net.sourceforge.pmd.RuleSetNotFoundException;
4446
import net.sourceforge.pmd.eclipse.core.IRuleSetsExtension;
4547
import net.sourceforge.pmd.eclipse.plugin.PMDPlugin;
4648

47-
import org.eclipse.core.runtime.IStatus;
48-
4949
/**
5050
* Sample of an RuleSets extension.
5151
* This will automatically registers our fragment rulesets into the core plugin.

net.sourceforge.pmd.eclipse.plugin.test.fragment/src/main/resources/rulesets/extra1.xml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ The Basic Ruleset contains a collection of good practices which everyone should
4141
</rule>
4242

4343
<rule name="EmptyIfStmt"
44-
language="java"
44+
language="java"
4545
message="Avoid empty 'if' statements"
4646
class="net.sourceforge.pmd.lang.rule.XPathRule">
4747
<description>
@@ -118,7 +118,7 @@ Avoid empty try blocks, they serve no purpose.
118118
</rule>
119119

120120
<rule name="EmptyFinallyBlock"
121-
language="java"
121+
language="java"
122122
message="Avoid empty finally blocks"
123123
class="net.sourceforge.pmd.lang.rule.XPathRule">
124124
<description>
@@ -148,7 +148,7 @@ Avoid empty finally blocks, these can be deleted.
148148

149149

150150
<rule name="EmptySwitchStatements"
151-
language="java"
151+
language="java"
152152
message="Avoid empty switch statements"
153153
class="net.sourceforge.pmd.lang.rule.XPathRule">
154154
<description>
@@ -178,7 +178,7 @@ Avoid empty switch statements.
178178

179179

180180
<rule name="JumbledIncrementer"
181-
language="java"
181+
language="java"
182182
message="Avoid modifying an outer loop incrementer in an inner loop for update expression"
183183
class="net.sourceforge.pmd.lang.rule.XPathRule">
184184
<description>
@@ -213,7 +213,7 @@ Avoid jumbled loop incrementers as these are usually a mistake and can make code
213213

214214

215215
<rule name="ForLoopShouldBeWhileLoop"
216-
language="java"
216+
language="java"
217217
message="This for loop could be simplified to a while loop"
218218
class="net.sourceforge.pmd.lang.rule.XPathRule">
219219
<description>
@@ -261,7 +261,7 @@ Avoid unnecessary temporaries when converting primitives to Strings
261261
</rule>
262262

263263
<rule name="OverrideBothEqualsAndHashcode"
264-
language="java"
264+
language="java"
265265
message="Ensure you override both equals() and hashCode()"
266266
class="net.sourceforge.pmd.lang.rule.XPathRule">
267267
<description>
@@ -343,7 +343,7 @@ For more details see http://www.javaworld.com/javaworld/jw-02-2001/jw-0209-doubl
343343
</rule>
344344

345345
<rule name="ReturnFromFinallyBlock"
346-
language="java"
346+
language="java"
347347
message="Avoid returning from a finally block"
348348
class="net.sourceforge.pmd.lang.rule.XPathRule">
349349
<description>
@@ -376,7 +376,7 @@ For more details see http://www.javaworld.com/javaworld/jw-02-2001/jw-0209-doubl
376376
</rule>
377377

378378
<rule name="EmptySynchronizedBlock"
379-
language="java"
379+
language="java"
380380
message="Avoid empty synchronized blocks"
381381
class="net.sourceforge.pmd.lang.rule.XPathRule">
382382
<description>
@@ -400,7 +400,7 @@ Avoid empty synchronized blocks as they do nothing.
400400
</rule>
401401

402402
<rule name="UnnecessaryReturn"
403-
language="java"
403+
language="java"
404404
message="Avoid unnecessary return statements"
405405
class="net.sourceforge.pmd.lang.rule.XPathRule">
406406
<description>
@@ -433,7 +433,7 @@ Avoid unnecessary return statements.
433433

434434

435435
<rule name="EmptyStaticInitializer"
436-
language="java"
436+
language="java"
437437
message="Empty static initializer was found"
438438
class="net.sourceforge.pmd.lang.rule.XPathRule">
439439
<description>
@@ -583,9 +583,8 @@ public final class Foo {
583583
584584
// This final modifier is not necessary, since the class is final
585585
// and thus, all methods are final
586-
private final void foo() {
587-
}
588-
586+
private final void foo() {
587+
}
589588
}
590589
591590
]]>

0 commit comments

Comments
 (0)