Our site recently moved from PMD 4.2.5 to 4.2.6. We are now receiving
AvoidThreadGroup violations in various places. Our rulesets or our code hasn't
changed in these areas.
The following are a couple of code samples that are being flagged as
1) throw new java.io.InvalidClassException(...);
2) new java.text.SimpleDateFormat("dd/MM/yyyyhhmm");
3) new java.beans.PropertyChangeEvent(...);
A co-worker of mine discovered that by removing the package path in the class
reference - and moving it to an import -- these PMD violations went away. That
is the work-around that we have implemented in our projects.
That workaround works but i have same class name (different packages) used in a separate class, where i am creating objects in both the classes, and this issue is bugging , please help to get around with this. Thanks in advance
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.