Apache Commons logo Commons Text

PMD Results

The following document contains the results of PMD 7.6.0.

Violations By Priority

Priority 2

org/apache/commons/text/StrBuilder.java
Rule Violation Line
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 1973
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 2301
org/apache/commons/text/TextStringBuilder.java
Rule Violation Line
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 2141
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 2474

Priority 4

org/apache/commons/text/AlphabetConverter.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AlphabetConverter': 'createConverter' is already in scope 245
org/apache/commons/text/StrSubstitutor.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'StrSubstitutor': 'replace' is already in scope 194
org/apache/commons/text/StringSubstitutor.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'StringSubstitutor': 'replace' is already in scope 437
org/apache/commons/text/lookup/JavaPlatformStringLookup.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'JavaPlatformStringLookup': 'INSTANCE' is already in scope because it is declared in an enclosing type 86
UnnecessaryFullyQualifiedName Unnecessary qualifier 'JavaPlatformStringLookup': 'INSTANCE' is already in scope because it is declared in an enclosing type 87
UnnecessaryFullyQualifiedName Unnecessary qualifier 'JavaPlatformStringLookup': 'INSTANCE' is already in scope because it is declared in an enclosing type 88
UnnecessaryFullyQualifiedName Unnecessary qualifier 'JavaPlatformStringLookup': 'INSTANCE' is already in scope because it is declared in an enclosing type 89
UnnecessaryFullyQualifiedName Unnecessary qualifier 'JavaPlatformStringLookup': 'INSTANCE' is already in scope because it is declared in an enclosing type 90
UnnecessaryFullyQualifiedName Unnecessary qualifier 'JavaPlatformStringLookup': 'INSTANCE' is already in scope because it is declared in an enclosing type 91
org/apache/commons/text/lookup/PropertiesStringLookup.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AbstractStringLookup': 'toLookupKey' is already in scope 56
org/apache/commons/text/lookup/StringLookupFactory.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'StringLookupFactory': 'DEFAULT_STRING_LOOKUPS_PROPERTY' is already in scope because it is declared in an enclosing type 342
UnnecessaryFullyQualifiedName Unnecessary qualifier 'StringLookupFactory': 'DEFAULT_STRING_LOOKUPS_PROPERTY' is already in scope because it is declared in an enclosing type 343
UnnecessaryFullyQualifiedName Unnecessary qualifier 'StringLookupFactory': 'INSTANCE_BASE64_DECODER' is already in scope because it is declared in an enclosing type 688
UnnecessaryFullyQualifiedName Unnecessary qualifier 'StringLookupFactory': 'INSTANCE_BASE64_ENCODER' is already in scope because it is declared in an enclosing type 715
UnnecessaryFullyQualifiedName Unnecessary qualifier 'StringLookupFactory': 'INSTANCE_BASE64_DECODER' is already in scope because it is declared in an enclosing type 744
UnnecessaryFullyQualifiedName Unnecessary qualifier 'StringLookupFactory': 'INSTANCE_ENVIRONMENT_VARIABLES' is already in scope because it is declared in an enclosing type 886
UnnecessaryFullyQualifiedName Unnecessary qualifier 'StringLookupFactory': 'INSTANCE_NULL' is already in scope because it is declared in an enclosing type 1182
UnnecessaryFullyQualifiedName Unnecessary qualifier 'StringLookupFactory': 'INSTANCE_SYSTEM_PROPERTIES' is already in scope because it is declared in an enclosing type 1423

Files

org/apache/commons/text/AlphabetConverter.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AlphabetConverter': 'createConverter' is already in scope 4 245

org/apache/commons/text/StrBuilder.java

Rule Violation Priority Line
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 2 1973
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 2 2301

org/apache/commons/text/StrSubstitutor.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'StrSubstitutor': 'replace' is already in scope 4 194

org/apache/commons/text/StringSubstitutor.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'StringSubstitutor': 'replace' is already in scope 4 437

org/apache/commons/text/TextStringBuilder.java

Rule Violation Priority Line
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 2 2141
AvoidBranchingStatementAsLastInLoop Avoid using a branching statement as the last in a loop. 2 2474

org/apache/commons/text/lookup/JavaPlatformStringLookup.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'JavaPlatformStringLookup': 'INSTANCE' is already in scope because it is declared in an enclosing type 4 86
UnnecessaryFullyQualifiedName Unnecessary qualifier 'JavaPlatformStringLookup': 'INSTANCE' is already in scope because it is declared in an enclosing type 4 87
UnnecessaryFullyQualifiedName Unnecessary qualifier 'JavaPlatformStringLookup': 'INSTANCE' is already in scope because it is declared in an enclosing type 4 88
UnnecessaryFullyQualifiedName Unnecessary qualifier 'JavaPlatformStringLookup': 'INSTANCE' is already in scope because it is declared in an enclosing type 4 89
UnnecessaryFullyQualifiedName Unnecessary qualifier 'JavaPlatformStringLookup': 'INSTANCE' is already in scope because it is declared in an enclosing type 4 90
UnnecessaryFullyQualifiedName Unnecessary qualifier 'JavaPlatformStringLookup': 'INSTANCE' is already in scope because it is declared in an enclosing type 4 91

org/apache/commons/text/lookup/PropertiesStringLookup.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'AbstractStringLookup': 'toLookupKey' is already in scope 4 56

org/apache/commons/text/lookup/StringLookupFactory.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary qualifier 'StringLookupFactory': 'DEFAULT_STRING_LOOKUPS_PROPERTY' is already in scope because it is declared in an enclosing type 4 342
UnnecessaryFullyQualifiedName Unnecessary qualifier 'StringLookupFactory': 'DEFAULT_STRING_LOOKUPS_PROPERTY' is already in scope because it is declared in an enclosing type 4 343
UnnecessaryFullyQualifiedName Unnecessary qualifier 'StringLookupFactory': 'INSTANCE_BASE64_DECODER' is already in scope because it is declared in an enclosing type 4 688
UnnecessaryFullyQualifiedName Unnecessary qualifier 'StringLookupFactory': 'INSTANCE_BASE64_ENCODER' is already in scope because it is declared in an enclosing type 4 715
UnnecessaryFullyQualifiedName Unnecessary qualifier 'StringLookupFactory': 'INSTANCE_BASE64_DECODER' is already in scope because it is declared in an enclosing type 4 744
UnnecessaryFullyQualifiedName Unnecessary qualifier 'StringLookupFactory': 'INSTANCE_ENVIRONMENT_VARIABLES' is already in scope because it is declared in an enclosing type 4 886
UnnecessaryFullyQualifiedName Unnecessary qualifier 'StringLookupFactory': 'INSTANCE_NULL' is already in scope because it is declared in an enclosing type 4 1182
UnnecessaryFullyQualifiedName Unnecessary qualifier 'StringLookupFactory': 'INSTANCE_SYSTEM_PROPERTIES' is already in scope because it is declared in an enclosing type 4 1423

Suppressed Violations

Filename Rule message Suppression type Reason
org/apache/commons/text/ExtendedMessageFormat.java Avoid empty catch blocks //nopmd