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 45101

Priority 3

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

Rule Violation Line
CommentRequired Header comments are required 4258

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

Rule Violation Line
CommentRequired Header comments are required 4357

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

Rule Violation Line
CommentRequired Public method and constructor comments are required 6669
CommentRequired Public method and constructor comments are required 7174
CommentRequired Header comments are required 76203
DoNotUseThreads To be compliant to J2EE, a webapp should not use any thread. 76
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 ..; 116158
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 123
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 123
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 126
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 45101
ImmutableField Private field '_fileStoreServiceProvider' could be made final; it is only initialized in the declaration or constructor. 49
CommentRequired Public method and constructor comments are required 5760
CommentRequired Public method and constructor comments are required 6270
CommentRequired Public method and constructor comments are required 7281
CommentRequired Public method and constructor comments are required 8391
CommentRequired Public method and constructor comments are required 93100

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

Rule Violation Line
CommentRequired Public method and constructor comments are required 90106
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 108134
ConfusingTernary Avoid if (x != y) ..; else ..; 129
CommentRequired Public method and constructor comments are required 136149

Files

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

Rule Violation Priority Line
CommentRequired Header comments are required 3 4258

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

Rule Violation Priority Line
CommentRequired Header comments are required 3 4357

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

Rule Violation Priority Line
CommentRequired Public method and constructor comments are required 3 6669
CommentRequired Public method and constructor comments are required 3 7174
CommentRequired Header comments are required 3 76203
DoNotUseThreads To be compliant to J2EE, a webapp should not use any thread. 3 76
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 116158
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 123
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 123
AccessorMethodGeneration Avoid autogenerated methods to access private fields and methods of inner / outer classes 3 126
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 45101
CommentRequired Header comments are required 3 45101
ImmutableField Private field '_fileStoreServiceProvider' could be made final; it is only initialized in the declaration or constructor. 3 49
CommentRequired Public method and constructor comments are required 3 5760
CommentRequired Public method and constructor comments are required 3 6270
CommentRequired Public method and constructor comments are required 3 7281
CommentRequired Public method and constructor comments are required 3 8391
CommentRequired Public method and constructor comments are required 3 93100

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

Rule Violation Priority Line
CommentRequired Public method and constructor comments are required 3 90106
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 108134
ConfusingTernary Avoid if (x != y) ..; else ..; 3 129
CommentRequired Public method and constructor comments are required 3 136149