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 79–82

javax/measure/MetricPrefix.java

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

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–107
UnnecessaryModifier Unnecessary modifier 'static' on enum 'Scale': nested enums are implicitly static 105–107

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 101

javax/measure/spi/FormatService.java

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

javax/measure/spi/ServiceProvider.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 186–188
EmptyCatchBlock Avoid empty catch blocks 192–194
EmptyCatchBlock Avoid empty catch blocks 199–201
EmptyCatchBlock Avoid empty catch blocks 205–207

Files

javax/measure/BinaryPrefix.java

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

javax/measure/MetricPrefix.java

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

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–107
UnnecessaryModifier Unnecessary modifier 'static' on enum 'Scale': nested enums are implicitly static 3 105–107

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 101

javax/measure/spi/FormatService.java

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

javax/measure/spi/ServiceProvider.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 186–188
EmptyCatchBlock Avoid empty catch blocks 3 192–194
EmptyCatchBlock Avoid empty catch blocks 3 199–201
EmptyCatchBlock Avoid empty catch blocks 3 205–207