PMD Results

The following document contains the results of PMD 6.13.0.

Violations By Priority

Priority 3

nl/tudelft/simulation/dsol/jetty/sse/OTSWebModel.java

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'dirtyControls'. 56
UnusedLocalVariable Avoid unused local variables such as 'params'. 242
SimplifiedTernary Ternary operators that can be simplified with || or && 265
SimplifiedTernary Ternary operators that can be simplified with || or && 286
CollapsibleIfStatements These nested if statements could be combined 380383

nl/tudelft/simulation/dsol/jetty/sse/OTSWebServer.java

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'dirtyControls'. 63
UnusedLocalVariable Avoid unused local variables such as 'params'. 276
SimplifiedTernary Ternary operators that can be simplified with || or && 299
SimplifiedTernary Ternary operators that can be simplified with || or && 320
CollapsibleIfStatements These nested if statements could be combined 414417

nl/tudelft/simulation/dsol/jetty/sse/TestDemoServer.java

Rule Violation Line
EmptyIfStmt Avoid empty if statements 403405
EmptyIfStmt Avoid empty if statements 407409
EmptyIfStmt Avoid empty if statements 411413
EmptyIfStmt Avoid empty if statements 415417

nl/tudelft/simulation/dsol/web/animation/D2/HTMLAnimationPanel.java

Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'gtuColorer'. 105
CollapsibleIfStatements These nested if statements could be combined 190193
EmptyCatchBlock Avoid empty catch blocks 315318

org/opentrafficsim/web/animation/WebAnimationToggles.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'showAnimationClass': the method is already in a final class 105108
UnnecessaryModifier Unnecessary modifier 'final' on method 'hideAnimationClass': the method is already in a final class 115118

org/opentrafficsim/web/test/TJunctionModel.java

Rule Violation Line
EmptyStatementBlock Avoid empty block statements. 122124

Priority 4

nl/tudelft/simulation/dsol/jetty/sse/OTSWebModel.java

Rule Violation Line
UselessParentheses Useless parentheses. 358
UselessParentheses Useless parentheses. 358

nl/tudelft/simulation/dsol/jetty/sse/OTSWebServer.java

Rule Violation Line
UselessParentheses Useless parentheses. 392
UselessParentheses Useless parentheses. 392

Files

nl/tudelft/simulation/dsol/jetty/sse/OTSWebModel.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'dirtyControls'. 3 56
UnusedLocalVariable Avoid unused local variables such as 'params'. 3 242
SimplifiedTernary Ternary operators that can be simplified with || or && 3 265
SimplifiedTernary Ternary operators that can be simplified with || or && 3 286
UselessParentheses Useless parentheses. 4 358
UselessParentheses Useless parentheses. 4 358
CollapsibleIfStatements These nested if statements could be combined 3 380383

nl/tudelft/simulation/dsol/jetty/sse/OTSWebServer.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'dirtyControls'. 3 63
UnusedLocalVariable Avoid unused local variables such as 'params'. 3 276
SimplifiedTernary Ternary operators that can be simplified with || or && 3 299
SimplifiedTernary Ternary operators that can be simplified with || or && 3 320
UselessParentheses Useless parentheses. 4 392
UselessParentheses Useless parentheses. 4 392
CollapsibleIfStatements These nested if statements could be combined 3 414417

nl/tudelft/simulation/dsol/jetty/sse/TestDemoServer.java

Rule Violation Priority Line
EmptyIfStmt Avoid empty if statements 3 403405
EmptyIfStmt Avoid empty if statements 3 407409
EmptyIfStmt Avoid empty if statements 3 411413
EmptyIfStmt Avoid empty if statements 3 415417

nl/tudelft/simulation/dsol/web/animation/D2/HTMLAnimationPanel.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'gtuColorer'. 3 105
CollapsibleIfStatements These nested if statements could be combined 3 190193
EmptyCatchBlock Avoid empty catch blocks 3 315318

org/opentrafficsim/web/animation/WebAnimationToggles.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'showAnimationClass': the method is already in a final class 3 105108
UnnecessaryModifier Unnecessary modifier 'final' on method 'hideAnimationClass': the method is already in a final class 3 115118

org/opentrafficsim/web/test/TJunctionModel.java

Rule Violation Priority Line
EmptyStatementBlock Avoid empty block statements. 3 122124