Le document suivant contient les résultats de PMD 6.13.0.
Rule | Violation | Ligne |
---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 10–117 |
Rule | Violation | Ligne |
---|---|---|
DoubleCheckedLocking | Double checked locking is not thread safe in Java. | 103–118 |
DoubleCheckedLocking | Double checked locking is not thread safe in Java. | 125–140 |
Rule | Violation | Ligne |
---|---|---|
ConstructorCallsOverridableMethod | Overridable method 'getName' called during object construction | 51 |
Rule | Violation | Ligne |
---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 16–166 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The final field name '_strErrorMessage' doesn't match '[a-z][a-zA-Z0-9]*' | 44 |
Rule | Violation | Ligne |
---|---|---|
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 65–68 |
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 74–77 |
Rule | Violation | Ligne |
---|---|---|
GuardLogStatement | Logger calls should be surrounded by log level guards. | 171 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 198 |
Rule | Violation | Ligne |
---|---|---|
GuardLogStatement | Logger calls should be surrounded by log level guards. | 195 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 238 |
Rule | Violation | Ligne |
---|---|---|
UncommentedEmptyConstructor | Document empty constructor | 51–53 |
Rule | Violation | Ligne |
---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 56–67 |
Rule | Violation | Ligne |
---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 96–110 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 171 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 192 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 214 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 235 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 243 |
Rule | Violation | Ligne |
---|---|---|
UncommentedEmptyConstructor | Document empty constructor | 87–89 |
IdenticalCatchBranches | 'catch' branch identical to 'IllegalAccessException' branch | 124–127 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 401 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 453 |
Rule | Violation | Ligne |
---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 92–110 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 148 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 184 |
Rule | Violation | Ligne |
---|---|---|
ExcessivePublicCount | This class has a bunch of public methods and attributes | 34–804 |
TooManyFields | Too many fields | 53–804 |
GodClass | Possible God Class (WMC=73, ATFD=23, TCC=4.374%) | 53–804 |
TooManyMethods | This class has too many methods, consider refactoring it. | 54–804 |
InefficientStringBuffering | Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append(). | 687 |
CyclomaticComplexity | The method 'setFilterValues(DAOUtil)' has a cyclomatic complexity of 10. | 700–748 |
NPathComplexity | The method 'setFilterValues(DAOUtil)' has an NPath complexity of 512 | 700–748 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 793 |
Rule | Violation | Ligne |
---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 97–111 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 240 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 244 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 10–117 |
Rule | Violation | Ligne |
---|---|---|
UnnecessaryReturn | Avoid unnecessary return statements | 77 |
Rule | Violation | Ligne |
---|---|---|
UnnecessaryModifier | Unnecessary modifier 'public' on method 'findIdMostHitedResources': the method is declared in an interface type | 120 |
Rule | Violation | Ligne |
---|---|---|
UncommentedEmptyMethodBody | Document empty method body | 74–75 |
Rule | Violation | Ligne |
---|---|---|
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 119 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 119 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 140 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 140 |
Rule | Violation | Ligne |
---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 109–112 |
Rule | Violation | Ligne |
---|---|---|
UseCollectionIsEmpty | Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() | 71 |
Rule | Violation | Ligne |
---|---|---|
DataClass | The class 'ExtendableResourceResourceIdService' is suspected to be a Data Class (WOC=0.000%, NOPA=4, NOAM=0, WMC=1) | 56–168 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 81–84 |
ShortVariable | Avoid variables with short names like rt | 92 |
ShortVariable | Avoid variables with short names like p | 98 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 137 |
ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 137 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 138 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 139 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 140 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 141 |
Rule | Violation | Ligne |
---|---|---|
CyclomaticComplexity | The method 'process(HttpServletRequest, String)' has a cyclomatic complexity of 15. | 142–247 |
ExcessiveMethodLength | Avoid really long methods. | 142–247 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 161 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 161 |
ShortVariable | Avoid variables with short names like sb | 167 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 168 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 169 |
UnusedLocalVariable | Avoid unused local variables such as 'strMarker'. | 189 |
CollapsibleIfStatements | These nested if statements could be combined | 225–231 |
Rule | Violation | Ligne |
---|---|---|
MissingBreakInSwitch | A switch statement does not contain a break | 74–98 |
Rule | Violation | Ligne |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 58–332 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 236–237 |
Rule | Violation | Ligne |
---|---|---|
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the ResourceExtenderCacheService constructor if you want a default access modifier | 49–52 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 49–52 |
Rule | Violation | Ligne |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 68–565 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 292 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 297 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 371 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 371 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 400–401 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 536 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 536 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 540 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 540 |
Rule | Violation | Ligne |
---|---|---|
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 170 |
Rule | Violation | Ligne |
---|---|---|
DefaultPackage | Use explicit scoping instead of the default package private level | 17 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the _t field if you want a default access modifier | 17 |
ShortVariable | Avoid variables with short names like _t | 17 |
ImmutableField | Private field '_strType' could be made final; it is only initialized in the declaration or constructor. | 21 |
ShortVariable | Avoid variables with short names like t | 49 |
ShortVariable | Avoid variables with short names like t | 71 |
ControlStatementBraces | This statement should have braces | 116 |
ControlStatementBraces | This statement should have braces | 133 |
ControlStatementBraces | This statement should have braces | 151 |
ControlStatementBraces | This statement should have braces | 169 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 3–19 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 3–31 |
Rule | Violation | Ligne |
---|---|---|
ConfusingTernary | Avoid if (x != y) ..; else ..; | 160 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 161 |
Rule | Violation | Ligne |
---|---|---|
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 112 |
Rule | Violation | Ligne |
---|---|---|
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 102–103 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 111 |
Rule | Violation | Ligne |
---|---|---|
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 87 |
Rule | Violation | Ligne |
---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 52–55 |
Rule | Violation | Ligne |
---|---|---|
UseCollectionIsEmpty | Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() | 87 |
Rule | Violation | Ligne |
---|---|---|
UnnecessaryModifier | Unnecessary modifier 'private' on constructor 'OperatorEnum(int, String)': enum constructors are implicitly private | 60–64 |
MissingOverride | The method 'toString()' is missing an @Override annotation. | 81–84 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–1101 |
ExcessiveClassLength | Avoid really long classes. | 90–1101 |
CyclomaticComplexity | The class 'ResourceExtenderJspBean' has a total cyclomatic complexity of 89 (highest 10). | 90–1101 |
ImmutableField | Private field '_resourceExtenderSearchFields' could be made final; it is only initialized in the declaration or constructor. | 163 |
ImmutableField | Private field '_resourceTypeService' could be made final; it is only initialized in the declaration or constructor. | 164 |
ImmutableField | Private field '_extenderService' could be made final; it is only initialized in the declaration or constructor. | 165 |
ImmutableField | Private field '_extenderComponentManager' could be made final; it is only initialized in the declaration or constructor. | 166 |
ImmutableField | Private field '_resourceManager' could be made final; it is only initialized in the declaration or constructor. | 167 |
ImmutableField | Private field '_defaultResourceService' could be made final; it is only initialized in the declaration or constructor. | 168 |
ImmutableField | Private field '_resourceExtenderHistoryService' could be made final; it is only initialized in the declaration or constructor. | 169 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 200 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 200 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 243 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 243 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 339 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 376 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 376 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 604 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 604 |
CyclomaticComplexity | The method 'doCreateResourceExtender(HttpServletRequest)' has a cyclomatic complexity of 10. | 623–689 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 681–684 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 731 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 796 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 821 |
UnnecessaryLocalBeforeReturn | Consider simply returning the value vs storing it in local variable 'action' | 1036 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 1087 |
Rule | Violation | Ligne |
---|---|---|
UncommentedEmptyMethodBody | Document empty method body | 81–82 |
Rule | Violation | Ligne |
---|---|---|
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 159 |
Rule | Violation | Ligne |
---|---|---|
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 246–247 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–395 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 206 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 206 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 235 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 235 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 279 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 279 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 319–320 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 322 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 322 |
CyclomaticComplexity | The method 'doSaveConfig(ResourceExtenderDTO, HttpServletRequest)' has a cyclomatic complexity of 10. | 341–394 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 352–361 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 363–391 |
IdenticalCatchBranches | 'catch' branch identical to 'IllegalAccessException' branch | 373–376 |
UseCollectionIsEmpty | Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() | 381 |
Rule | Violation | Ligne |
---|---|---|
IdenticalCatchBranches | 'catch' branch identical to 'IllegalAccessException' branch | 79–82 |
Rule | Violation | Ligne |
---|---|---|
GenericsNaming | Generics names should be a one letter long and upper case. | 44 |
Rule | Violation | Ligne |
---|---|---|
ShortClassName | Avoid short class names like Hit | 45–127 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UncommentedEmptyConstructor | Document empty constructor | 3 | 51–53 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 56–67 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 96–110 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 171 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 192 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 214 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 235 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 243 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UncommentedEmptyConstructor | Document empty constructor | 3 | 87–89 |
IdenticalCatchBranches | 'catch' branch identical to 'IllegalAccessException' branch | 3 | 124–127 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 401 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 3 | 453 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
GenericsNaming | Generics names should be a one letter long and upper case. | 4 | 44 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 92–110 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 148 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 184 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessivePublicCount | This class has a bunch of public methods and attributes | 3 | 34–804 |
TooManyFields | Too many fields | 3 | 53–804 |
GodClass | Possible God Class (WMC=73, ATFD=23, TCC=4.374%) | 3 | 53–804 |
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 54–804 |
InefficientStringBuffering | Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append(). | 3 | 687 |
CyclomaticComplexity | The method 'setFilterValues(DAOUtil)' has a cyclomatic complexity of 10. | 3 | 700–748 |
NPathComplexity | The method 'setFilterValues(DAOUtil)' has an NPath complexity of 512 | 3 | 700–748 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 3 | 793 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ShortClassName | Avoid short class names like Hit | 4 | 45–127 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 97–111 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 240 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 244 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 10–117 |
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 1 | 10–117 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UnnecessaryReturn | Avoid unnecessary return statements | 3 | 77 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UnnecessaryModifier | Unnecessary modifier 'public' on method 'findIdMostHitedResources': the method is declared in an interface type | 3 | 120 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UncommentedEmptyMethodBody | Document empty method body | 3 | 74–75 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 119 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 119 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 140 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 140 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 2 | 171 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 2 | 198 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CollapsibleIfStatements | These nested if statements could be combined | 3 | 109–112 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseCollectionIsEmpty | Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() | 3 | 71 |
DoubleCheckedLocking | Double checked locking is not thread safe in Java. | 1 | 103–118 |
DoubleCheckedLocking | Double checked locking is not thread safe in Java. | 1 | 125–140 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
DataClass | The class 'ExtendableResourceResourceIdService' is suspected to be a Data Class (WOC=0.000%, NOPA=4, NOAM=0, WMC=1) | 3 | 56–168 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 81–84 |
ShortVariable | Avoid variables with short names like rt | 3 | 92 |
ShortVariable | Avoid variables with short names like p | 3 | 98 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 137 |
ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 3 | 137 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 138 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 139 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 140 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 141 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CyclomaticComplexity | The method 'process(HttpServletRequest, String)' has a cyclomatic complexity of 15. | 3 | 142–247 |
ExcessiveMethodLength | Avoid really long methods. | 3 | 142–247 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 161 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 161 |
ShortVariable | Avoid variables with short names like sb | 3 | 167 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 168 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 169 |
UnusedLocalVariable | Avoid unused local variables such as 'strMarker'. | 3 | 189 |
CollapsibleIfStatements | These nested if statements could be combined | 3 | 225–231 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingBreakInSwitch | A switch statement does not contain a break | 3 | 74–98 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 58–332 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 236–237 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the ResourceExtenderCacheService constructor if you want a default access modifier | 3 | 49–52 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 49–52 |
ConstructorCallsOverridableMethod | Overridable method 'getName' called during object construction | 1 | 51 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 68–565 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 3 | 292 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 3 | 297 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 371 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 371 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 400–401 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 536 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 536 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 540 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 540 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 170 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 17 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the _t field if you want a default access modifier | 3 | 17 |
ShortVariable | Avoid variables with short names like _t | 3 | 17 |
ImmutableField | Private field '_strType' could be made final; it is only initialized in the declaration or constructor. | 3 | 21 |
ShortVariable | Avoid variables with short names like t | 3 | 49 |
ShortVariable | Avoid variables with short names like t | 3 | 71 |
ControlStatementBraces | This statement should have braces | 3 | 116 |
ControlStatementBraces | This statement should have braces | 3 | 133 |
ControlStatementBraces | This statement should have braces | 3 | 151 |
ControlStatementBraces | This statement should have braces | 3 | 169 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 3–19 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 3–31 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 1 | 16–166 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 160 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 161 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 112 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 102–103 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 111 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 87 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
FieldNamingConventions | The final field name '_strErrorMessage' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 44 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 52–55 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseCollectionIsEmpty | Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() | 3 | 87 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UnnecessaryModifier | Unnecessary modifier 'private' on constructor 'OperatorEnum(int, String)': enum constructors are implicitly private | 3 | 60–64 |
MissingOverride | The method 'toString()' is missing an @Override annotation. | 3 | 81–84 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–1101 |
ExcessiveClassLength | Avoid really long classes. | 3 | 90–1101 |
CyclomaticComplexity | The class 'ResourceExtenderJspBean' has a total cyclomatic complexity of 89 (highest 10). | 3 | 90–1101 |
ImmutableField | Private field '_resourceExtenderSearchFields' could be made final; it is only initialized in the declaration or constructor. | 3 | 163 |
ImmutableField | Private field '_resourceTypeService' could be made final; it is only initialized in the declaration or constructor. | 3 | 164 |
ImmutableField | Private field '_extenderService' could be made final; it is only initialized in the declaration or constructor. | 3 | 165 |
ImmutableField | Private field '_extenderComponentManager' could be made final; it is only initialized in the declaration or constructor. | 3 | 166 |
ImmutableField | Private field '_resourceManager' could be made final; it is only initialized in the declaration or constructor. | 3 | 167 |
ImmutableField | Private field '_defaultResourceService' could be made final; it is only initialized in the declaration or constructor. | 3 | 168 |
ImmutableField | Private field '_resourceExtenderHistoryService' could be made final; it is only initialized in the declaration or constructor. | 3 | 169 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 2 | 195 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 200 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 200 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 2 | 238 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 243 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 243 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 339 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 376 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 376 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 604 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 604 |
CyclomaticComplexity | The method 'doCreateResourceExtender(HttpServletRequest)' has a cyclomatic complexity of 10. | 3 | 623–689 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 3 | 681–684 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 731 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 796 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 821 |
UnnecessaryLocalBeforeReturn | Consider simply returning the value vs storing it in local variable 'action' | 3 | 1036 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 1087 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UncommentedEmptyMethodBody | Document empty method body | 3 | 81–82 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 159 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 246–247 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 1 | 65–68 |
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 1 | 74–77 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–395 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 206 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 206 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 235 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 235 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 279 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 279 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 319–320 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 322 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 322 |
CyclomaticComplexity | The method 'doSaveConfig(ResourceExtenderDTO, HttpServletRequest)' has a cyclomatic complexity of 10. | 3 | 341–394 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 3 | 352–361 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 3 | 363–391 |
IdenticalCatchBranches | 'catch' branch identical to 'IllegalAccessException' branch | 3 | 373–376 |
UseCollectionIsEmpty | Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() | 3 | 381 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
IdenticalCatchBranches | 'catch' branch identical to 'IllegalAccessException' branch | 3 | 79–82 |