PMD Results

The following document contains the results of PMD 7.0.0.

Violations By Priority

Priority 3

us/codecraft/webmagic/model/samples/Blog.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getTitle': the method is declared in an interface type 10
UnnecessaryModifier Unnecessary modifier 'public' on method 'getContent': the method is declared in an interface type 12

us/codecraft/webmagic/model/samples/JokejiModel.java

Rule Violation Line
AvoidUsingHardCodedIP Do not hard code the IP address ${variableName} 28

us/codecraft/webmagic/samples/AngularJSProcessor.java

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'ARITICALE_URL'. 20

us/codecraft/webmagic/samples/pipeline/OneFilePipeline.java

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'logger'. 18

us/codecraft/webmagic/samples/scheduler/DelayQueueScheduler.java

Rule Violation Line
UnusedPrivateMethod Avoid unused private methods such as 'getStartTime()'. 36
PrimitiveWrapperInstantiation Do not use `new Long(...)`, prefer `Long.valueOf(...)` 52

Priority 4

us/codecraft/webmagic/recover/MmapQueueScheduler.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'MmapQueueScheduler': 'DATABASE_NAME' is already in scope because it is declared in an enclosing type 44

Files

us/codecraft/webmagic/model/samples/Blog.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getTitle': the method is declared in an interface type 3 10
UnnecessaryModifier Unnecessary modifier 'public' on method 'getContent': the method is declared in an interface type 3 12

us/codecraft/webmagic/model/samples/JokejiModel.java

Rule Violation Priority Line
AvoidUsingHardCodedIP Do not hard code the IP address ${variableName} 3 28

us/codecraft/webmagic/recover/MmapQueueScheduler.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'MmapQueueScheduler': 'DATABASE_NAME' is already in scope because it is declared in an enclosing type 4 44

us/codecraft/webmagic/samples/AngularJSProcessor.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'ARITICALE_URL'. 3 20

us/codecraft/webmagic/samples/pipeline/OneFilePipeline.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'logger'. 3 18

us/codecraft/webmagic/samples/scheduler/DelayQueueScheduler.java

Rule Violation Priority Line
UnusedPrivateMethod Avoid unused private methods such as 'getStartTime()'. 3 36
PrimitiveWrapperInstantiation Do not use `new Long(...)`, prefer `Long.valueOf(...)` 3 52