Added deprecated old name for UseSingleton/UseUtilityClass
#1059 and #1339
This commit is contained in:
@ -10,6 +10,7 @@ The Design ruleset contains rules that flag suboptimal code implementations. Alt
|
|||||||
are suggested.
|
are suggested.
|
||||||
</description>
|
</description>
|
||||||
|
|
||||||
|
<rule deprecated="true" name="UseSingleton" ref="UseUtilityClass"/>
|
||||||
<rule name="UseUtilityClass"
|
<rule name="UseUtilityClass"
|
||||||
since="0.3"
|
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."
|
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."
|
||||||
|
@ -8,6 +8,9 @@
|
|||||||
|
|
||||||
**New/Modified/Deprecated Rules:**
|
**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:**
|
**Pull Requests:**
|
||||||
|
|
||||||
* [#53](https://github.com/pmd/pmd/pull/53): Fix some NullPointerExceptions
|
* [#53](https://github.com/pmd/pmd/pull/53): Fix some NullPointerExceptions
|
||||||
|
Reference in New Issue
Block a user