PMD Results

The following document contains the results of PMD 7.17.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 47
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SEPARATOR': the field is declared in an interface type 50
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'REPLACE_SEPARATOR': the field is declared in an interface type 53
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'OBJECT_ADDED_EVENT': the field is declared in an interface type 61
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'OBJECT_REMOVED_EVENT': the field is declared in an interface type 72
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'OBJECT_CHANGED_EVENT': the field is declared in an interface type 84

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

Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 4750

Priority 4

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

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type 61
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type 63
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type 66
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type 102
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type 139
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type 165
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'OBJECT_ADDED_EVENT' is already in scope because it is inherited by an enclosing type 173
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type 194
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'OBJECT_REMOVED_EVENT' is already in scope because it is inherited by an enclosing type 199
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type 214
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'OBJECT_REMOVED_EVENT' is already in scope because it is inherited by an enclosing type 220
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'OBJECT_ADDED_EVENT' is already in scope because it is inherited by an enclosing type 223
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type 281
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'ROOT' is already in scope because it is inherited by an enclosing type 289
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type 291
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type 302
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type 311
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type 393
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'OBJECT_CHANGED_EVENT' is already in scope because it is inherited by an enclosing type 401
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type 416
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'REPLACE_SEPARATOR' is already in scope because it is inherited by an enclosing type 416
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'ROOT' is already in scope because it is inherited by an enclosing type 482
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type 484
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type 495
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type 501

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

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'JvmContextFactory': 'context' is already in scope because it is declared in an enclosing type 26

nl/tudelft/simulation/naming/context/event/ContextEventProducerImpl.java

Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'LocalEventProducer': 'EventProducer::FIRST_POSITION' is already in scope because it is inherited by an enclosing type 247
UnnecessaryFullyQualifiedName Unnecessary qualifier 'LocalEventProducer': 'EventProducer::FIRST_POSITION' is already in scope because it is inherited by an enclosing type 269

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 47
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'SEPARATOR': the field is declared in an interface type 3 50
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'REPLACE_SEPARATOR': the field is declared in an interface type 3 53
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'OBJECT_ADDED_EVENT': the field is declared in an interface type 3 61
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'OBJECT_REMOVED_EVENT': the field is declared in an interface type 3 72
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'OBJECT_CHANGED_EVENT': the field is declared in an interface type 3 84

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

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type 4 61
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type 4 63
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type 4 66
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type 4 102
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type 4 139
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type 4 165
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'OBJECT_ADDED_EVENT' is already in scope because it is inherited by an enclosing type 4 173
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type 4 194
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'OBJECT_REMOVED_EVENT' is already in scope because it is inherited by an enclosing type 4 199
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type 4 214
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'OBJECT_REMOVED_EVENT' is already in scope because it is inherited by an enclosing type 4 220
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'OBJECT_ADDED_EVENT' is already in scope because it is inherited by an enclosing type 4 223
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type 4 281
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'ROOT' is already in scope because it is inherited by an enclosing type 4 289
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type 4 291
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type 4 302
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type 4 311
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type 4 393
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'OBJECT_CHANGED_EVENT' is already in scope because it is inherited by an enclosing type 4 401
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type 4 416
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'REPLACE_SEPARATOR' is already in scope because it is inherited by an enclosing type 4 416
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'ROOT' is already in scope because it is inherited by an enclosing type 4 482
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type 4 484
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type 4 495
UnnecessaryFullyQualifiedName Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type 4 501

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

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'JvmContextFactory': 'context' is already in scope because it is declared in an enclosing type 4 26

nl/tudelft/simulation/naming/context/event/ContextEventProducerImpl.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'LocalEventProducer': 'EventProducer::FIRST_POSITION' is already in scope because it is inherited by an enclosing type 4 247
UnnecessaryFullyQualifiedName Unnecessary qualifier 'LocalEventProducer': 'EventProducer::FIRST_POSITION' is already in scope because it is inherited by an enclosing type 4 269

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

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 4750