PMD Results

The following document contains the results of PMD 6.21.0.

Violations By Priority

Priority 3

javax/measure/BinaryPrefix.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'private' on constructor 'BinaryPrefix(String, int)': enum constructors are implicitly private 102–105

javax/measure/MetricPrefix.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'private' on constructor 'MetricPrefix(String, int)': enum constructors are implicitly private 148–151

javax/measure/Prefix.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getSymbol': the method is declared in an interface type 53

javax/measure/Quantity.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on enum 'Scale': the enum is declared in an interface type 105–115
UnnecessaryModifier Unnecessary modifier 'static' on enum 'Scale': nested enums are implicitly static 105–115

javax/measure/format/QuantityFormat.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'format': the method is declared in an interface type 67
UnnecessaryModifier Unnecessary modifier 'public' on method 'parse': the method is declared in an interface type 90
UnnecessaryModifier Unnecessary modifier 'public' on method 'parse': the method is declared in an interface type 105

javax/measure/spi/FormatService.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'static' on enum 'FormatType': nested enums are implicitly static 47–52
UnnecessaryModifier Unnecessary modifier 'public' on enum 'FormatType': the enum is declared in an interface type 47–52

Files

javax/measure/BinaryPrefix.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'private' on constructor 'BinaryPrefix(String, int)': enum constructors are implicitly private 3 102–105

javax/measure/MetricPrefix.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'private' on constructor 'MetricPrefix(String, int)': enum constructors are implicitly private 3 148–151

javax/measure/Prefix.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'getSymbol': the method is declared in an interface type 3 53

javax/measure/Quantity.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on enum 'Scale': the enum is declared in an interface type 3 105–115
UnnecessaryModifier Unnecessary modifier 'static' on enum 'Scale': nested enums are implicitly static 3 105–115

javax/measure/format/QuantityFormat.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'public' on method 'format': the method is declared in an interface type 3 67
UnnecessaryModifier Unnecessary modifier 'public' on method 'parse': the method is declared in an interface type 3 90
UnnecessaryModifier Unnecessary modifier 'public' on method 'parse': the method is declared in an interface type 3 105

javax/measure/spi/FormatService.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'static' on enum 'FormatType': nested enums are implicitly static 3 47–52
UnnecessaryModifier Unnecessary modifier 'public' on enum 'FormatType': the enum is declared in an interface type 3 47–52