Added deprecated old name for UseSingleton/UseUtilityClass

#1059 and #1339
This commit is contained in:
Andreas Dangel
2015-04-20 19:46:16 +02:00
parent fdb54ecc0e
commit b6c12fe449
2 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,7 @@ The Design ruleset contains rules that flag suboptimal code implementations. Alt
are suggested.
</description>
<rule deprecated="true" name="UseSingleton" ref="UseUtilityClass"/>
<rule name="UseUtilityClass"
since="0.3"
message="All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning."

View File

@ -8,6 +8,9 @@
**New/Modified/Deprecated Rules:**
* Language Java, ruleset design.xml: The rule "UseSingleton" *has been renamed* to "UseUtilityClass".
See also bugs [#1059](https://sourceforge.net/p/pmd/bugs/1059) and [#1339](https://sourceforge.net/p/pmd/bugs/1339/).
**Pull Requests:**
* [#53](https://github.com/pmd/pmd/pull/53): Fix some NullPointerExceptions