PMD Results
The following document contains the results of PMD 7.3.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 | 64 |
UnnecessaryModifier | Unnecessary modifiers 'public static final' on field 'OBJECT_REMOVED_EVENT': the field is declared in an interface type | 75 |
UnnecessaryModifier | Unnecessary modifiers 'public static final' on field 'OBJECT_CHANGED_EVENT': the field is declared in an interface type | 87 |
nl/tudelft/simulation/naming/context/RemoteContext.java
Rule | Violation | Line |
---|---|---|
AvoidUsingHardCodedIP | Do not hard code the IP address host | 95 |
UnusedPrivateField | Avoid unused private fields such as 'bindingKey'. | 428 |
nl/tudelft/simulation/naming/context/RemoteContextFactory.java
Rule | Violation | Line |
---|---|---|
AvoidUsingHardCodedIP | Do not hard code the IP address ${variableName} | 62 |
nl/tudelft/simulation/naming/context/util/ContextUtil.java
Rule | Violation | Line |
---|---|---|
EmptyCatchBlock | Avoid empty catch blocks | 50–53 |
Priority 4
nl/tudelft/simulation/naming/context/FileContextFactory.java
Rule | Violation | Line |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'FileContextFactory': 'context' is already in scope because it is declared in an enclosing type | 42 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'FileContextFactory': 'context' is already in scope because it is declared in an enclosing type | 47 |
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 | 67 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 69 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 74 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 121 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 161 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 190 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'OBJECT_ADDED_EVENT' is already in scope because it is inherited by an enclosing type | 198 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 222 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'OBJECT_REMOVED_EVENT' is already in scope because it is inherited by an enclosing type | 227 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 244 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'OBJECT_REMOVED_EVENT' is already in scope because it is inherited by an enclosing type | 250 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'OBJECT_ADDED_EVENT' is already in scope because it is inherited by an enclosing type | 253 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 316 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'ROOT' is already in scope because it is inherited by an enclosing type | 324 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 326 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 337 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 346 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 435 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'OBJECT_CHANGED_EVENT' is already in scope because it is inherited by an enclosing type | 443 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 458 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'REPLACE_SEPARATOR' is already in scope because it is inherited by an enclosing type | 458 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'ROOT' is already in scope because it is inherited by an enclosing type | 536 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 538 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 549 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 555 |
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 | 28 |
nl/tudelft/simulation/naming/context/RemoteContext.java
Rule | Violation | Line |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 291 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'OBJECT_CHANGED_EVENT' is already in scope because it is inherited by an enclosing type | 299 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 315 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'REPLACE_SEPARATOR' is already in scope because it is inherited by an enclosing type | 315 |
nl/tudelft/simulation/naming/context/RemoteContextFactory.java
Rule | Violation | Line |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'RemoteContextFactory': 'context' is already in scope because it is declared in an enclosing type | 41 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'RemoteContextFactory': 'context' is already in scope because it is declared in an enclosing type | 43 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'RemoteContextFactory': 'context' is already in scope because it is declared in an enclosing type | 100 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'RemoteContextFactory': 'context' is already in scope because it is declared in an enclosing type | 101 |
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 | 258 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'LocalEventProducer': 'EventProducer::FIRST_POSITION' is already in scope because it is inherited by an enclosing type | 282 |
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 | 64 |
UnnecessaryModifier | Unnecessary modifiers 'public static final' on field 'OBJECT_REMOVED_EVENT': the field is declared in an interface type | 3 | 75 |
UnnecessaryModifier | Unnecessary modifiers 'public static final' on field 'OBJECT_CHANGED_EVENT': the field is declared in an interface type | 3 | 87 |
nl/tudelft/simulation/naming/context/FileContextFactory.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'FileContextFactory': 'context' is already in scope because it is declared in an enclosing type | 4 | 42 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'FileContextFactory': 'context' is already in scope because it is declared in an enclosing type | 4 | 47 |
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 | 67 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 69 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 74 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 121 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 161 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 190 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'OBJECT_ADDED_EVENT' is already in scope because it is inherited by an enclosing type | 4 | 198 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 222 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'OBJECT_REMOVED_EVENT' is already in scope because it is inherited by an enclosing type | 4 | 227 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 244 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'OBJECT_REMOVED_EVENT' is already in scope because it is inherited by an enclosing type | 4 | 250 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'OBJECT_ADDED_EVENT' is already in scope because it is inherited by an enclosing type | 4 | 253 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 316 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'ROOT' is already in scope because it is inherited by an enclosing type | 4 | 324 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 326 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 337 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 346 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 435 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'OBJECT_CHANGED_EVENT' is already in scope because it is inherited by an enclosing type | 4 | 443 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 458 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'REPLACE_SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 458 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'ROOT' is already in scope because it is inherited by an enclosing type | 4 | 536 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 538 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 549 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 555 |
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 | 28 |
nl/tudelft/simulation/naming/context/RemoteContext.java
Rule | Violation | Priority | Line |
---|---|---|---|
AvoidUsingHardCodedIP | Do not hard code the IP address host | 3 | 95 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 291 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'OBJECT_CHANGED_EVENT' is already in scope because it is inherited by an enclosing type | 4 | 299 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 315 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'REPLACE_SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 315 |
UnusedPrivateField | Avoid unused private fields such as 'bindingKey'. | 3 | 428 |
nl/tudelft/simulation/naming/context/RemoteContextFactory.java
Rule | Violation | Priority | Line |
---|---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'RemoteContextFactory': 'context' is already in scope because it is declared in an enclosing type | 4 | 41 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'RemoteContextFactory': 'context' is already in scope because it is declared in an enclosing type | 4 | 43 |
AvoidUsingHardCodedIP | Do not hard code the IP address ${variableName} | 3 | 62 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'RemoteContextFactory': 'context' is already in scope because it is declared in an enclosing type | 4 | 100 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'RemoteContextFactory': 'context' is already in scope because it is declared in an enclosing type | 4 | 101 |
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 | 258 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'LocalEventProducer': 'EventProducer::FIRST_POSITION' is already in scope because it is inherited by an enclosing type | 4 | 282 |
nl/tudelft/simulation/naming/context/util/ContextUtil.java
Rule | Violation | Priority | Line |
---|---|---|---|
EmptyCatchBlock | Avoid empty catch blocks | 3 | 50–53 |