PMD Results

The following document contains the results of PMD 6.29.0.

Violations By Priority

Priority 1

eu/simuline/octave/OctaveEngineFactory.java

Rule Violation Line
AvoidThrowingNullPointerException Avoid throwing null pointer exceptions. 289
AvoidThrowingNullPointerException Avoid throwing null pointer exceptions. 310
AvoidThrowingNullPointerException Avoid throwing null pointer exceptions. 341

Priority 3

eu/simuline/octave/OctaveEngine.java

Rule Violation Line
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 436
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 839
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 840
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 850
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 851
ConfusingTernary Avoid if (x != y) ..; else ..; 859860
CloseResource Ensure that resources like this StringReader object are closed after use 900

eu/simuline/octave/OctaveEngineFactory.java

Rule Violation Line
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 335

eu/simuline/octave/exec/OctaveExec.java

Rule Violation Line
CloseResource Ensure that resources like this OutputStreamWriter object are closed after use 177

eu/simuline/octave/exec/OctaveReaderCallable.java

Rule Violation Line
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 177

eu/simuline/octave/io/OctaveIO.java

Rule Violation Line
CloseResource Ensure that resources like this StringReader object are closed after use 142
CloseResource Ensure that resources like this StringReader object are closed after use 265

eu/simuline/octave/type/OctaveBoolean.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'newL': the method is already in a final class 5458
UnnecessaryModifier Unnecessary modifier 'final' on method 'initL': the method is already in a final class 6064
UnnecessaryModifier Unnecessary modifier 'final' on method 'set': the method is already in a final class 7780
UnnecessaryModifier Unnecessary modifier 'final' on method 'setPlain': the method is already in a final class 8991
UnnecessaryModifier Unnecessary modifier 'final' on method 'setPlain': the method is already in a final class 9496
UnnecessaryModifier Unnecessary modifier 'final' on method 'get': the method is already in a final class 104106
UnnecessaryModifier Unnecessary modifier 'final' on method 'getPlainString': the method is already in a final class 108110

eu/simuline/octave/type/OctaveDouble.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'newL': the method is already in a final class 6266
UnnecessaryModifier Unnecessary modifier 'final' on method 'initL': the method is already in a final class 6872
UnnecessaryModifier Unnecessary modifier 'final' on method 'set': the method is already in a final class 8689
UnnecessaryModifier Unnecessary modifier 'final' on method 'setPlain': the method is already in a final class 98100
UnnecessaryModifier Unnecessary modifier 'final' on method 'setPlain': the method is already in a final class 103105
UnnecessaryModifier Unnecessary modifier 'final' on method 'get': the method is already in a final class 113115
UnnecessaryModifier Unnecessary modifier 'final' on method 'getPlainString': the method is already in a final class 117119

eu/simuline/octave/type/OctaveInt.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'newL': the method is already in a final class 5862
UnnecessaryModifier Unnecessary modifier 'final' on method 'initL': the method is already in a final class 6468
UnnecessaryModifier Unnecessary modifier 'final' on method 'set': the method is already in a final class 8184
UnnecessaryModifier Unnecessary modifier 'final' on method 'setPlain': the method is already in a final class 9395
UnnecessaryModifier Unnecessary modifier 'final' on method 'setPlain': the method is already in a final class 98100
UnnecessaryModifier Unnecessary modifier 'final' on method 'get': the method is already in a final class 108110
UnnecessaryModifier Unnecessary modifier 'final' on method 'getPlainString': the method is already in a final class 112114

eu/simuline/octave/type/OctaveLong.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'newL': the method is already in a final class 6165
UnnecessaryModifier Unnecessary modifier 'final' on method 'initL': the method is already in a final class 6771
UnnecessaryModifier Unnecessary modifier 'final' on method 'set': the method is already in a final class 8487
UnnecessaryModifier Unnecessary modifier 'final' on method 'setPlain': the method is already in a final class 9698
UnnecessaryModifier Unnecessary modifier 'final' on method 'setPlain': the method is already in a final class 101103
UnnecessaryModifier Unnecessary modifier 'final' on method 'get': the method is already in a final class 111113
UnnecessaryModifier Unnecessary modifier 'final' on method 'getPlainString': the method is already in a final class 116118

eu/simuline/octave/util/NoCloseWriter.java

Rule Violation Line
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 88

eu/simuline/octave/util/TeeWriter.java

Rule Violation Line
CloseResource Ensure that resources like this Writer object are closed after use 66
CloseResource Ensure that resources like this Writer object are closed after use 82
CloseResource Ensure that resources like this Writer object are closed after use 98

Priority 4

eu/simuline/octave/OctaveEngine.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'java.net.URL' 28

eu/simuline/octave/exec/OctaveExec.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'eu.simuline.octave.OctaveUtils' 42

eu/simuline/octave/type/OctaveCell.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'java.util.List' 28

eu/simuline/octave/type/matrix/AbstractObjectMatrix.java

Rule Violation Line
UnusedImports Avoid unused imports such as 'java.util.List' 22
UnusedImports Avoid unused imports such as 'java.util.Objects' 23

Files

eu/simuline/octave/OctaveEngine.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'java.net.URL' 4 28
PreserveStackTrace New exception is thrown in catch block, original stack trace may be lost 3 436
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 839
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 840
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 850
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 851
ConfusingTernary Avoid if (x != y) ..; else ..; 3 859860
CloseResource Ensure that resources like this StringReader object are closed after use 3 900

eu/simuline/octave/OctaveEngineFactory.java

Rule Violation Priority Line
AvoidThrowingNullPointerException Avoid throwing null pointer exceptions. 1 289
AvoidThrowingNullPointerException Avoid throwing null pointer exceptions. 1 310
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 335
AvoidThrowingNullPointerException Avoid throwing null pointer exceptions. 1 341

eu/simuline/octave/exec/OctaveExec.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'eu.simuline.octave.OctaveUtils' 4 42
CloseResource Ensure that resources like this OutputStreamWriter object are closed after use 3 177

eu/simuline/octave/exec/OctaveReaderCallable.java

Rule Violation Priority Line
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 177

eu/simuline/octave/io/OctaveIO.java

Rule Violation Priority Line
CloseResource Ensure that resources like this StringReader object are closed after use 3 142
CloseResource Ensure that resources like this StringReader object are closed after use 3 265

eu/simuline/octave/type/OctaveBoolean.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'newL': the method is already in a final class 3 5458
UnnecessaryModifier Unnecessary modifier 'final' on method 'initL': the method is already in a final class 3 6064
UnnecessaryModifier Unnecessary modifier 'final' on method 'set': the method is already in a final class 3 7780
UnnecessaryModifier Unnecessary modifier 'final' on method 'setPlain': the method is already in a final class 3 8991
UnnecessaryModifier Unnecessary modifier 'final' on method 'setPlain': the method is already in a final class 3 9496
UnnecessaryModifier Unnecessary modifier 'final' on method 'get': the method is already in a final class 3 104106
UnnecessaryModifier Unnecessary modifier 'final' on method 'getPlainString': the method is already in a final class 3 108110

eu/simuline/octave/type/OctaveCell.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'java.util.List' 4 28

eu/simuline/octave/type/OctaveDouble.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'newL': the method is already in a final class 3 6266
UnnecessaryModifier Unnecessary modifier 'final' on method 'initL': the method is already in a final class 3 6872
UnnecessaryModifier Unnecessary modifier 'final' on method 'set': the method is already in a final class 3 8689
UnnecessaryModifier Unnecessary modifier 'final' on method 'setPlain': the method is already in a final class 3 98100
UnnecessaryModifier Unnecessary modifier 'final' on method 'setPlain': the method is already in a final class 3 103105
UnnecessaryModifier Unnecessary modifier 'final' on method 'get': the method is already in a final class 3 113115
UnnecessaryModifier Unnecessary modifier 'final' on method 'getPlainString': the method is already in a final class 3 117119

eu/simuline/octave/type/OctaveInt.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'newL': the method is already in a final class 3 5862
UnnecessaryModifier Unnecessary modifier 'final' on method 'initL': the method is already in a final class 3 6468
UnnecessaryModifier Unnecessary modifier 'final' on method 'set': the method is already in a final class 3 8184
UnnecessaryModifier Unnecessary modifier 'final' on method 'setPlain': the method is already in a final class 3 9395
UnnecessaryModifier Unnecessary modifier 'final' on method 'setPlain': the method is already in a final class 3 98100
UnnecessaryModifier Unnecessary modifier 'final' on method 'get': the method is already in a final class 3 108110
UnnecessaryModifier Unnecessary modifier 'final' on method 'getPlainString': the method is already in a final class 3 112114

eu/simuline/octave/type/OctaveLong.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'newL': the method is already in a final class 3 6165
UnnecessaryModifier Unnecessary modifier 'final' on method 'initL': the method is already in a final class 3 6771
UnnecessaryModifier Unnecessary modifier 'final' on method 'set': the method is already in a final class 3 8487
UnnecessaryModifier Unnecessary modifier 'final' on method 'setPlain': the method is already in a final class 3 9698
UnnecessaryModifier Unnecessary modifier 'final' on method 'setPlain': the method is already in a final class 3 101103
UnnecessaryModifier Unnecessary modifier 'final' on method 'get': the method is already in a final class 3 111113
UnnecessaryModifier Unnecessary modifier 'final' on method 'getPlainString': the method is already in a final class 3 116118

eu/simuline/octave/type/matrix/AbstractObjectMatrix.java

Rule Violation Priority Line
UnusedImports Avoid unused imports such as 'java.util.List' 4 22
UnusedImports Avoid unused imports such as 'java.util.Objects' 4 23

eu/simuline/octave/util/NoCloseWriter.java

Rule Violation Priority Line
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 88

eu/simuline/octave/util/TeeWriter.java

Rule Violation Priority Line
CloseResource Ensure that resources like this Writer object are closed after use 3 66
CloseResource Ensure that resources like this Writer object are closed after use 3 82
CloseResource Ensure that resources like this Writer object are closed after use 3 98