PMD Results
The following document contains the results of PMD 6.13.0.
Violations By Priority
Priority 1
fr/paris/lutece/plugins/wordtemplate/service/InstructionService.java
Priority 2
fr/paris/lutece/plugins/wordtemplate/service/WordService.java
Priority 3
fr/paris/lutece/plugins/wordtemplate/business/AbstractInstructionElement.java
fr/paris/lutece/plugins/wordtemplate/business/IWordInstructionElement.java
Rule |
Violation |
Line |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getRun': the method is declared in an interface type |
59 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'setRun': the method is declared in an interface type |
65 |
fr/paris/lutece/plugins/wordtemplate/exception/WordTemplateException.java
fr/paris/lutece/plugins/wordtemplate/service/InstructionService.java
fr/paris/lutece/plugins/wordtemplate/service/TemplateEngineService.java
Rule |
Violation |
Line |
UseUtilityClass |
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. |
48–124 |
fr/paris/lutece/plugins/wordtemplate/service/WordService.java
fr/paris/lutece/plugins/wordtemplate/service/WordTemplateParser.java
fr/paris/lutece/plugins/wordtemplate/service/WordTemplateService.java
Rule |
Violation |
Line |
UseUtilityClass |
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. |
48–89 |
AvoidUncheckedExceptionsInSignatures |
A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause |
56 |
AvoidCatchingGenericException |
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block |
71 |
fr/paris/lutece/plugins/wordtemplate/service/instruction/IInstructionManager.java
Rule |
Violation |
Line |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'isOfType': the method is declared in an interface type |
51 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'createInstruction': the method is declared in an interface type |
59 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'processInstruction': the method is declared in an interface type |
66 |
fr/paris/lutece/plugins/wordtemplate/service/instruction/InterpolationInstructionManager.java
Rule |
Violation |
Line |
MissingOverride |
The method 'isOfType(String)' is missing an @Override annotation. |
65–70 |
Priority 4
fr/paris/lutece/plugins/wordtemplate/service/WordService.java
Rule |
Violation |
Line |
UnusedImports |
Avoid unused imports such as 'org.apache.poi.xwpf.usermodel.XWPFDocument' |
42 |
fr/paris/lutece/plugins/wordtemplate/service/WordTemplateParser.java
fr/paris/lutece/plugins/wordtemplate/service/WordTemplateService.java
Files
fr/paris/lutece/plugins/wordtemplate/business/AbstractInstructionElement.java
fr/paris/lutece/plugins/wordtemplate/business/IWordInstructionElement.java
Rule |
Violation |
Priority |
Line |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getRun': the method is declared in an interface type |
3 |
59 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'setRun': the method is declared in an interface type |
3 |
65 |
fr/paris/lutece/plugins/wordtemplate/exception/WordTemplateException.java
fr/paris/lutece/plugins/wordtemplate/service/InstructionService.java
fr/paris/lutece/plugins/wordtemplate/service/TemplateEngineService.java
Rule |
Violation |
Priority |
Line |
UseUtilityClass |
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. |
3 |
48–124 |
fr/paris/lutece/plugins/wordtemplate/service/WordService.java
fr/paris/lutece/plugins/wordtemplate/service/WordTemplateParser.java
fr/paris/lutece/plugins/wordtemplate/service/WordTemplateService.java
Rule |
Violation |
Priority |
Line |
UseUtilityClass |
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. |
3 |
48–89 |
AvoidUncheckedExceptionsInSignatures |
A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause |
3 |
56 |
AvoidCatchingGenericException |
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block |
3 |
71 |
DoNotThrowExceptionInFinally |
A throw statement in a finally block makes the control flow hard to understand. |
4 |
75–85 |
fr/paris/lutece/plugins/wordtemplate/service/instruction/IInstructionManager.java
Rule |
Violation |
Priority |
Line |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'isOfType': the method is declared in an interface type |
3 |
51 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'createInstruction': the method is declared in an interface type |
3 |
59 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'processInstruction': the method is declared in an interface type |
3 |
66 |
fr/paris/lutece/plugins/wordtemplate/service/instruction/InterpolationInstructionManager.java
Rule |
Violation |
Priority |
Line |
MissingOverride |
The method 'isOfType(String)' is missing an @Override annotation. |
3 |
65–70 |