PMD Results
The following document contains the results of PMD 7.17.0.
Violations By Priority
Priority 3
nl/tudelft/simulation/dsol/web/AbstractTestDemoServer.java
| Rule | Violation | Line |
|---|---|---|
| EmptyControlStatement | Empty if statement | 398–413 |
| EmptyControlStatement | Empty if statement | 402–413 |
| EmptyControlStatement | Empty if statement | 406–413 |
| EmptyControlStatement | Empty if statement | 410–413 |
nl/tudelft/simulation/dsol/web/DsolWebModel.java
| Rule | Violation | Line |
|---|---|---|
| UnusedPrivateField | Avoid unused private fields such as 'dirtyControls'. | 57 |
| UnusedLocalVariable | Avoid unused local variables such as 'params'. | 200 |
| SimplifiedTernary | This conditional expression can be simplified with || or && | 221 |
| SimplifiedTernary | This conditional expression can be simplified with || or && | 240 |
nl/tudelft/simulation/dsol/web/DsolWebServer.java
| Rule | Violation | Line |
|---|---|---|
| UnusedPrivateField | Avoid unused private fields such as 'dirtyControls'. | 63 |
| UnusedLocalVariable | Avoid unused local variables such as 'params'. | 268 |
| SimplifiedTernary | This conditional expression can be simplified with || or && | 291 |
| SimplifiedTernary | This conditional expression can be simplified with || or && | 312 |
nl/tudelft/simulation/dsol/web/animation/d2/HtmlAnimationPanel.java
| Rule | Violation | Line |
|---|---|---|
| CollapsibleIfStatements | This if statement could be combined with its parent | 174–177 |
| EmptyCatchBlock | Avoid empty catch blocks | 232–235 |
| EmptyCatchBlock | Avoid empty catch blocks | 298–301 |
Priority 4
nl/tudelft/simulation/dsol/web/DsolWebModel.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryImport | Unused import 'java.rmi.RemoteException' | 6 |
nl/tudelft/simulation/dsol/web/animation/HtmlDevice.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'GraphicsDevice': 'TYPE_RASTER_SCREEN' is already in scope because it is inherited by an enclosing type | 36 |
Files
nl/tudelft/simulation/dsol/web/AbstractTestDemoServer.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyControlStatement | Empty if statement | 3 | 398–413 |
| EmptyControlStatement | Empty if statement | 3 | 402–413 |
| EmptyControlStatement | Empty if statement | 3 | 406–413 |
| EmptyControlStatement | Empty if statement | 3 | 410–413 |
nl/tudelft/simulation/dsol/web/DsolWebModel.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryImport | Unused import 'java.rmi.RemoteException' | 4 | 6 |
| UnusedPrivateField | Avoid unused private fields such as 'dirtyControls'. | 3 | 57 |
| UnusedLocalVariable | Avoid unused local variables such as 'params'. | 3 | 200 |
| SimplifiedTernary | This conditional expression can be simplified with || or && | 3 | 221 |
| SimplifiedTernary | This conditional expression can be simplified with || or && | 3 | 240 |
nl/tudelft/simulation/dsol/web/DsolWebServer.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnusedPrivateField | Avoid unused private fields such as 'dirtyControls'. | 3 | 63 |
| UnusedLocalVariable | Avoid unused local variables such as 'params'. | 3 | 268 |
| SimplifiedTernary | This conditional expression can be simplified with || or && | 3 | 291 |
| SimplifiedTernary | This conditional expression can be simplified with || or && | 3 | 312 |
nl/tudelft/simulation/dsol/web/animation/HtmlDevice.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'GraphicsDevice': 'TYPE_RASTER_SCREEN' is already in scope because it is inherited by an enclosing type | 4 | 36 |
nl/tudelft/simulation/dsol/web/animation/d2/HtmlAnimationPanel.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 174–177 |
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 232–235 |
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 298–301 |
