PMD Results
The following document contains the results of PMD 6.55.0.
Violations By Priority
Priority 1
jp/sourceforge/jindolf/corelib/PreDefAvatar.java
Priority 3
jp/sourceforge/jindolf/corelib/DateUtils.java
jp/sourceforge/jindolf/corelib/DomUtils.java
Rule |
Violation |
Line |
UseTryWithResources |
Consider using a try-with-resources statement instead of explicitly closing the resource |
76–80 |
jp/sourceforge/jindolf/corelib/GameRole.java
Rule |
Violation |
Line |
LongVariable |
Avoid excessively long variable names like BALANCE_COMPARATOR |
37 |
AccessorClassGeneration |
Avoid instantiation through private constructors from outside of the constructors class. |
38 |
AccessorMethodGeneration |
Avoid autogenerated methods to access private fields and methods of inner / outer classes |
180 |
jp/sourceforge/jindolf/corelib/LandDef.java
jp/sourceforge/jindolf/corelib/PreDefAvatar.java
Rule |
Violation |
Line |
DataClass |
The class 'PreDefAvatar' is suspected to be a Data Class (WOC=16.667%, NOPA=0, NOAM=5, WMC=20) |
22–167 |
CyclomaticComplexity |
The constructor 'PreDefAvatar(String, String, String, String, int)' has a cyclomatic complexity of 10. |
39–66 |
PrematureDeclaration |
Avoid declaring a variable if it is unreferenced before a possible exit point. |
103 |
PrematureDeclaration |
Avoid declaring a variable if it is unreferenced before a possible exit point. |
108 |
jp/sourceforge/jindolf/corelib/VillageTag.java
Rule |
Violation |
Line |
UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
106 |
jp/sourceforge/jindolf/corelib/XmlResource.java
Rule |
Violation |
Line |
UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
122 |
jp/sourceforge/jindolf/corelib/package-info.java
Files
jp/sourceforge/jindolf/corelib/DateUtils.java
jp/sourceforge/jindolf/corelib/DomUtils.java
Rule |
Violation |
Priority |
Line |
UseTryWithResources |
Consider using a try-with-resources statement instead of explicitly closing the resource |
3 |
76–80 |
jp/sourceforge/jindolf/corelib/GameRole.java
Rule |
Violation |
Priority |
Line |
LongVariable |
Avoid excessively long variable names like BALANCE_COMPARATOR |
3 |
37 |
AccessorClassGeneration |
Avoid instantiation through private constructors from outside of the constructors class. |
3 |
38 |
AccessorMethodGeneration |
Avoid autogenerated methods to access private fields and methods of inner / outer classes |
3 |
180 |
jp/sourceforge/jindolf/corelib/LandDef.java
jp/sourceforge/jindolf/corelib/PreDefAvatar.java
jp/sourceforge/jindolf/corelib/VillageTag.java
Rule |
Violation |
Priority |
Line |
UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
3 |
106 |
jp/sourceforge/jindolf/corelib/XmlResource.java
Rule |
Violation |
Priority |
Line |
UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
3 |
122 |
jp/sourceforge/jindolf/corelib/package-info.java
Rule |
Violation |
Priority |
Line |
CommentSize |
Comment is too large: Too many lines |
3 |
13–66 |