PMD Results
The following document contains the results of PMD 7.17.0.
Violations By Priority
Priority 3
nl/tudelft/simulation/dsol/swing/animation/d2/AnimationUpdaterThread.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 62–65 |
nl/tudelft/simulation/dsol/swing/animation/d2/AutoPanAnimationPanel.java
| Rule | Violation | Line |
|---|---|---|
| UnusedPrivateField | Avoid unused private fields such as 'autoPanOnNextPaintComponent'. | 54 |
| UselessOverridingMethod | Overriding method merely calls super | 101 |
nl/tudelft/simulation/dsol/swing/animation/d2/InputListener.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryReturn | Unnecessary return statement | 72 |
nl/tudelft/simulation/dsol/swing/animation/d2/VisualizationPanel.java
| Rule | Violation | Line |
|---|---|---|
| SimplifiedTernary | This conditional expression can be simplified with || or && | 330 |
| CollapsibleIfStatements | This if statement could be combined with its parent | 356–359 |
| UnnecessaryReturn | Unnecessary return statement | 407 |
| UnusedLocalVariable | Avoid unused local variables such as 'mwc'. | 653 |
| EmptyCatchBlock | Avoid empty catch blocks | 885–888 |
| UselessOverridingMethod | Overriding method merely calls super | 1129 |
nl/tudelft/simulation/dsol/swing/charts/xy/XYSeries.java
| Rule | Violation | Line |
|---|---|---|
| CollapsibleIfStatements | This if statement could be combined with its parent | 103–107 |
| CollapsibleIfStatements | This if statement could be combined with its parent | 111–115 |
nl/tudelft/simulation/dsol/swing/gui/DsolApplication.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 129–132 |
nl/tudelft/simulation/dsol/swing/gui/animation/panel/InfoTextPanel.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 158–161 |
nl/tudelft/simulation/dsol/swing/gui/animation/panel/SearchPanel.java
| Rule | Violation | Line |
|---|---|---|
| UselessOverridingMethod | Overriding method merely calls super | 253 |
nl/tudelft/simulation/dsol/swing/gui/control/AbstractControlPanel.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 201–204 |
| CollapsibleIfStatements | This if statement could be combined with its parent | 369–372 |
nl/tudelft/simulation/dsol/swing/gui/control/RealTimeControlPanel.java
| Rule | Violation | Line |
|---|---|---|
| CollapsibleIfStatements | This if statement could be combined with its parent | 99–106 |
nl/tudelft/simulation/dsol/swing/gui/util/Icons.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryModifier | Unnecessary modifier 'final' on method 'loadIcon': the method is already in a final class | 35 |
| UnnecessaryModifier | Unnecessary modifier 'final' on method 'loadGrayscaleIcon': the method is already in a final class | 53 |
nl/tudelft/simulation/dsol/swing/introspection/gui/IntrospectionDialog.java
| Rule | Violation | Line |
|---|---|---|
| CollapsibleIfStatements | This if statement could be combined with its parent | 149–153 |
nl/tudelft/simulation/dsol/swing/introspection/sortable/Sortable.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryModifier | Unnecessary modifier 'public' on interface 'Definition': the interface is declared in an interface type | 21 |
Priority 4
nl/tudelft/simulation/dsol/swing/animation/d2/InputListener.java
| Rule | Violation | Line |
|---|---|---|
| UselessParentheses | Useless parentheses around `e.isShiftDown()`. | 86 |
nl/tudelft/simulation/dsol/swing/animation/d2/actions/HomeAction.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Action': 'SMALL_ICON' is already in scope because it is inherited by an enclosing type | 38 |
nl/tudelft/simulation/dsol/swing/animation/d2/actions/PanDownAction.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Action': 'SMALL_ICON' is already in scope because it is inherited by an enclosing type | 40 |
nl/tudelft/simulation/dsol/swing/animation/d2/actions/PanLeftAction.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Action': 'SMALL_ICON' is already in scope because it is inherited by an enclosing type | 39 |
nl/tudelft/simulation/dsol/swing/animation/d2/actions/PanRightAction.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Action': 'SMALL_ICON' is already in scope because it is inherited by an enclosing type | 39 |
nl/tudelft/simulation/dsol/swing/animation/d2/actions/PanUpAction.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Action': 'SMALL_ICON' is already in scope because it is inherited by an enclosing type | 39 |
nl/tudelft/simulation/dsol/swing/animation/d2/actions/ZoomInAction.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Action': 'SMALL_ICON' is already in scope because it is inherited by an enclosing type | 39 |
nl/tudelft/simulation/dsol/swing/animation/d2/actions/ZoomOutAction.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Action': 'SMALL_ICON' is already in scope because it is inherited by an enclosing type | 39 |
nl/tudelft/simulation/dsol/swing/charts/boxwhisker/BoxAndWhiskerPlot.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'BoxAndWhiskerPlot': 'extent' is already in scope | 264 |
nl/tudelft/simulation/dsol/swing/charts/histogram/Histogram.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Histogram': 'LABEL_Y_AXIS' is already in scope because it is declared in an enclosing type | 81 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Histogram': 'LABEL_X_AXIS' is already in scope because it is declared in an enclosing type | 84 |
nl/tudelft/simulation/dsol/swing/charts/histogram/HistogramDomainAxis.java
| Rule | Violation | Line |
|---|---|---|
| UselessParentheses | Useless parentheses around `dataArea.getWidth()`. | 68 |
| UselessParentheses | Useless parentheses around `this.labels.length`. | 133 |
nl/tudelft/simulation/dsol/swing/charts/xy/XYChart.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'XYChart': 'XLINEAR_YLOGARITHMIC' is already in scope because it is declared in an enclosing type | 92 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'XYChart': 'LABEL_Y_AXIS' is already in scope because it is declared in an enclosing type | 93 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'XYChart': 'XLOGARITHMIC_YLINEAR' is already in scope because it is declared in an enclosing type | 95 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'XYChart': 'LABEL_X_AXIS' is already in scope because it is declared in an enclosing type | 96 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'XYChart': 'XLOGARITHMIC_YLOGARITHMIC' is already in scope because it is declared in an enclosing type | 98 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'XYChart': 'LABEL_X_AXIS' is already in scope because it is declared in an enclosing type | 99 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'XYChart': 'LABEL_Y_AXIS' is already in scope because it is declared in an enclosing type | 100 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'XYChart': 'XLINEAR_YLINEAR' is already in scope because it is declared in an enclosing type | 178 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'XYChart': 'XLINEAR_YLINEAR' is already in scope because it is declared in an enclosing type | 189 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'XYChart': 'XLINEAR_YLINEAR' is already in scope because it is declared in an enclosing type | 225 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'XYChart': 'XLINEAR_YLINEAR' is already in scope because it is declared in an enclosing type | 237 |
nl/tudelft/simulation/dsol/swing/charts/xy/XYSeries.java
| Rule | Violation | Line |
|---|---|---|
| UselessParentheses | Useless parentheses around `Double.isInfinite(this.PERIOD)`. | 123 |
nl/tudelft/simulation/dsol/swing/gui/DsolApplication.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Frame': 'MAXIMIZED_BOTH' is already in scope because it is inherited by an enclosing type | 79 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'WindowConstants': 'EXIT_ON_CLOSE' is already in scope because it is inherited by an enclosing type | 318 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'WindowConstants': 'DISPOSE_ON_CLOSE' is already in scope because it is inherited by an enclosing type | 322 |
nl/tudelft/simulation/dsol/swing/gui/animation/DsolAnimationGisTab.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Component': 'LEFT_ALIGNMENT' is already in scope because it is inherited by an enclosing type | 123 |
nl/tudelft/simulation/dsol/swing/gui/animation/DsolAnimationTab.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Component': 'LEFT_ALIGNMENT' is already in scope because it is inherited by an enclosing type | 244 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Component': 'LEFT_ALIGNMENT' is already in scope because it is inherited by an enclosing type | 282 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Component': 'LEFT_ALIGNMENT' is already in scope because it is inherited by an enclosing type | 306 |
nl/tudelft/simulation/dsol/swing/gui/animation/panel/InfoTextPanel.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Thread': 'sleep' is already in scope | 156 |
nl/tudelft/simulation/dsol/swing/gui/animation/panel/PropertiesPanel.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryImport | Unused import 'java.rmi.RemoteException' | 3 |
nl/tudelft/simulation/dsol/swing/gui/animation/panel/SearchPanel.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryImport | Unused import 'java.rmi.RemoteException' | 8 |
nl/tudelft/simulation/dsol/swing/gui/control/AbstractControlPanel.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Thread': 'sleep' is already in scope | 199 |
nl/tudelft/simulation/dsol/swing/gui/inputparameters/InputFieldDistContinuous.java
| Rule | Violation | Line |
|---|---|---|
| UselessParentheses | Useless parentheses around `this.distPanel.getLayout()`. | 124 |
nl/tudelft/simulation/dsol/swing/gui/inputparameters/InputFieldDistDiscrete.java
| Rule | Violation | Line |
|---|---|---|
| UselessParentheses | Useless parentheses around `this.distPanel.getLayout()`. | 124 |
nl/tudelft/simulation/dsol/swing/gui/inputparameters/TabbedParameterDialog.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'WindowConstants': 'DISPOSE_ON_CLOSE' is already in scope because it is inherited by an enclosing type | 72 |
nl/tudelft/simulation/dsol/swing/introspection/gui/CollectionTableModel.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'CollectionTableModel': 'COLUMNS' is already in scope because it is declared in an enclosing type | 145 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'CollectionTableModel': 'COLUMNS' is already in scope because it is declared in an enclosing type | 169 |
nl/tudelft/simulation/dsol/swing/introspection/gui/ImmutableCollectionTableModel.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ImmutableCollectionTableModel': 'COLUMNS' is already in scope because it is declared in an enclosing type | 135 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ImmutableCollectionTableModel': 'COLUMNS' is already in scope because it is declared in an enclosing type | 159 |
nl/tudelft/simulation/dsol/swing/introspection/gui/IntrospectionDialog.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'WindowConstants': 'DISPOSE_ON_CLOSE' is already in scope because it is inherited by an enclosing type | 141 |
nl/tudelft/simulation/dsol/swing/introspection/gui/MapTableModel.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'MapTableModel': 'COLUMNS' is already in scope because it is declared in an enclosing type | 132 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'MapTableModel': 'COLUMNS' is already in scope because it is declared in an enclosing type | 160 |
nl/tudelft/simulation/dsol/swing/introspection/gui/ObjectJTable.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ObjectJTable': 'updateTimer' is already in scope because it is declared in an enclosing type | 131 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'JTable': 'AUTO_RESIZE_LAST_COLUMN' is already in scope because it is inherited by an enclosing type | 215 |
nl/tudelft/simulation/dsol/swing/introspection/gui/ObjectTableModel.java
| Rule | Violation | Line |
|---|---|---|
| UselessParentheses | Useless parentheses around `this.properties[rowIndex].isEditable() && !this...`. | 119 |
nl/tudelft/simulation/dsol/swing/introspection/gui/UpdateTimer.java
| Rule | Violation | Line |
|---|---|---|
| UselessParentheses | Useless parentheses around `this.components.length - 1`. | 67 |
| UselessParentheses | Useless parentheses around `this.components.length - 1`. | 96 |
nl/tudelft/simulation/dsol/swing/introspection/sortable/SortingHeaderCell.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'SortingHeaderCell': 'SORT_NONE' is already in scope because it is declared in an enclosing type | 41 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'SortingHeaderCell': 'instanceCounter' is already in scope because it is declared in an enclosing type | 44 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Component': 'CENTER_ALIGNMENT' is already in scope because it is inherited by an enclosing type | 53 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'SortingHeaderCell': 'instanceCounter' is already in scope because it is declared in an enclosing type | 55 |
| UselessParentheses | Useless parentheses around `this.sortMode != SORT_NONE`. | 98 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'SortingHeaderCell': 'SORT_DESCENDING' is already in scope because it is declared in an enclosing type | 117 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'SortingHeaderCell': 'SORT_ASCENDING' is already in scope because it is declared in an enclosing type | 121 |
nl/tudelft/simulation/dsol/swing/introspection/sortable/SortingTableModel.java
| Rule | Violation | Line |
|---|---|---|
| UselessParentheses | Useless parentheses around `SortingTableModel.this.proxyListeners.get(this)`. | 65 |
| UselessParentheses | Useless parentheses around `y < result.size() && !allocated`. | 160 |
Files
nl/tudelft/simulation/dsol/swing/animation/d2/AnimationUpdaterThread.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 62–65 |
nl/tudelft/simulation/dsol/swing/animation/d2/AutoPanAnimationPanel.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnusedPrivateField | Avoid unused private fields such as 'autoPanOnNextPaintComponent'. | 3 | 54 |
| UselessOverridingMethod | Overriding method merely calls super | 3 | 101 |
nl/tudelft/simulation/dsol/swing/animation/d2/InputListener.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryReturn | Unnecessary return statement | 3 | 72 |
| UselessParentheses | Useless parentheses around `e.isShiftDown()`. | 4 | 86 |
nl/tudelft/simulation/dsol/swing/animation/d2/VisualizationPanel.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| SimplifiedTernary | This conditional expression can be simplified with || or && | 3 | 330 |
| CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 356–359 |
| UnnecessaryReturn | Unnecessary return statement | 3 | 407 |
| UnusedLocalVariable | Avoid unused local variables such as 'mwc'. | 3 | 653 |
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 885–888 |
| UselessOverridingMethod | Overriding method merely calls super | 3 | 1129 |
nl/tudelft/simulation/dsol/swing/animation/d2/actions/HomeAction.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Action': 'SMALL_ICON' is already in scope because it is inherited by an enclosing type | 4 | 38 |
nl/tudelft/simulation/dsol/swing/animation/d2/actions/PanDownAction.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Action': 'SMALL_ICON' is already in scope because it is inherited by an enclosing type | 4 | 40 |
nl/tudelft/simulation/dsol/swing/animation/d2/actions/PanLeftAction.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Action': 'SMALL_ICON' is already in scope because it is inherited by an enclosing type | 4 | 39 |
nl/tudelft/simulation/dsol/swing/animation/d2/actions/PanRightAction.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Action': 'SMALL_ICON' is already in scope because it is inherited by an enclosing type | 4 | 39 |
nl/tudelft/simulation/dsol/swing/animation/d2/actions/PanUpAction.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Action': 'SMALL_ICON' is already in scope because it is inherited by an enclosing type | 4 | 39 |
nl/tudelft/simulation/dsol/swing/animation/d2/actions/ZoomInAction.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Action': 'SMALL_ICON' is already in scope because it is inherited by an enclosing type | 4 | 39 |
nl/tudelft/simulation/dsol/swing/animation/d2/actions/ZoomOutAction.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Action': 'SMALL_ICON' is already in scope because it is inherited by an enclosing type | 4 | 39 |
nl/tudelft/simulation/dsol/swing/charts/boxwhisker/BoxAndWhiskerPlot.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'BoxAndWhiskerPlot': 'extent' is already in scope | 4 | 264 |
nl/tudelft/simulation/dsol/swing/charts/histogram/Histogram.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Histogram': 'LABEL_Y_AXIS' is already in scope because it is declared in an enclosing type | 4 | 81 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Histogram': 'LABEL_X_AXIS' is already in scope because it is declared in an enclosing type | 4 | 84 |
nl/tudelft/simulation/dsol/swing/charts/histogram/HistogramDomainAxis.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UselessParentheses | Useless parentheses around `dataArea.getWidth()`. | 4 | 68 |
| UselessParentheses | Useless parentheses around `this.labels.length`. | 4 | 133 |
nl/tudelft/simulation/dsol/swing/charts/xy/XYChart.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'XYChart': 'XLINEAR_YLOGARITHMIC' is already in scope because it is declared in an enclosing type | 4 | 92 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'XYChart': 'LABEL_Y_AXIS' is already in scope because it is declared in an enclosing type | 4 | 93 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'XYChart': 'XLOGARITHMIC_YLINEAR' is already in scope because it is declared in an enclosing type | 4 | 95 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'XYChart': 'LABEL_X_AXIS' is already in scope because it is declared in an enclosing type | 4 | 96 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'XYChart': 'XLOGARITHMIC_YLOGARITHMIC' is already in scope because it is declared in an enclosing type | 4 | 98 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'XYChart': 'LABEL_X_AXIS' is already in scope because it is declared in an enclosing type | 4 | 99 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'XYChart': 'LABEL_Y_AXIS' is already in scope because it is declared in an enclosing type | 4 | 100 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'XYChart': 'XLINEAR_YLINEAR' is already in scope because it is declared in an enclosing type | 4 | 178 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'XYChart': 'XLINEAR_YLINEAR' is already in scope because it is declared in an enclosing type | 4 | 189 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'XYChart': 'XLINEAR_YLINEAR' is already in scope because it is declared in an enclosing type | 4 | 225 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'XYChart': 'XLINEAR_YLINEAR' is already in scope because it is declared in an enclosing type | 4 | 237 |
nl/tudelft/simulation/dsol/swing/charts/xy/XYSeries.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 103–107 |
| CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 111–115 |
| UselessParentheses | Useless parentheses around `Double.isInfinite(this.PERIOD)`. | 4 | 123 |
nl/tudelft/simulation/dsol/swing/gui/DsolApplication.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Frame': 'MAXIMIZED_BOTH' is already in scope because it is inherited by an enclosing type | 4 | 79 |
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 129–132 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'WindowConstants': 'EXIT_ON_CLOSE' is already in scope because it is inherited by an enclosing type | 4 | 318 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'WindowConstants': 'DISPOSE_ON_CLOSE' is already in scope because it is inherited by an enclosing type | 4 | 322 |
nl/tudelft/simulation/dsol/swing/gui/animation/DsolAnimationGisTab.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Component': 'LEFT_ALIGNMENT' is already in scope because it is inherited by an enclosing type | 4 | 123 |
nl/tudelft/simulation/dsol/swing/gui/animation/DsolAnimationTab.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Component': 'LEFT_ALIGNMENT' is already in scope because it is inherited by an enclosing type | 4 | 244 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Component': 'LEFT_ALIGNMENT' is already in scope because it is inherited by an enclosing type | 4 | 282 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Component': 'LEFT_ALIGNMENT' is already in scope because it is inherited by an enclosing type | 4 | 306 |
nl/tudelft/simulation/dsol/swing/gui/animation/panel/InfoTextPanel.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Thread': 'sleep' is already in scope | 4 | 156 |
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 158–161 |
nl/tudelft/simulation/dsol/swing/gui/animation/panel/PropertiesPanel.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryImport | Unused import 'java.rmi.RemoteException' | 4 | 3 |
nl/tudelft/simulation/dsol/swing/gui/animation/panel/SearchPanel.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryImport | Unused import 'java.rmi.RemoteException' | 4 | 8 |
| UselessOverridingMethod | Overriding method merely calls super | 3 | 253 |
nl/tudelft/simulation/dsol/swing/gui/control/AbstractControlPanel.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Thread': 'sleep' is already in scope | 4 | 199 |
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 201–204 |
| CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 369–372 |
nl/tudelft/simulation/dsol/swing/gui/control/RealTimeControlPanel.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 99–106 |
nl/tudelft/simulation/dsol/swing/gui/inputparameters/InputFieldDistContinuous.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UselessParentheses | Useless parentheses around `this.distPanel.getLayout()`. | 4 | 124 |
nl/tudelft/simulation/dsol/swing/gui/inputparameters/InputFieldDistDiscrete.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UselessParentheses | Useless parentheses around `this.distPanel.getLayout()`. | 4 | 124 |
nl/tudelft/simulation/dsol/swing/gui/inputparameters/TabbedParameterDialog.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'WindowConstants': 'DISPOSE_ON_CLOSE' is already in scope because it is inherited by an enclosing type | 4 | 72 |
nl/tudelft/simulation/dsol/swing/gui/util/Icons.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryModifier | Unnecessary modifier 'final' on method 'loadIcon': the method is already in a final class | 3 | 35 |
| UnnecessaryModifier | Unnecessary modifier 'final' on method 'loadGrayscaleIcon': the method is already in a final class | 3 | 53 |
nl/tudelft/simulation/dsol/swing/introspection/gui/CollectionTableModel.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'CollectionTableModel': 'COLUMNS' is already in scope because it is declared in an enclosing type | 4 | 145 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'CollectionTableModel': 'COLUMNS' is already in scope because it is declared in an enclosing type | 4 | 169 |
nl/tudelft/simulation/dsol/swing/introspection/gui/ImmutableCollectionTableModel.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ImmutableCollectionTableModel': 'COLUMNS' is already in scope because it is declared in an enclosing type | 4 | 135 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ImmutableCollectionTableModel': 'COLUMNS' is already in scope because it is declared in an enclosing type | 4 | 159 |
nl/tudelft/simulation/dsol/swing/introspection/gui/IntrospectionDialog.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'WindowConstants': 'DISPOSE_ON_CLOSE' is already in scope because it is inherited by an enclosing type | 4 | 141 |
| CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 149–153 |
nl/tudelft/simulation/dsol/swing/introspection/gui/MapTableModel.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'MapTableModel': 'COLUMNS' is already in scope because it is declared in an enclosing type | 4 | 132 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'MapTableModel': 'COLUMNS' is already in scope because it is declared in an enclosing type | 4 | 160 |
nl/tudelft/simulation/dsol/swing/introspection/gui/ObjectJTable.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ObjectJTable': 'updateTimer' is already in scope because it is declared in an enclosing type | 4 | 131 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'JTable': 'AUTO_RESIZE_LAST_COLUMN' is already in scope because it is inherited by an enclosing type | 4 | 215 |
nl/tudelft/simulation/dsol/swing/introspection/gui/ObjectTableModel.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UselessParentheses | Useless parentheses around `this.properties[rowIndex].isEditable() && !this...`. | 4 | 119 |
nl/tudelft/simulation/dsol/swing/introspection/gui/UpdateTimer.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UselessParentheses | Useless parentheses around `this.components.length - 1`. | 4 | 67 |
| UselessParentheses | Useless parentheses around `this.components.length - 1`. | 4 | 96 |
nl/tudelft/simulation/dsol/swing/introspection/sortable/Sortable.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryModifier | Unnecessary modifier 'public' on interface 'Definition': the interface is declared in an interface type | 3 | 21 |
nl/tudelft/simulation/dsol/swing/introspection/sortable/SortingHeaderCell.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'SortingHeaderCell': 'SORT_NONE' is already in scope because it is declared in an enclosing type | 4 | 41 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'SortingHeaderCell': 'instanceCounter' is already in scope because it is declared in an enclosing type | 4 | 44 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'Component': 'CENTER_ALIGNMENT' is already in scope because it is inherited by an enclosing type | 4 | 53 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'SortingHeaderCell': 'instanceCounter' is already in scope because it is declared in an enclosing type | 4 | 55 |
| UselessParentheses | Useless parentheses around `this.sortMode != SORT_NONE`. | 4 | 98 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'SortingHeaderCell': 'SORT_DESCENDING' is already in scope because it is declared in an enclosing type | 4 | 117 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'SortingHeaderCell': 'SORT_ASCENDING' is already in scope because it is declared in an enclosing type | 4 | 121 |
nl/tudelft/simulation/dsol/swing/introspection/sortable/SortingTableModel.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UselessParentheses | Useless parentheses around `SortingTableModel.this.proxyListeners.get(this)`. | 4 | 65 |
| UselessParentheses | Useless parentheses around `y < result.size() && !allocated`. | 4 | 160 |
