Fork me on GitHub

PMD Results

The following document contains the results of PMD 6.46.0.

Violations By Priority

Priority 3

Mock Repository Manager :: API - org/codehaus/mojo/mrm/api/maven/Artifact.java

Rule Violation Line
PrimitiveWrapperInstantiation Do not use `new Long(...)`, prefer `Long.valueOf(...)` 166
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 166

Mock Repository Manager :: Maven Plugin - org/codehaus/mojo/mrm/maven/ProxyArtifactStore.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 406409
CollapsibleIfStatements These nested if statements could be combined 486497

Mock Repository Manager :: Maven Plugin - org/codehaus/mojo/mrm/plugin/ConsoleScanner.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 8285

Mock Repository Manager :: Maven Plugin - org/codehaus/mojo/mrm/plugin/FileSystemServer.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 325328

Mock Repository Manager :: Servlet - org/codehaus/mojo/mrm/impl/CompositeFileSystem.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 133136

Mock Repository Manager :: Servlet - org/codehaus/mojo/mrm/impl/maven/ArtifactStoreFileSystem.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 157160

Mock Repository Manager :: Servlet - org/codehaus/mojo/mrm/impl/maven/CompositeArtifactStore.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 147150
EmptyCatchBlock Avoid empty catch blocks 166169
EmptyCatchBlock Avoid empty catch blocks 185187
CollapsibleIfStatements These nested if statements could be combined 268274
EmptyCatchBlock Avoid empty catch blocks 287289
EmptyCatchBlock Avoid empty catch blocks 294296
EmptyCatchBlock Avoid empty catch blocks 321323
EmptyCatchBlock Avoid empty catch blocks 345348
EmptyCatchBlock Avoid empty catch blocks 376379

Mock Repository Manager :: Servlet - org/codehaus/mojo/mrm/impl/maven/MemoryArtifactStore.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 350353
EmptyCatchBlock Avoid empty catch blocks 392395
EmptyCatchBlock Avoid empty catch blocks 429432
EmptyCatchBlock Avoid empty catch blocks 464467
EmptyCatchBlock Avoid empty catch blocks 745748
EmptyCatchBlock Avoid empty catch blocks 767770

Mock Repository Manager :: Servlet - org/codehaus/mojo/mrm/impl/maven/MockArtifactStore.java

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'lazyArchiver'. 80
EmptyCatchBlock Avoid empty catch blocks 494497
EmptyCatchBlock Avoid empty catch blocks 536539
EmptyCatchBlock Avoid empty catch blocks 573576
EmptyCatchBlock Avoid empty catch blocks 608611
EmptyCatchBlock Avoid empty catch blocks 10321035
EmptyCatchBlock Avoid empty catch blocks 10541057

Mock Repository Manager :: Servlet - org/codehaus/mojo/mrm/servlet/FileSystemServlet.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 221224
UnusedLocalVariable Avoid unused local variables such as 'context'. 275
UnusedLocalVariable Avoid unused local variables such as 'context'. 329

Priority 4

Mock Repository Manager :: API - org/codehaus/mojo/mrm/api/maven/Artifact.java

Rule Violation Line
UselessParentheses Useless parentheses. 209

Mock Repository Manager :: Maven Plugin - org/codehaus/mojo/mrm/maven/ProxyArtifactStore.java

Rule Violation Line
UselessParentheses Useless parentheses. 488
UselessParentheses Useless parentheses. 489494
UselessParentheses Useless parentheses. 492493
UselessParentheses Useless parentheses. 493494

Mock Repository Manager :: Servlet - org/codehaus/mojo/mrm/impl/Utils.java

Rule Violation Line
UselessParentheses Useless parentheses. 155156
UselessParentheses Useless parentheses. 155156

Mock Repository Manager :: Servlet - org/codehaus/mojo/mrm/impl/digest/SHA1DigestFileEntry.java

Rule Violation Line
UnnecessaryImport Unused import 'org.apache.commons.io.IOUtils' 19

Mock Repository Manager :: Servlet - org/codehaus/mojo/mrm/impl/maven/MemoryArtifactStore.java

Rule Violation Line
UselessParentheses Useless parentheses. 130
UselessParentheses Useless parentheses. 140
UselessParentheses Useless parentheses. 141
UselessParentheses Useless parentheses. 153
UselessParentheses Useless parentheses. 154
UselessParentheses Useless parentheses. 155
UselessParentheses Useless parentheses. 191
UselessParentheses Useless parentheses. 192
UselessParentheses Useless parentheses. 193
UselessParentheses Useless parentheses. 229
UselessParentheses Useless parentheses. 230
UselessParentheses Useless parentheses. 231
UselessParentheses Useless parentheses. 363
UselessParentheses Useless parentheses. 409
UselessParentheses Useless parentheses. 410
UselessParentheses Useless parentheses. 516
UselessParentheses Useless parentheses. 520
UselessParentheses Useless parentheses. 540
UselessParentheses Useless parentheses. 541

Mock Repository Manager :: Servlet - org/codehaus/mojo/mrm/impl/maven/MockArtifactStore.java

Rule Violation Line
UselessParentheses Useless parentheses. 265
UselessParentheses Useless parentheses. 275
UselessParentheses Useless parentheses. 276
UselessParentheses Useless parentheses. 288
UselessParentheses Useless parentheses. 289
UselessParentheses Useless parentheses. 290
UselessParentheses Useless parentheses. 325
UselessParentheses Useless parentheses. 326
UselessParentheses Useless parentheses. 327
UselessParentheses Useless parentheses. 362
UselessParentheses Useless parentheses. 363
UselessParentheses Useless parentheses. 364
UselessParentheses Useless parentheses. 507
UselessParentheses Useless parentheses. 553
UselessParentheses Useless parentheses. 554
UselessParentheses Useless parentheses. 660
UselessParentheses Useless parentheses. 664
UselessParentheses Useless parentheses. 684
UselessParentheses Useless parentheses. 685

Files

Mock Repository Manager :: API - org/codehaus/mojo/mrm/api/maven/Artifact.java

Rule Violation Priority Line
PrimitiveWrapperInstantiation Do not use `new Long(...)`, prefer `Long.valueOf(...)` 3 166
PrimitiveWrapperInstantiation Do not use `new Integer(...)`, prefer `Integer.valueOf(...)` 3 166
UselessParentheses Useless parentheses. 4 209

Mock Repository Manager :: Maven Plugin - org/codehaus/mojo/mrm/maven/ProxyArtifactStore.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 406409
CollapsibleIfStatements These nested if statements could be combined 3 486497
UselessParentheses Useless parentheses. 4 488
UselessParentheses Useless parentheses. 4 489494
UselessParentheses Useless parentheses. 4 492493
UselessParentheses Useless parentheses. 4 493494

Mock Repository Manager :: Maven Plugin - org/codehaus/mojo/mrm/plugin/ConsoleScanner.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 8285

Mock Repository Manager :: Maven Plugin - org/codehaus/mojo/mrm/plugin/FileSystemServer.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 325328

Mock Repository Manager :: Servlet - org/codehaus/mojo/mrm/impl/CompositeFileSystem.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 133136

Mock Repository Manager :: Servlet - org/codehaus/mojo/mrm/impl/Utils.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 155156
UselessParentheses Useless parentheses. 4 155156

Mock Repository Manager :: Servlet - org/codehaus/mojo/mrm/impl/digest/SHA1DigestFileEntry.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'org.apache.commons.io.IOUtils' 4 19

Mock Repository Manager :: Servlet - org/codehaus/mojo/mrm/impl/maven/ArtifactStoreFileSystem.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 157160

Mock Repository Manager :: Servlet - org/codehaus/mojo/mrm/impl/maven/CompositeArtifactStore.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 147150
EmptyCatchBlock Avoid empty catch blocks 3 166169
EmptyCatchBlock Avoid empty catch blocks 3 185187
CollapsibleIfStatements These nested if statements could be combined 3 268274
EmptyCatchBlock Avoid empty catch blocks 3 287289
EmptyCatchBlock Avoid empty catch blocks 3 294296
EmptyCatchBlock Avoid empty catch blocks 3 321323
EmptyCatchBlock Avoid empty catch blocks 3 345348
EmptyCatchBlock Avoid empty catch blocks 3 376379

Mock Repository Manager :: Servlet - org/codehaus/mojo/mrm/impl/maven/MemoryArtifactStore.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 130
UselessParentheses Useless parentheses. 4 140
UselessParentheses Useless parentheses. 4 141
UselessParentheses Useless parentheses. 4 153
UselessParentheses Useless parentheses. 4 154
UselessParentheses Useless parentheses. 4 155
UselessParentheses Useless parentheses. 4 191
UselessParentheses Useless parentheses. 4 192
UselessParentheses Useless parentheses. 4 193
UselessParentheses Useless parentheses. 4 229
UselessParentheses Useless parentheses. 4 230
UselessParentheses Useless parentheses. 4 231
EmptyCatchBlock Avoid empty catch blocks 3 350353
UselessParentheses Useless parentheses. 4 363
EmptyCatchBlock Avoid empty catch blocks 3 392395
UselessParentheses Useless parentheses. 4 409
UselessParentheses Useless parentheses. 4 410
EmptyCatchBlock Avoid empty catch blocks 3 429432
EmptyCatchBlock Avoid empty catch blocks 3 464467
UselessParentheses Useless parentheses. 4 516
UselessParentheses Useless parentheses. 4 520
UselessParentheses Useless parentheses. 4 540
UselessParentheses Useless parentheses. 4 541
EmptyCatchBlock Avoid empty catch blocks 3 745748
EmptyCatchBlock Avoid empty catch blocks 3 767770

Mock Repository Manager :: Servlet - org/codehaus/mojo/mrm/impl/maven/MockArtifactStore.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'lazyArchiver'. 3 80
UselessParentheses Useless parentheses. 4 265
UselessParentheses Useless parentheses. 4 275
UselessParentheses Useless parentheses. 4 276
UselessParentheses Useless parentheses. 4 288
UselessParentheses Useless parentheses. 4 289
UselessParentheses Useless parentheses. 4 290
UselessParentheses Useless parentheses. 4 325
UselessParentheses Useless parentheses. 4 326
UselessParentheses Useless parentheses. 4 327
UselessParentheses Useless parentheses. 4 362
UselessParentheses Useless parentheses. 4 363
UselessParentheses Useless parentheses. 4 364
EmptyCatchBlock Avoid empty catch blocks 3 494497
UselessParentheses Useless parentheses. 4 507
EmptyCatchBlock Avoid empty catch blocks 3 536539
UselessParentheses Useless parentheses. 4 553
UselessParentheses Useless parentheses. 4 554
EmptyCatchBlock Avoid empty catch blocks 3 573576
EmptyCatchBlock Avoid empty catch blocks 3 608611
UselessParentheses Useless parentheses. 4 660
UselessParentheses Useless parentheses. 4 664
UselessParentheses Useless parentheses. 4 684
UselessParentheses Useless parentheses. 4 685
EmptyCatchBlock Avoid empty catch blocks 3 10321035
EmptyCatchBlock Avoid empty catch blocks 3 10541057

Mock Repository Manager :: Servlet - org/codehaus/mojo/mrm/servlet/FileSystemServlet.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 221224
UnusedLocalVariable Avoid unused local variables such as 'context'. 3 275
UnusedLocalVariable Avoid unused local variables such as 'context'. 3 329