Fork me on GitHub

PMD Results

The following document contains the results of PMD 6.13.0.

Violations By Priority

Priority 1

fr/paris/lutece/plugins/filegenerator/service/TemporaryFileService.java

Rule Violation Line
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 47–118

Priority 3

fr/paris/lutece/plugins/filegenerator/service/FileGeneratorPlugin.java

Rule Violation Line
CommentRequired Header comments are required 42–58

fr/paris/lutece/plugins/filegenerator/service/TemporaryFileDaemon.java

Rule Violation Line
CommentRequired Header comments are required 43–57

fr/paris/lutece/plugins/filegenerator/service/TemporaryFileGeneratorService.java

Rule Violation Line
CommentRequired Public method and constructor comments are required 66–69
CommentRequired Public method and constructor comments are required 71–74
DoNotUseThreads To be compliant to J2EE, a webapp should not use any thread. 76
CommentRequired Header comments are required 76–203
ImmutableField Private field '_generator' could be made final; it is only initialized in the declaration or constructor. 79
ImmutableField Private field '_user' could be made final; it is only initialized in the declaration or constructor. 80
ConfusingTernary Avoid if (x != y) ..; else ..; 116–158
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 176

fr/paris/lutece/plugins/filegenerator/service/TemporaryFileService.java

Rule Violation Line
CommentRequired Header comments are required 47–118
ImmutableField Private field '_fileStoreServiceProvider' could be made final; it is only initialized in the declaration or constructor. 51
CommentRequired Public method and constructor comments are required 59–62
CommentRequired Public method and constructor comments are required 64–72
CommentRequired Public method and constructor comments are required 74–89
CommentRequired Public method and constructor comments are required 91–104
CommentRequired Public method and constructor comments are required 106–117

fr/paris/lutece/plugins/filegenerator/web/admin/TemporaryFilesJspBean.java

Rule Violation Line
CommentRequired Public method and constructor comments are required 90–106
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 94
CommentRequired Public method and constructor comments are required 108–134
ConfusingTernary Avoid if (x != y) ..; else ..; 129
CommentRequired Public method and constructor comments are required 136–150

Files

fr/paris/lutece/plugins/filegenerator/service/FileGeneratorPlugin.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 42–58

fr/paris/lutece/plugins/filegenerator/service/TemporaryFileDaemon.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 43–57

fr/paris/lutece/plugins/filegenerator/service/TemporaryFileGeneratorService.java

Rule Violation Priority Line
CommentRequired Public method and constructor comments are required 3 66–69
CommentRequired Public method and constructor comments are required 3 71–74
DoNotUseThreads To be compliant to J2EE, a webapp should not use any thread. 3 76
CommentRequired Header comments are required 3 76–203
ImmutableField Private field '_generator' could be made final; it is only initialized in the declaration or constructor. 3 79
ImmutableField Private field '_user' could be made final; it is only initialized in the declaration or constructor. 3 80
ConfusingTernary Avoid if (x != y) ..; else ..; 3 116–158
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 3 176

fr/paris/lutece/plugins/filegenerator/service/TemporaryFileService.java

Rule Violation Priority Line
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 47–118
CommentRequired Header comments are required 3 47–118
ImmutableField Private field '_fileStoreServiceProvider' could be made final; it is only initialized in the declaration or constructor. 3 51
CommentRequired Public method and constructor comments are required 3 59–62
CommentRequired Public method and constructor comments are required 3 64–72
CommentRequired Public method and constructor comments are required 3 74–89
CommentRequired Public method and constructor comments are required 3 91–104
CommentRequired Public method and constructor comments are required 3 106–117

fr/paris/lutece/plugins/filegenerator/web/admin/TemporaryFilesJspBean.java

Rule Violation Priority Line
CommentRequired Public method and constructor comments are required 3 90–106
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 94
CommentRequired Public method and constructor comments are required 3 108–134
ConfusingTernary Avoid if (x != y) ..; else ..; 3 129
CommentRequired Public method and constructor comments are required 3 136–150