PMD Results
The following document contains the results of PMD 7.7.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 | 49 |
UnnecessaryModifier | Unnecessary modifiers 'public static final' on field 'SEPARATOR': the field is declared in an interface type | 52 |
UnnecessaryModifier | Unnecessary modifiers 'public static final' on field 'REPLACE_SEPARATOR': the field is declared in an interface type | 55 |
UnnecessaryModifier | Unnecessary modifiers 'public static final' on field 'OBJECT_ADDED_EVENT': the field is declared in an interface type | 63 |
UnnecessaryModifier | Unnecessary modifiers 'public static final' on field 'OBJECT_REMOVED_EVENT': the field is declared in an interface type | 74 |
UnnecessaryModifier | Unnecessary modifiers 'public static final' on field 'OBJECT_CHANGED_EVENT': the field is declared in an interface type | 86 |
nl/tudelft/simulation/naming/context/RemoteContext.java
Rule | Violation | Line |
---|---|---|
AvoidUsingHardCodedIP | Do not hard code the IP address host | 94 |
UnusedPrivateField | Avoid unused private fields such as 'bindingKey'. | 390 |
nl/tudelft/simulation/naming/context/RemoteContextFactory.java
Rule | Violation | Line |
---|---|---|
AvoidUsingHardCodedIP | Do not hard code the IP address ${variableName} | 60 |
nl/tudelft/simulation/naming/context/util/ContextUtil.java
Rule | Violation | Line |
---|---|---|
EmptyCatchBlock | Avoid empty catch blocks | 49–52 |
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 | 40 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'FileContextFactory': 'context' is already in scope because it is declared in an enclosing type | 45 |
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 | 66 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 68 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 73 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 115 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 152 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 178 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'OBJECT_ADDED_EVENT' is already in scope because it is inherited by an enclosing type | 186 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 207 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'OBJECT_REMOVED_EVENT' is already in scope because it is inherited by an enclosing type | 212 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 227 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'OBJECT_REMOVED_EVENT' is already in scope because it is inherited by an enclosing type | 233 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'OBJECT_ADDED_EVENT' is already in scope because it is inherited by an enclosing type | 236 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 295 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'ROOT' is already in scope because it is inherited by an enclosing type | 303 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 305 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 316 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 325 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 409 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'OBJECT_CHANGED_EVENT' is already in scope because it is inherited by an enclosing type | 417 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 432 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'REPLACE_SEPARATOR' is already in scope because it is inherited by an enclosing type | 432 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'ROOT' is already in scope because it is inherited by an enclosing type | 506 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 508 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 519 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 525 |
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/RemoteContext.java
Rule | Violation | Line |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 263 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'OBJECT_CHANGED_EVENT' is already in scope because it is inherited by an enclosing type | 271 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 287 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'REPLACE_SEPARATOR' is already in scope because it is inherited by an enclosing type | 287 |
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 | 39 |
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 | 98 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'RemoteContextFactory': 'context' is already in scope because it is declared in an enclosing type | 99 |
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 | 256 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'LocalEventProducer': 'EventProducer::FIRST_POSITION' is already in scope because it is inherited by an enclosing type | 280 |
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 | 49 |
UnnecessaryModifier | Unnecessary modifiers 'public static final' on field 'SEPARATOR': the field is declared in an interface type | 3 | 52 |
UnnecessaryModifier | Unnecessary modifiers 'public static final' on field 'REPLACE_SEPARATOR': the field is declared in an interface type | 3 | 55 |
UnnecessaryModifier | Unnecessary modifiers 'public static final' on field 'OBJECT_ADDED_EVENT': the field is declared in an interface type | 3 | 63 |
UnnecessaryModifier | Unnecessary modifiers 'public static final' on field 'OBJECT_REMOVED_EVENT': the field is declared in an interface type | 3 | 74 |
UnnecessaryModifier | Unnecessary modifiers 'public static final' on field 'OBJECT_CHANGED_EVENT': the field is declared in an interface type | 3 | 86 |
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 | 40 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'FileContextFactory': 'context' is already in scope because it is declared in an enclosing type | 4 | 45 |
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 | 66 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 68 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 73 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 115 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 152 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 178 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'OBJECT_ADDED_EVENT' is already in scope because it is inherited by an enclosing type | 4 | 186 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 207 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'OBJECT_REMOVED_EVENT' is already in scope because it is inherited by an enclosing type | 4 | 212 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 227 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'OBJECT_REMOVED_EVENT' is already in scope because it is inherited by an enclosing type | 4 | 233 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'OBJECT_ADDED_EVENT' is already in scope because it is inherited by an enclosing type | 4 | 236 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 295 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'ROOT' is already in scope because it is inherited by an enclosing type | 4 | 303 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 305 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 316 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 325 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 409 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'OBJECT_CHANGED_EVENT' is already in scope because it is inherited by an enclosing type | 4 | 417 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 432 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'REPLACE_SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 432 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'ROOT' is already in scope because it is inherited by an enclosing type | 4 | 506 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 508 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 519 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 525 |
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/RemoteContext.java
Rule | Violation | Priority | Line |
---|---|---|---|
AvoidUsingHardCodedIP | Do not hard code the IP address host | 3 | 94 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 263 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'OBJECT_CHANGED_EVENT' is already in scope because it is inherited by an enclosing type | 4 | 271 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 287 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ContextInterface': 'REPLACE_SEPARATOR' is already in scope because it is inherited by an enclosing type | 4 | 287 |
UnusedPrivateField | Avoid unused private fields such as 'bindingKey'. | 3 | 390 |
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 | 39 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'RemoteContextFactory': 'context' is already in scope because it is declared in an enclosing type | 4 | 41 |
AvoidUsingHardCodedIP | Do not hard code the IP address ${variableName} | 3 | 60 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'RemoteContextFactory': 'context' is already in scope because it is declared in an enclosing type | 4 | 98 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'RemoteContextFactory': 'context' is already in scope because it is declared in an enclosing type | 4 | 99 |
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 | 256 |
UnnecessaryFullyQualifiedName | Unnecessary qualifier 'LocalEventProducer': 'EventProducer::FIRST_POSITION' is already in scope because it is inherited by an enclosing type | 4 | 280 |
nl/tudelft/simulation/naming/context/util/ContextUtil.java
Rule | Violation | Priority | Line |
---|---|---|---|
EmptyCatchBlock | Avoid empty catch blocks | 3 | 49–52 |