PMD Results

The following document contains the results of PMD 6.46.0.

Violations By Priority

Priority 3

nl/tudelft/simulation/naming/context/ContextInterface.java

Rule Violation Line
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ROOT': the field is declared in an interface type 50
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SEPARATOR': the field is declared in an interface type 53
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'REPLACE_SEPARATOR': the field is declared in an interface type 56
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'OBJECT_ADDED_EVENT': the field is declared in an interface type 6467
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'OBJECT_REMOVED_EVENT': the field is declared in an interface type 7578
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'OBJECT_CHANGED_EVENT': the field is declared in an interface type 8790

nl/tudelft/simulation/naming/context/RemoteContext.java

Rule Violation Line
AvoidUsingHardCodedIP Do not hard code the IP address 95

nl/tudelft/simulation/naming/context/RemoteContextFactory.java

Rule Violation Line
AvoidUsingHardCodedIP Do not hard code the IP address 62

nl/tudelft/simulation/naming/context/util/ContextUtil.java

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 5053

Priority 4

nl/tudelft/simulation/naming/context/util/ContextUtil.java

Rule Violation Line
UselessParentheses Useless parentheses. 139
UselessParentheses Useless parentheses. 139

Files

nl/tudelft/simulation/naming/context/ContextInterface.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'ROOT': the field is declared in an interface type 3 50
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SEPARATOR': the field is declared in an interface type 3 53
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'REPLACE_SEPARATOR': the field is declared in an interface type 3 56
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'OBJECT_ADDED_EVENT': the field is declared in an interface type 3 6467
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'OBJECT_REMOVED_EVENT': the field is declared in an interface type 3 7578
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'OBJECT_CHANGED_EVENT': the field is declared in an interface type 3 8790

nl/tudelft/simulation/naming/context/RemoteContext.java

Rule Violation Priority Line
AvoidUsingHardCodedIP Do not hard code the IP address 3 95

nl/tudelft/simulation/naming/context/RemoteContextFactory.java

Rule Violation Priority Line
AvoidUsingHardCodedIP Do not hard code the IP address 3 62

nl/tudelft/simulation/naming/context/util/ContextUtil.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 5053
UselessParentheses Useless parentheses. 4 139
UselessParentheses Useless parentheses. 4 139