PMD Results

The following document contains the results of PMD 5.2.1.

Files

com/jed/actor/Boundary.java

Violation Line
Avoid unused private fields such as 'LOGGER'. 27

com/jed/state/DiscoState.java

Violation Line
Useless parentheses. 261
Useless parentheses. 318

com/jed/state/GameMap.java

Violation Line
Useless parentheses. 137
These nested if statements could be combined 147153
Useless parentheses. 155
These nested if statements could be combined 165171
Useless parentheses. 241
Useless parentheses. 242

com/jed/util/Vector2f.java

Violation Line
Useless parentheses. 49
Useless parentheses. 79

org/newdawn/slick/AngelCodeFont.java

Violation Line
Avoid empty if statements 238240
Avoid empty if statements 247249
Useless parentheses. 468
Useless parentheses. 468

org/newdawn/slick/Animation.java

Violation Line
Useless parentheses. 597
Useless parentheses. 602
Useless parentheses. 602
Useless parentheses. 602

org/newdawn/slick/Color.java

Violation Line
Useless parentheses. 153
Useless parentheses. 192
Useless parentheses. 201
Useless parentheses. 201
Useless parentheses. 201
Useless parentheses. 201
Useless parentheses. 201

org/newdawn/slick/ControlledInputReceiver.java

Violation Line
Avoid modifiers which are implied by the context 23
Avoid modifiers which are implied by the context 30
Avoid modifiers which are implied by the context 35
Avoid modifiers which are implied by the context 40

org/newdawn/slick/ControllerListener.java

Violation Line
Avoid modifiers which are implied by the context 17
Avoid modifiers which are implied by the context 26
Avoid modifiers which are implied by the context 35
Avoid modifiers which are implied by the context 44
Avoid modifiers which are implied by the context 53
Avoid modifiers which are implied by the context 62
Avoid modifiers which are implied by the context 71
Avoid modifiers which are implied by the context 80
Avoid modifiers which are implied by the context 90
Avoid modifiers which are implied by the context 100

org/newdawn/slick/Image.java

Violation Line
Useless parentheses. 675
Useless parentheses. 676
Useless parentheses. 677
Useless parentheses. 678
Useless parentheses. 679
Useless parentheses. 680
Useless parentheses. 681
Useless parentheses. 682
Useless parentheses. 798
Useless parentheses. 800
Useless parentheses. 811
Useless parentheses. 814
Useless parentheses. 814
Useless parentheses. 817
Useless parentheses. 1359
Useless parentheses. 1360
Useless parentheses. 1361
Useless parentheses. 1362

org/newdawn/slick/ImageBuffer.java

Violation Line
Useless parentheses. 118
Useless parentheses. 118
Useless parentheses. 118
Useless parentheses. 118
Useless parentheses. 122

org/newdawn/slick/Input.java

Violation Line
Useless parentheses. 776
Useless parentheses. 785
Useless parentheses. 1033
Useless parentheses. 1033
Avoid empty catch blocks 10481050
Useless parentheses. 1088
Useless parentheses. 1088
Useless parentheses. 1112
These nested if statements could be combined 11121115
Avoid empty while statements 1132
Avoid empty while statements 1133
These nested if statements could be combined 11501152
Useless parentheses. 1217
Useless parentheses. 1218
Useless parentheses. 1219
Useless parentheses. 1220
Useless parentheses. 1236
These nested if statements could be combined 12361251
Useless parentheses. 1236
Useless parentheses. 1274
Useless parentheses. 1274
Useless parentheses. 1312
These nested if statements could be combined 13131324
Useless parentheses. 1400
Useless parentheses. 1435
Useless parentheses. 1465

org/newdawn/slick/KeyListener.java

Violation Line
Avoid modifiers which are implied by the context 15
Avoid modifiers which are implied by the context 23

org/newdawn/slick/MouseListener.java

Violation Line
Avoid modifiers which are implied by the context 15
Avoid modifiers which are implied by the context 29
Avoid modifiers which are implied by the context 38
Avoid modifiers which are implied by the context 47
Avoid modifiers which are implied by the context 57
Avoid modifiers which are implied by the context 67

org/newdawn/slick/Renderable.java

Violation Line
Avoid modifiers which are implied by the context 16

org/newdawn/slick/ShapeFill.java

Violation Line
Avoid modifiers which are implied by the context 25
Avoid modifiers which are implied by the context 36

org/newdawn/slick/SpriteSheet.java

Violation Line
Useless parentheses. 180
Useless parentheses. 181
Useless parentheses. 204
Useless parentheses. 204
Useless parentheses. 207
Useless parentheses. 207
Useless parentheses. 227
Useless parentheses. 227
Useless parentheses. 230
Useless parentheses. 230

org/newdawn/slick/UnicodeFont.java

Violation Line
Avoid empty catch blocks 240241
Avoid empty catch blocks 983985

org/newdawn/slick/command/InputProvider.java

Violation Line
These nested if statements could be combined 157159

org/newdawn/slick/command/InputProviderListener.java

Violation Line
Avoid modifiers which are implied by the context 16
Avoid modifiers which are implied by the context 23

org/newdawn/slick/font/effects/ConfigurableEffect.java

Violation Line
Avoid modifiers which are implied by the context 19
Avoid modifiers which are implied by the context 24
Avoid modifiers which are implied by the context 2954
Avoid modifiers which are implied by the context 33
Avoid modifiers which are implied by the context 38
Avoid modifiers which are implied by the context 43
Avoid modifiers which are implied by the context 48
Avoid modifiers which are implied by the context 53

org/newdawn/slick/font/effects/Effect.java

Violation Line
Avoid modifiers which are implied by the context 24

org/newdawn/slick/font/effects/EffectUtil.java

Violation Line
Unnecessary use of fully qualified name 'java.awt.Color.white' due to existing import 'java.awt.Color' 55

org/newdawn/slick/geom/Circle.java

Violation Line
Useless parentheses. 108

org/newdawn/slick/geom/Ellipse.java

Violation Line
Dont use floating point for loop indices. If you must use floating point, use double. 143
Useless parentheses. 203

org/newdawn/slick/geom/GeomUtil.java

Violation Line
These nested if statements could be combined 5456
These nested if statements could be combined 6164
These nested if statements could be combined 127130
These nested if statements could be combined 138141
Useless parentheses. 145
Useless parentheses. 145
This usage of the Collection.toArray() method will throw a ClassCastException. 194
These nested if statements could be combined 198201
Useless parentheses. 234
Useless parentheses. 234
Useless parentheses. 379
Useless parentheses. 379

org/newdawn/slick/geom/GeomUtilListener.java

Violation Line
Avoid modifiers which are implied by the context 15
Avoid modifiers which are implied by the context 23
Avoid modifiers which are implied by the context 31

org/newdawn/slick/geom/Line.java

Violation Line
Avoid unused constructor parameters such as 'inner'. 42
Avoid unused constructor parameters such as 'outer'. 42
Avoid unused constructor parameters such as 'dummy'. 88
Useless parentheses. 210
Useless parentheses. 211
Useless parentheses. 408
Useless parentheses. 414
Useless parentheses. 417
Useless parentheses. 421
Useless parentheses. 421
Useless parentheses. 421
Useless parentheses. 421
Useless parentheses. 421

org/newdawn/slick/geom/NeatTriangulator.java

Violation Line
Useless parentheses. 344
Useless parentheses. 344

org/newdawn/slick/geom/OverTriangulator.java

Violation Line
Useless parentheses. 52
Useless parentheses. 53
Useless parentheses. 54
Useless parentheses. 55
Useless parentheses. 56
Useless parentheses. 57
Useless parentheses. 73
Useless parentheses. 74
Useless parentheses. 75
Useless parentheses. 76
Useless parentheses. 77
Useless parentheses. 78
Useless parentheses. 102

org/newdawn/slick/geom/Polygon.java

Violation Line
Useless parentheses. 98

org/newdawn/slick/geom/Rectangle.java

Violation Line
Useless parentheses. 174
Useless parentheses. 174
Useless parentheses. 177
Useless parentheses. 177
Useless parentheses. 252
Useless parentheses. 252
Useless parentheses. 252
Useless parentheses. 253

org/newdawn/slick/geom/Shape.java

Violation Line
Useless parentheses. 95
Useless parentheses. 95
Useless parentheses. 120
Useless parentheses. 120
Useless parentheses. 125
Useless parentheses. 171
Useless parentheses. 171
Useless parentheses. 196
Useless parentheses. 196
Useless parentheses. 316
Useless parentheses. 316
Useless parentheses. 319
Useless parentheses. 319
Useless parentheses. 325
Useless parentheses. 362
Useless parentheses. 410
Useless parentheses. 410
Useless parentheses. 525
Useless parentheses. 527
Useless parentheses. 529
Useless parentheses. 531
Useless parentheses. 562
Useless parentheses. 562
Useless parentheses. 581
Useless parentheses. 582
Useless parentheses. 593
Useless parentheses. 595
Useless parentheses. 604
Useless parentheses. 604
Useless parentheses. 655
Useless parentheses. 657
Useless parentheses. 700
Useless parentheses. 701
Useless parentheses. 707
Useless parentheses. 707

org/newdawn/slick/geom/ShapeRenderer.java

Violation Line
Unnecessary final modifier in final class 3153
Unnecessary final modifier in final class 6288
Unnecessary final modifier in final class 109124
Unnecessary final modifier in final class 133150
Unnecessary final modifier in final class 159161
Unnecessary final modifier in final class 171173
Unnecessary final modifier in final class 184210
Unnecessary final modifier in final class 222259
Useless parentheses. 241
Useless parentheses. 242
Unnecessary final modifier in final class 268289
Unnecessary final modifier in final class 302334
Unnecessary final modifier in final class 343361
Avoid modifiers which are implied by the context 368379

org/newdawn/slick/geom/TexCoordGenerator.java

Violation Line
Avoid modifiers which are implied by the context 21

org/newdawn/slick/geom/Triangulator.java

Violation Line
Avoid modifiers which are implied by the context 17
Avoid modifiers which are implied by the context 27
Avoid modifiers which are implied by the context 35
Avoid modifiers which are implied by the context 40
Avoid modifiers which are implied by the context 47

org/newdawn/slick/geom/Vector2f.java

Violation Line
Useless parentheses. 58
Useless parentheses. 58
Useless parentheses. 65
Useless parentheses. 65
Useless parentheses. 117
Useless parentheses. 117
Useless parentheses. 181
Useless parentheses. 324
Useless parentheses. 391
Useless parentheses. 407
Useless parentheses. 407

org/newdawn/slick/loading/DeferredResource.java

Violation Line
Avoid modifiers which are implied by the context 18
Avoid modifiers which are implied by the context 25

org/newdawn/slick/opengl/ImageData.java

Violation Line
Avoid modifiers which are implied by the context 128
Avoid modifiers which are implied by the context 135
Avoid modifiers which are implied by the context 142
Avoid modifiers which are implied by the context 149
Avoid modifiers which are implied by the context 156
Avoid modifiers which are implied by the context 163

org/newdawn/slick/opengl/InternalTextureLoader.java

Violation Line
Useless parentheses. 404
Useless parentheses. 404
Useless parentheses. 644
Useless parentheses. 644

org/newdawn/slick/opengl/LoadableImageData.java

Violation Line
Avoid modifiers which are implied by the context 20
Avoid modifiers which are implied by the context 29
Avoid modifiers which are implied by the context 4041
Avoid modifiers which are implied by the context 5354

org/newdawn/slick/opengl/PNGDecoder.java

Violation Line
Useless parentheses. 290
Useless parentheses. 535
Useless parentheses. 544
Useless parentheses. 557
Useless parentheses. 566
Useless parentheses. 579
Useless parentheses. 588
Useless parentheses. 620
Useless parentheses. 644
Useless parentheses. 692
Useless parentheses. 882
Useless parentheses. 921

org/newdawn/slick/opengl/PNGImageData.java

Violation Line
Useless parentheses. 142
Useless parentheses. 143
Useless parentheses. 143

org/newdawn/slick/opengl/TGAImageData.java

Violation Line
Check the value returned by the skip() method of an InputStream to see if the requested number of bytes has been skipped. 149
Useless parentheses. 153
Useless parentheses. 153
Useless parentheses. 172
Useless parentheses. 185
Useless parentheses. 205
Useless parentheses. 231
Useless parentheses. 281
Useless parentheses. 287
Useless parentheses. 288
Useless parentheses. 288

org/newdawn/slick/opengl/Texture.java

Violation Line
Avoid modifiers which are implied by the context 15
Avoid modifiers which are implied by the context 22
Avoid modifiers which are implied by the context 27
Avoid modifiers which are implied by the context 34
Avoid modifiers which are implied by the context 41
Avoid modifiers which are implied by the context 50
Avoid modifiers which are implied by the context 59
Avoid modifiers which are implied by the context 66
Avoid modifiers which are implied by the context 73
Avoid modifiers which are implied by the context 78
Avoid modifiers which are implied by the context 85
Avoid modifiers which are implied by the context 92
Avoid modifiers which are implied by the context 99

org/newdawn/slick/opengl/renderer/LineStripRenderer.java

Violation Line
Avoid modifiers which are implied by the context 15
Avoid modifiers which are implied by the context 20
Avoid modifiers which are implied by the context 25
Avoid modifiers which are implied by the context 33
Avoid modifiers which are implied by the context 43
Avoid modifiers which are implied by the context 50
Avoid modifiers which are implied by the context 57
Avoid modifiers which are implied by the context 64

org/newdawn/slick/opengl/renderer/QuadBasedLineStripRenderer.java

Violation Line
Useless parentheses. 93
Useless parentheses. 94
Useless parentheses. 98
Useless parentheses. 98
Useless parentheses. 98
Useless parentheses. 98
Useless parentheses. 166
Useless parentheses. 167
Useless parentheses. 168
Useless parentheses. 169
Useless parentheses. 175
Useless parentheses. 175
Useless parentheses. 179
Useless parentheses. 223
Useless parentheses. 223
Useless parentheses. 238
Useless parentheses. 238
Useless parentheses. 239
Useless parentheses. 239
Useless parentheses. 242
Useless parentheses. 242
Useless parentheses. 245
Useless parentheses. 245
Useless parentheses. 248
Useless parentheses. 249
Useless parentheses. 264
Useless parentheses. 264
Useless parentheses. 265
Useless parentheses. 265
Useless parentheses. 267
Useless parentheses. 267
Useless parentheses. 268
Useless parentheses. 268
Useless parentheses. 282
Useless parentheses. 283
Useless parentheses. 284
Useless parentheses. 285

org/newdawn/slick/opengl/renderer/SGL.java

Violation Line
Avoid modifiers which are implied by the context 21
Avoid modifiers which are implied by the context 24
Avoid modifiers which are implied by the context 26
Avoid modifiers which are implied by the context 28
Avoid modifiers which are implied by the context 30
Avoid modifiers which are implied by the context 32
Avoid modifiers which are implied by the context 34
Avoid modifiers which are implied by the context 36
Avoid modifiers which are implied by the context 38
Avoid modifiers which are implied by the context 40
Avoid modifiers which are implied by the context 42
Avoid modifiers which are implied by the context 44
Avoid modifiers which are implied by the context 46
Avoid modifiers which are implied by the context 48
Avoid modifiers which are implied by the context 50
Avoid modifiers which are implied by the context 53
Avoid modifiers which are implied by the context 55
Avoid modifiers which are implied by the context 57
Avoid modifiers which are implied by the context 60
Avoid modifiers which are implied by the context 62
Avoid modifiers which are implied by the context 64
Avoid modifiers which are implied by the context 66
Avoid modifiers which are implied by the context 68
Avoid modifiers which are implied by the context 70
Avoid modifiers which are implied by the context 73
Avoid modifiers which are implied by the context 75
Avoid modifiers which are implied by the context 77
Avoid modifiers which are implied by the context 79
Avoid modifiers which are implied by the context 81
Avoid modifiers which are implied by the context 84
Avoid modifiers which are implied by the context 86
Avoid modifiers which are implied by the context 88
Avoid modifiers which are implied by the context 90
Avoid modifiers which are implied by the context 92
Avoid modifiers which are implied by the context 94
Avoid modifiers which are implied by the context 96
Avoid modifiers which are implied by the context 98
Avoid modifiers which are implied by the context 100
Avoid modifiers which are implied by the context 102
Avoid modifiers which are implied by the context 104
Avoid modifiers which are implied by the context 107
Avoid modifiers which are implied by the context 110
Avoid modifiers which are implied by the context 112
Avoid modifiers which are implied by the context 114
Avoid modifiers which are implied by the context 116
Avoid modifiers which are implied by the context 119
Avoid modifiers which are implied by the context 121
Avoid modifiers which are implied by the context 124
Avoid modifiers which are implied by the context 127
Avoid modifiers which are implied by the context 130
Avoid modifiers which are implied by the context 133
Avoid modifiers which are implied by the context 136
Avoid modifiers which are implied by the context 138
Avoid modifiers which are implied by the context 140
Avoid modifiers which are implied by the context 142
Avoid modifiers which are implied by the context 144
Avoid modifiers which are implied by the context 149
Avoid modifiers which are implied by the context 157
Avoid modifiers which are implied by the context 165
Avoid modifiers which are implied by the context 175
Avoid modifiers which are implied by the context 183
Avoid modifiers which are implied by the context 193
Avoid modifiers which are implied by the context 200
Avoid modifiers which are implied by the context 207
Avoid modifiers which are implied by the context 217
Avoid modifiers which are implied by the context 222
Avoid modifiers which are implied by the context 230
Avoid modifiers which are implied by the context 238
Avoid modifiers which are implied by the context 245
Avoid modifiers which are implied by the context 252
Avoid modifiers which are implied by the context 260
Avoid modifiers which are implied by the context 271
Avoid modifiers which are implied by the context 278
Avoid modifiers which are implied by the context 288
Avoid modifiers which are implied by the context 296
Avoid modifiers which are implied by the context 305
Avoid modifiers which are implied by the context 313
Avoid modifiers which are implied by the context 323
Avoid modifiers which are implied by the context 332
Avoid modifiers which are implied by the context 339
Avoid modifiers which are implied by the context 344
Avoid modifiers which are implied by the context 353
Avoid modifiers which are implied by the context 360
Avoid modifiers which are implied by the context 369
Avoid modifiers which are implied by the context 374
Avoid modifiers which are implied by the context 379
Avoid modifiers which are implied by the context 387
Avoid modifiers which are implied by the context 395
Avoid modifiers which are implied by the context 403
Avoid modifiers which are implied by the context 408
Avoid modifiers which are implied by the context 415
Avoid modifiers which are implied by the context 429430
Avoid modifiers which are implied by the context 443444
Avoid modifiers which are implied by the context 453
Avoid modifiers which are implied by the context 460
Avoid modifiers which are implied by the context 468
Avoid modifiers which are implied by the context 475
Avoid modifiers which are implied by the context 482
Avoid modifiers which are implied by the context 489
Avoid modifiers which are implied by the context 496
Avoid modifiers which are implied by the context 503
Avoid modifiers which are implied by the context 510
Avoid modifiers which are implied by the context 515
Avoid modifiers which are implied by the context 530532
Avoid modifiers which are implied by the context 548550
Avoid modifiers which are implied by the context 557
Avoid modifiers which are implied by the context 563
Avoid modifiers which are implied by the context 571

org/newdawn/slick/opengl/renderer/VAOGLRenderer.java

Violation Line
Useless parentheses. 89
Useless parentheses. 89
Useless parentheses. 89
Useless parentheses. 89
Useless parentheses. 90
Useless parentheses. 90
Useless parentheses. 91
Useless parentheses. 91
Useless parentheses. 91
Useless parentheses. 216
Useless parentheses. 217
Useless parentheses. 218
Useless parentheses. 219
Useless parentheses. 220
Useless parentheses. 221
Useless parentheses. 222
Useless parentheses. 223
Useless parentheses. 224
These nested if statements could be combined 228232

org/newdawn/slick/util/Log.java

Violation Line
Useless parentheses. 70
Useless parentheses. 70
Avoid empty catch blocks 7577

org/newdawn/slick/util/LogSystem.java

Violation Line
Avoid modifiers which are implied by the context 16
Avoid modifiers which are implied by the context 23
Avoid modifiers which are implied by the context 30
Avoid modifiers which are implied by the context 37
Avoid modifiers which are implied by the context 45
Avoid modifiers which are implied by the context 52
Avoid modifiers which are implied by the context 59

org/newdawn/slick/util/ResourceLocation.java

Violation Line
Avoid modifiers which are implied by the context 20
Avoid modifiers which are implied by the context 28