diff --git a/feed.xml b/feed.xml
index c589ffd85c..922d5fb4ba 100644
--- a/feed.xml
+++ b/feed.xml
@@ -5,8 +5,8 @@
Intended as a documentation theme based on Jekyll for technical writers documenting software and other technical products, this theme has all the elements you would need to handle multiple products with both multi-level sidebar navigation, tags, and other documentation features.
https://pmd.github.io/pmd/
- Sat, 08 May 2021 17:11:38 +0000
- Sat, 08 May 2021 17:11:38 +0000
+ Sat, 08 May 2021 18:16:56 +0000
+ Sat, 08 May 2021 18:16:56 +0000Jekyll v3.9.0
diff --git a/pmd_release_notes.html b/pmd_release_notes.html
index 8faf05f64d..9da5cf5641 100644
--- a/pmd_release_notes.html
+++ b/pmd_release_notes.html
@@ -1449,6 +1449,17 @@ are compared. Constants are identified by looking for an all-caps identifier.#3230: [doc] Remove “Edit me” button for language index pages
+
dist
+
+
#2466: [dist] Distribution archive doesn’t include all batch scripts
+
+
+
java-bestpractices
+
+
#2737: [java] Fix misleading rule message on rule SwitchStmtsShouldHaveDefault with non-exhaustive enum switch
+
#3236: [java] LiteralsFirstInComparisons should consider constant fields (cont’d)
+
+
java-codestyle
#2655: [java] UnnecessaryImport false positive for on-demand imports
@@ -1459,6 +1470,7 @@ are compared. Constants are identified by looking for an all-caps identifier.
java-errorprone
+
#3248: [java] Documentation is wrong for SingletonClassReturningNewInstance rule
#3110: [java] Enhance CompareObjectsWithEquals with list of exceptions
#3205: [java] Make CompareObjectWithEquals allow comparing against constants
All switch statements should include a default option to catch any unspecified values.
+
Switch statements should be exhaustive, to make their control flow
+easier to follow. This can be achieved by adding a default case, or,
+if the switch is on an enum type, by ensuring there is one switch branch
+for each enum constant.
This rule is defined by the following XPath expression:
diff --git a/pmd_rules_java_errorprone.html b/pmd_rules_java_errorprone.html
index b649521d4d..756133e430 100644
--- a/pmd_rules_java_errorprone.html
+++ b/pmd_rules_java_errorprone.html
@@ -4633,9 +4633,9 @@ for each call and new objects will be created for every invocation.
Priority: Medium High (2)
-
Some classes contain overloaded getInstance. The problem with overloaded getInstance methods
-is that the instance created using the overloaded method is not cached and so,
-for each call and new objects will be created for every invocation.
+
A singleton class should only ever have one instance. Failure to check
+whether an instance has already been created may result in multiple
+instances being created.
@@ -4645,7 +4645,7 @@ for each call and new objects will be created for every invocation.
privatestaticSingletoninstance=null;publicstaticSingletongetInstance(){synchronized(Singleton.class){
- returnnewSingleton();
+ returnnewSingleton();// this should be assigned to the field}}}