diff --git a/pmd/regress/test/net/sourceforge/pmd/rules/controversial/xml/UseConcurrentHashMap.xml b/pmd/regress/test/net/sourceforge/pmd/rules/controversial/xml/UseConcurrentHashMap.xml new file mode 100644 index 0000000000..d25d98509e --- /dev/null +++ b/pmd/regress/test/net/sourceforge/pmd/rules/controversial/xml/UseConcurrentHashMap.xml @@ -0,0 +1,22 @@ + + + + + 2 + + + diff --git a/pmd/rulesets/controversial.xml b/pmd/rulesets/controversial.xml index e00673ab0d..d6623121ed 100644 --- a/pmd/rulesets/controversial.xml +++ b/pmd/rulesets/controversial.xml @@ -712,6 +712,36 @@ public class PrimitiveType { + + +Since Java5 brought a new implementation of the Map interface, specially designed for concurrent application. + + 3 + + + + + + + + + + + + +