Le document suivant contient les résultats de PMD 6.13.0.
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The field name 'id' doesn't match '_[a-z][a-zA-Z0-9]*' | 8 |
FieldNamingConventions | The field name 'contentLabel' doesn't match '_[a-z][a-zA-Z0-9]*' | 9 |
Rule | Violation | Ligne |
---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 45–240 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The final field name '_blogServiceSession' doesn't match '[a-z][a-zA-Z0-9]*' | 277 |
Rule | Violation | Ligne |
---|---|---|
GuardLogStatement | Logger calls should be surrounded by log level guards. | 705 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 717 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 728 |
Rule | Violation | Ligne |
---|---|---|
AvoidUsingVolatile | Use of modifier volatile is not recommended. | 92 |
Rule | Violation | Ligne |
---|---|---|
ExcessivePublicCount | This class has a bunch of public methods and attributes | 34–641 |
TooManyFields | Too many fields | 54–641 |
CommentRequired | Public method and constructor comments are required | 289–292 |
CommentRequired | Public method and constructor comments are required | 294–297 |
Rule | Violation | Ligne |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 51–851 |
NPathComplexity | The method 'getDaoFromFilter(String, BlogFilter)' has an NPath complexity of 266112 | 606–734 |
CyclomaticComplexity | The method 'getDaoFromFilter(String, BlogFilter)' has a cyclomatic complexity of 28. | 606–734 |
ExcessiveMethodLength | Avoid really long methods. | 606–734 |
NcssCount | The method 'getDaoFromFilter(String, BlogFilter)' has a NCSS line count of 61. | 606–734 |
ShortVariable | Avoid variables with short names like i | 615 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 637 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 655 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 660 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 665 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 671 |
ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 671 |
ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 672 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 678 |
ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 678 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 684 |
ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 684 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 692 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 698 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 702 |
Rule | Violation | Ligne |
---|---|---|
MethodReturnsInternalArray | Returning '_arrayTagsId' may expose an internal array. | 59 |
ArrayIsStoredDirectly | The user-supplied array 'arrayTagsId' is stored directly. | 66 |
MethodReturnsInternalArray | Returning '_arrayId' may expose an internal array. | 96 |
ArrayIsStoredDirectly | The user-supplied array 'arrayId' is stored directly. | 103 |
Rule | Violation | Ligne |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 47–316 |
Rule | Violation | Ligne |
---|---|---|
DefaultPackage | Use explicit scoping instead of the default package private level | 63–75 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the newPrimaryKey method if you want a default access modifier | 63–75 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 84–97 |
Rule | Violation | Ligne |
---|---|---|
MethodReturnsInternalArray | Returning '_strTag' may expose an internal array. | 101 |
ArrayIsStoredDirectly | The user-supplied array 'strTag' is stored directly. | 110 |
Rule | Violation | Ligne |
---|---|---|
DataClass | The class 'BlogSerializable' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=4, WMC=6) | 6–56 |
CommentRequired | Header comments are required | 6–56 |
MissingSerialVersionUID | Classes implementing Serializable should set a serialVersionUID | 6–56 |
ShortVariable | Avoid variables with short names like id | 8 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the id field if you want a default access modifier | 8 |
DefaultPackage | Use explicit scoping instead of the default package private level | 8 |
DefaultPackage | Use explicit scoping instead of the default package private level | 9 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the contentLabel field if you want a default access modifier | 9 |
UncommentedEmptyConstructor | Document empty constructor | 11–13 |
CommentRequired | Public method and constructor comments are required | 11–13 |
ShortVariable | Avoid variables with short names like id | 15 |
CommentRequired | Public method and constructor comments are required | 15–19 |
ShortVariable | Avoid variables with short names like id | 34 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 36–84 |
Rule | Violation | Ligne |
---|---|---|
ArrayIsStoredDirectly | The user-supplied array 'bytes' is stored directly. | 106 |
MethodReturnsInternalArray | Returning '_bytes' may expose an internal array. | 118 |
Rule | Violation | Ligne |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 46–293 |
Rule | Violation | Ligne |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 45–234 |
CommentRequired | Public method and constructor comments are required | 232 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 40–145 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 41–172 |
TooManyMethods | This class has too many methods, consider refactoring it. | 42–172 |
Rule | Violation | Ligne |
---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 80–92 |
Rule | Violation | Ligne |
---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 65–113 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 121–124 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 40–145 |
CommentRequired | Public method and constructor comments are required | 56–59 |
UncommentedEmptyConstructor | Document empty constructor | 56–59 |
CommentRequired | Public method and constructor comments are required | 61–66 |
Rule | Violation | Ligne |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 47–326 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Public method and constructor comments are required | 42–45 |
CommentRequired | Public method and constructor comments are required | 47–50 |
CommentRequired | Public method and constructor comments are required | 52–55 |
CommentRequired | Public method and constructor comments are required | 57–60 |
CommentRequired | Public method and constructor comments are required | 62–65 |
CommentRequired | Public method and constructor comments are required | 67–70 |
CommentRequired | Public method and constructor comments are required | 72–75 |
CommentRequired | Public method and constructor comments are required | 77–80 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_removedBlogsId' could be made final; it is only initialized in the declaration or constructor. | 76 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 81–84 |
OptimizableToArrayCall | This call to Collection.toArray() may be optimizable | 95 |
Rule | Violation | Ligne |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 52–395 |
ShortVariable | Avoid variables with short names like p | 82 |
ShortVariable | Avoid variables with short names like p | 103 |
ShortVariable | Avoid variables with short names like p | 131 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 212 |
ShortVariable | Avoid variables with short names like p | 262 |
CyclomaticComplexity | The method 'selectPortletByType(int, PortletOrder, PortletFilter)' has a cyclomatic complexity of 10. | 320–374 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 325 |
Rule | Violation | Ligne |
---|---|---|
AssignmentToNonFinalStatic | Possible unsafe assignment to a non-final static field in a constructor. | 56 |
RedundantFieldInitializer | Avoid using redundant field initializer for '_singleton' | 56 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 61–67 |
NonThreadSafeSingleton | Singleton is not thread safe | 76–79 |
Rule | Violation | Ligne |
---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 67–70 |
FieldDeclarationsShouldBeAtStartOfClass | Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. | 72 |
FieldDeclarationsShouldBeAtStartOfClass | Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. | 74 |
FieldDeclarationsShouldBeAtStartOfClass | Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. | 76 |
Rule | Violation | Ligne |
---|---|---|
ShortVariable | Avoid variables with short names like p | 71 |
ShortVariable | Avoid variables with short names like p | 109 |
ShortVariable | Avoid variables with short names like p | 160 |
CyclomaticComplexity | The method 'selectPortletByType(int, PortletOrder, PortletFilter)' has a cyclomatic complexity of 10. | 195–245 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 200 |
Rule | Violation | Ligne |
---|---|---|
AssignmentToNonFinalStatic | Possible unsafe assignment to a non-final static field in a constructor. | 53 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 58–64 |
NonThreadSafeSingleton | Singleton is not thread safe | 85–88 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 41–171 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 45–434 |
TooManyMethods | This class has too many methods, consider refactoring it. | 46–434 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 45–240 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'load(int)' is missing an @Override annotation. | 74 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 42–204 |
TooManyMethods | This class has too many methods, consider refactoring it. | 43–204 |
Rule | Violation | Ligne |
---|---|---|
ArrayIsStoredDirectly | The user-supplied array 'aPageTitle' is stored directly. | 68 |
MethodReturnsInternalArray | Returning '_aPageName' may expose an internal array. | 80 |
ArrayIsStoredDirectly | The user-supplied array 'aPortletTitle' is stored directly. | 89 |
MethodReturnsInternalArray | Returning '_aPortletName' may expose an internal array. | 101 |
CyclomaticComplexity | The method 'getSQLFilter()' has a cyclomatic complexity of 13. | 172–221 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–315 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 248 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 297 |
Rule | Violation | Ligne |
---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 59–70 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 47–116 |
ShortVariable | Avoid variables with short names like rt | 61 |
ShortVariable | Avoid variables with short names like p | 67 |
Rule | Violation | Ligne |
---|---|---|
GodClass | Possible God Class (WMC=57, ATFD=99, TCC=0.000%) | 60–532 |
TooManyMethods | This class has too many methods, consider refactoring it. | 61–532 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 119 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 169 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 224 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 241–252 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 284 |
CollapsibleIfStatements | These nested if statements could be combined | 303–307 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 345 |
CommentRequired | Public method and constructor comments are required | 506–513 |
CommentRequired | Public method and constructor comments are required | 515–522 |
CommentRequired | Public method and constructor comments are required | 524–531 |
Rule | Violation | Ligne |
---|---|---|
ShortVariable | Avoid variables with short names like se | 57 |
ShortVariable | Avoid variables with short names like se | 66 |
CommentRequired | Public method and constructor comments are required | 73–77 |
CommentRequired | Public method and constructor comments are required | 79–84 |
Rule | Violation | Ligne |
---|---|---|
OptimizableToArrayCall | This call to Collection.toArray() may be optimizable | 309 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 47–110 |
ShortVariable | Avoid variables with short names like rt | 60 |
ShortVariable | Avoid variables with short names like p | 66 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 41–68 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 40–57 |
Rule | Violation | Ligne |
---|---|---|
DataClass | The class 'BlogSearchItem' is suspected to be a Data Class (WOC=0.000%, NOPA=7, NOAM=0, WMC=1) | 43–86 |
CommentRequired | Public method and constructor comments are required | 45–48 |
FieldDeclarationsShouldBeAtStartOfClass | Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. | 53 |
FieldDeclarationsShouldBeAtStartOfClass | Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. | 58 |
FieldDeclarationsShouldBeAtStartOfClass | Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. | 63 |
FieldDeclarationsShouldBeAtStartOfClass | Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. | 69 |
FieldDeclarationsShouldBeAtStartOfClass | Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. | 74 |
FieldDeclarationsShouldBeAtStartOfClass | Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. | 79 |
FieldDeclarationsShouldBeAtStartOfClass | Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. | 84 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–486 |
ImmutableField | Private field '_indexer' could be made final; it is only initialized in the declaration or constructor. | 102 |
ImmutableField | Private field '_nWriterMergeFactor' could be made final; it is only initialized in the declaration or constructor. | 103 |
NonThreadSafeSingleton | Singleton is not thread safe | 144–147 |
InsufficientStringBufferDeclaration | StringBuffer constructor is initialized with size 16, but has at least 147 characters appended. | 196 |
ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 202 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 243 |
ShortVariable | Avoid variables with short names like si | 307 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 312 |
CyclomaticComplexity | The method 'prepareQueryForFilter(BlogSearchFilter)' has a cyclomatic complexity of 12. | 321–410 |
NPathComplexity | The method 'prepareQueryForFilter(BlogSearchFilter)' has an NPath complexity of 432 | 321–410 |
OptimizableToArrayCall | This call to Collection.toArray() may be optimizable | 408 |
OptimizableToArrayCall | This call to Collection.toArray() may be optimizable | 408 |
OptimizableToArrayCall | This call to Collection.toArray() may be optimizable | 409 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–407 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 123–194 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 128–191 |
ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 181 |
UseLocaleWithCaseConversions | When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 212 |
ShortVariable | Avoid variables with short names like ft | 217 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 275 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 276 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 277 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 278 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 279 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 280 |
Rule | Violation | Ligne |
---|---|---|
PositionLiteralsFirstInCaseInsensitiveComparisons | Position literals first in String comparisons for EqualsIgnoreCase | 101 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 38–75 |
CommentRequired | Public method and constructor comments are required | 44–49 |
CommentRequired | Public method and constructor comments are required | 51–55 |
CommentRequired | Public method and constructor comments are required | 57–61 |
CommentRequired | Public method and constructor comments are required | 63–67 |
CommentRequired | Public method and constructor comments are required | 69–73 |
Rule | Violation | Ligne |
---|---|---|
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 110 |
AssignmentInOperand | Avoid assignments in operands | 110 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 171–172 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 220 |
CommentRequired | Public method and constructor comments are required | 244–247 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 108 |
ShortVariable | Avoid variables with short names like t | 119 |
Rule | Violation | Ligne |
---|---|---|
ShortVariable | Avoid variables with short names like os | 104 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–1600 |
ExcessiveClassLength | Avoid really long classes. | 119–1600 |
TooManyMethods | This class has too many methods, consider refactoring it. | 120–1600 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 261 |
RedundantFieldInitializer | Avoid using redundant field initializer for '_bIsChecked' | 263 |
RedundantFieldInitializer | Avoid using redundant field initializer for '_bIsSorted' | 271 |
CyclomaticComplexity | The method 'getManageBlogs(HttpServletRequest)' has a cyclomatic complexity of 26. | 287–450 |
NPathComplexity | The method 'getManageBlogs(HttpServletRequest)' has an NPath complexity of 9480 | 287–450 |
NcssCount | The method 'getManageBlogs(HttpServletRequest)' has a NCSS line count of 97. | 287–450 |
ExcessiveMethodLength | Avoid really long methods. | 287–450 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 289 |
SimpleDateFormatNeedsLocale | When instantiating a SimpleDateFormat object, specify a Locale | 296 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 303–331 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 325 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 326 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 327 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 328 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 430 |
AddEmptyString | Do not add empty strings | 438 |
UnnecessaryAnnotationValueElement | Avoid the use of value in annotations when its the only element | 459 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 462 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 489 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 490 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 525 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 630 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 669 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 710 |
CyclomaticComplexity | The method 'doUpdatePriorityTag(HttpServletRequest)' has a cyclomatic complexity of 12. | 753–814 |
ShortVariable | Avoid variables with short names like tg | 755 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 755 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 756 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 757 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 758 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 760 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 761 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 788 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 796 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 829 |
CommentRequired | Public method and constructor comments are required | 897–921 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 942 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 951–962 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 1033 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 1090–1097 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 1130–1137 |
ShortVariable | Avoid variables with short names like tf | 1162 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 1183 |
ShortVariable | Avoid variables with short names like is | 1255 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 1303 |
CyclomaticComplexity | The method 'doUpdatePriorityContent(HttpServletRequest)' has a cyclomatic complexity of 12. | 1345–1406 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 1347 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 1348 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 1349 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 1350 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 1352 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 1353 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 1380 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 1388 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 1417 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 1418 |
LinguisticNaming | Linguistics Antipattern - The setter 'setContent' should not return any type except void linguistically | 1460–1486 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–480 |
UnnecessaryAnnotationValueElement | Avoid the use of value in annotations when its the only element | 146 |
NPathComplexity | The method 'getManageBlogPublication(HttpServletRequest)' has an NPath complexity of 360 | 147–215 |
CyclomaticComplexity | The method 'getManageBlogPublication(HttpServletRequest)' has a cyclomatic complexity of 12. | 147–215 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 154 |
SimpleDateFormatNeedsLocale | When instantiating a SimpleDateFormat object, specify a Locale | 236 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 285 |
SimpleDateFormatNeedsLocale | When instantiating a SimpleDateFormat object, specify a Locale | 292 |
LinguisticNaming | Linguistics Antipattern - The setter 'setFillFilter' should not return any type except void linguistically | 323–362 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 328–359 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 423 |
Rule | Violation | Ligne |
---|---|---|
MissingSerialVersionUID | Classes implementing Serializable should set a serialVersionUID | 52–141 |
RedundantFieldInitializer | Avoid using redundant field initializer for '_bIsSorted' | 79 |
AddEmptyString | Do not add empty strings | 135 |
Rule | Violation | Ligne |
---|---|---|
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 124 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 160 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 181 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 229 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 283 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 314 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 114 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 50–105 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 49–169 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 47–98 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–595 |
RedundantFieldInitializer | Avoid using redundant field initializer for '_bIsChecked' | 142 |
RedundantFieldInitializer | Avoid using redundant field initializer for '_nIsUnpublished' | 144 |
RedundantFieldInitializer | Avoid using redundant field initializer for '_bIsSorted' | 147 |
AddEmptyString | Do not add empty strings | 203 |
CyclomaticComplexity | The method 'filterBlogIds(HttpServletRequest)' has a cyclomatic complexity of 12. | 226–269 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 279–310 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 304 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 305 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 307 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 308 |
CommentRequired | Public method and constructor comments are required | 313–344 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 315 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 358 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 378–379 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 403 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 413 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 416 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 445 |
CyclomaticComplexity | The method 'doModify(HttpServletRequest)' has a cyclomatic complexity of 11. | 463–524 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 478 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 481 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 516 |
SimpleDateFormatNeedsLocale | When instantiating a SimpleDateFormat object, specify a Locale | 546 |
Rule | Violation | Ligne |
---|---|---|
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 145 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 149 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 168 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 189 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 211 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 214 |
Rule | Violation | Ligne |
---|---|---|
ShortClassName | Avoid short class names like Blog | 54–641 |
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 417–420 |
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 437–440 |
Rule | Violation | Ligne |
---|---|---|
UseVarargs | Consider using varargs for methods or constructors which take an array the last parameter. | 66 |
UseVarargs | Consider using varargs for methods or constructors which take an array the last parameter. | 103 |
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 113–116 |
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 185–188 |
Rule | Violation | Ligne |
---|---|---|
UseVarargs | Consider using varargs for methods or constructors which take an array the last parameter. | 110 |
Rule | Violation | Ligne |
---|---|---|
ShortClassName | Avoid short class names like Tag | 40–145 |
Rule | Violation | Ligne |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'java.util.GregorianCalendar' due to existing import 'java.util.GregorianCalendar' | 89 |
Rule | Violation | Ligne |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'java.util.GregorianCalendar' due to existing import 'java.util.GregorianCalendar' | 88 |
Rule | Violation | Ligne |
---|---|---|
UseVarargs | Consider using varargs for methods or constructors which take an array the last parameter. | 68 |
UseVarargs | Consider using varargs for methods or constructors which take an array the last parameter. | 89 |
Rule | Violation | Ligne |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'fr.paris.lutece.plugins.blog.business.IndexerAction' due to existing import 'fr.paris.lutece.plugins.blog.business.IndexerAction' | 132 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'org.apache.lucene.document.Document' due to existing import 'org.apache.lucene.document.Document' | 205 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'org.apache.lucene.document.Document' due to existing import 'org.apache.lucene.document.Document' | 208 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'org.apache.lucene.document.Document' due to existing import 'org.apache.lucene.document.Document' | 208 |
Rule | Violation | Ligne |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'java.sql.Timestamp' due to existing import 'java.sql.Timestamp' | 1592 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'java.sql.Timestamp' due to existing import 'java.sql.Timestamp' | 1595 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'java.sql.Timestamp' due to existing import 'java.sql.Timestamp' | 1595 |
Rule | Violation | Ligne |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'java.sql.Date' due to existing import 'java.sql.Date' | 289 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'java.sql.Date' due to existing import 'java.sql.Date' | 290 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'java.sql.Date' due to existing import 'java.sql.Date' | 298 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'java.sql.Date' due to existing import 'java.sql.Date' | 303 |
Rule | Violation | Ligne |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'java.util.Date' due to existing import 'java.util.Date' | 247 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'java.util.Date' due to existing import 'java.util.Date' | 247 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessivePublicCount | This class has a bunch of public methods and attributes | 3 | 34–641 |
TooManyFields | Too many fields | 3 | 54–641 |
ShortClassName | Avoid short class names like Blog | 4 | 54–641 |
CommentRequired | Public method and constructor comments are required | 3 | 289–292 |
CommentRequired | Public method and constructor comments are required | 3 | 294–297 |
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 4 | 417–420 |
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 4 | 437–440 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 51–851 |
NPathComplexity | The method 'getDaoFromFilter(String, BlogFilter)' has an NPath complexity of 266112 | 3 | 606–734 |
CyclomaticComplexity | The method 'getDaoFromFilter(String, BlogFilter)' has a cyclomatic complexity of 28. | 3 | 606–734 |
ExcessiveMethodLength | Avoid really long methods. | 3 | 606–734 |
NcssCount | The method 'getDaoFromFilter(String, BlogFilter)' has a NCSS line count of 61. | 3 | 606–734 |
ShortVariable | Avoid variables with short names like i | 3 | 615 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 637 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 655 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 660 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 665 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 671 |
ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 3 | 671 |
ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 3 | 672 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 678 |
ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 3 | 678 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 684 |
ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 3 | 684 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 3 | 692 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 3 | 698 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 3 | 702 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 2 | 705 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 2 | 717 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 2 | 728 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MethodReturnsInternalArray | Returning '_arrayTagsId' may expose an internal array. | 3 | 59 |
UseVarargs | Consider using varargs for methods or constructors which take an array the last parameter. | 4 | 66 |
ArrayIsStoredDirectly | The user-supplied array 'arrayTagsId' is stored directly. | 3 | 66 |
MethodReturnsInternalArray | Returning '_arrayId' may expose an internal array. | 3 | 96 |
ArrayIsStoredDirectly | The user-supplied array 'arrayId' is stored directly. | 3 | 103 |
UseVarargs | Consider using varargs for methods or constructors which take an array the last parameter. | 4 | 103 |
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 4 | 113–116 |
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 4 | 185–188 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 47–316 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 63–75 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the newPrimaryKey method if you want a default access modifier | 3 | 63–75 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 84–97 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MethodReturnsInternalArray | Returning '_strTag' may expose an internal array. | 3 | 101 |
UseVarargs | Consider using varargs for methods or constructors which take an array the last parameter. | 4 | 110 |
ArrayIsStoredDirectly | The user-supplied array 'strTag' is stored directly. | 3 | 110 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
DataClass | The class 'BlogSerializable' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=4, WMC=6) | 3 | 6–56 |
CommentRequired | Header comments are required | 3 | 6–56 |
MissingSerialVersionUID | Classes implementing Serializable should set a serialVersionUID | 3 | 6–56 |
ShortVariable | Avoid variables with short names like id | 3 | 8 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the id field if you want a default access modifier | 3 | 8 |
FieldNamingConventions | The field name 'id' doesn't match '_[a-z][a-zA-Z0-9]*' | 1 | 8 |
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 8 |
FieldNamingConventions | The field name 'contentLabel' doesn't match '_[a-z][a-zA-Z0-9]*' | 1 | 9 |
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 9 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the contentLabel field if you want a default access modifier | 3 | 9 |
UncommentedEmptyConstructor | Document empty constructor | 3 | 11–13 |
CommentRequired | Public method and constructor comments are required | 3 | 11–13 |
ShortVariable | Avoid variables with short names like id | 3 | 15 |
CommentRequired | Public method and constructor comments are required | 3 | 15–19 |
ShortVariable | Avoid variables with short names like id | 3 | 34 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 36–84 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ArrayIsStoredDirectly | The user-supplied array 'bytes' is stored directly. | 3 | 106 |
MethodReturnsInternalArray | Returning '_bytes' may expose an internal array. | 3 | 118 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 46–293 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 45–234 |
CommentRequired | Public method and constructor comments are required | 3 | 232 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 40–145 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 41–172 |
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 42–172 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 80–92 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 65–113 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 121–124 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ShortClassName | Avoid short class names like Tag | 4 | 40–145 |
CommentRequired | Header comments are required | 3 | 40–145 |
CommentRequired | Public method and constructor comments are required | 3 | 56–59 |
UncommentedEmptyConstructor | Document empty constructor | 3 | 56–59 |
CommentRequired | Public method and constructor comments are required | 3 | 61–66 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 47–326 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Public method and constructor comments are required | 3 | 42–45 |
CommentRequired | Public method and constructor comments are required | 3 | 47–50 |
CommentRequired | Public method and constructor comments are required | 3 | 52–55 |
CommentRequired | Public method and constructor comments are required | 3 | 57–60 |
CommentRequired | Public method and constructor comments are required | 3 | 62–65 |
CommentRequired | Public method and constructor comments are required | 3 | 67–70 |
CommentRequired | Public method and constructor comments are required | 3 | 72–75 |
CommentRequired | Public method and constructor comments are required | 3 | 77–80 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_removedBlogsId' could be made final; it is only initialized in the declaration or constructor. | 3 | 76 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 81–84 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'java.util.GregorianCalendar' due to existing import 'java.util.GregorianCalendar' | 4 | 89 |
OptimizableToArrayCall | This call to Collection.toArray() may be optimizable | 3 | 95 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 52–395 |
ShortVariable | Avoid variables with short names like p | 3 | 82 |
ShortVariable | Avoid variables with short names like p | 3 | 103 |
ShortVariable | Avoid variables with short names like p | 3 | 131 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 212 |
ShortVariable | Avoid variables with short names like p | 3 | 262 |
CyclomaticComplexity | The method 'selectPortletByType(int, PortletOrder, PortletFilter)' has a cyclomatic complexity of 10. | 3 | 320–374 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 325 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AssignmentToNonFinalStatic | Possible unsafe assignment to a non-final static field in a constructor. | 3 | 56 |
RedundantFieldInitializer | Avoid using redundant field initializer for '_singleton' | 3 | 56 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 61–67 |
NonThreadSafeSingleton | Singleton is not thread safe | 3 | 76–79 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 67–70 |
FieldDeclarationsShouldBeAtStartOfClass | Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. | 3 | 72 |
FieldDeclarationsShouldBeAtStartOfClass | Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. | 3 | 74 |
FieldDeclarationsShouldBeAtStartOfClass | Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. | 3 | 76 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'java.util.GregorianCalendar' due to existing import 'java.util.GregorianCalendar' | 4 | 88 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ShortVariable | Avoid variables with short names like p | 3 | 71 |
ShortVariable | Avoid variables with short names like p | 3 | 109 |
ShortVariable | Avoid variables with short names like p | 3 | 160 |
CyclomaticComplexity | The method 'selectPortletByType(int, PortletOrder, PortletFilter)' has a cyclomatic complexity of 10. | 3 | 195–245 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 200 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AssignmentToNonFinalStatic | Possible unsafe assignment to a non-final static field in a constructor. | 3 | 53 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 58–64 |
NonThreadSafeSingleton | Singleton is not thread safe | 3 | 85–88 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 41–171 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 45–434 |
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 46–434 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 1 | 45–240 |
CommentRequired | Header comments are required | 3 | 45–240 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'load(int)' is missing an @Override annotation. | 3 | 74 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 42–204 |
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 43–204 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseVarargs | Consider using varargs for methods or constructors which take an array the last parameter. | 4 | 68 |
ArrayIsStoredDirectly | The user-supplied array 'aPageTitle' is stored directly. | 3 | 68 |
MethodReturnsInternalArray | Returning '_aPageName' may expose an internal array. | 3 | 80 |
ArrayIsStoredDirectly | The user-supplied array 'aPortletTitle' is stored directly. | 3 | 89 |
UseVarargs | Consider using varargs for methods or constructors which take an array the last parameter. | 4 | 89 |
MethodReturnsInternalArray | Returning '_aPortletName' may expose an internal array. | 3 | 101 |
CyclomaticComplexity | The method 'getSQLFilter()' has a cyclomatic complexity of 13. | 3 | 172–221 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–315 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 248 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 297 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 59–70 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 47–116 |
ShortVariable | Avoid variables with short names like rt | 3 | 61 |
ShortVariable | Avoid variables with short names like p | 3 | 67 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
GodClass | Possible God Class (WMC=57, ATFD=99, TCC=0.000%) | 3 | 60–532 |
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 61–532 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 119 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 169 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 224 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 241–252 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 284 |
CollapsibleIfStatements | These nested if statements could be combined | 3 | 303–307 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 345 |
CommentRequired | Public method and constructor comments are required | 3 | 506–513 |
CommentRequired | Public method and constructor comments are required | 3 | 515–522 |
CommentRequired | Public method and constructor comments are required | 3 | 524–531 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ShortVariable | Avoid variables with short names like se | 3 | 57 |
ShortVariable | Avoid variables with short names like se | 3 | 66 |
CommentRequired | Public method and constructor comments are required | 3 | 73–77 |
CommentRequired | Public method and constructor comments are required | 3 | 79–84 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
OptimizableToArrayCall | This call to Collection.toArray() may be optimizable | 3 | 309 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 47–110 |
ShortVariable | Avoid variables with short names like rt | 3 | 60 |
ShortVariable | Avoid variables with short names like p | 3 | 66 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 41–68 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 40–57 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
DataClass | The class 'BlogSearchItem' is suspected to be a Data Class (WOC=0.000%, NOPA=7, NOAM=0, WMC=1) | 3 | 43–86 |
CommentRequired | Public method and constructor comments are required | 3 | 45–48 |
FieldDeclarationsShouldBeAtStartOfClass | Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. | 3 | 53 |
FieldDeclarationsShouldBeAtStartOfClass | Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. | 3 | 58 |
FieldDeclarationsShouldBeAtStartOfClass | Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. | 3 | 63 |
FieldDeclarationsShouldBeAtStartOfClass | Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. | 3 | 69 |
FieldDeclarationsShouldBeAtStartOfClass | Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. | 3 | 74 |
FieldDeclarationsShouldBeAtStartOfClass | Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. | 3 | 79 |
FieldDeclarationsShouldBeAtStartOfClass | Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. | 3 | 84 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–486 |
AvoidUsingVolatile | Use of modifier volatile is not recommended. | 2 | 92 |
ImmutableField | Private field '_indexer' could be made final; it is only initialized in the declaration or constructor. | 3 | 102 |
ImmutableField | Private field '_nWriterMergeFactor' could be made final; it is only initialized in the declaration or constructor. | 3 | 103 |
NonThreadSafeSingleton | Singleton is not thread safe | 3 | 144–147 |
InsufficientStringBufferDeclaration | StringBuffer constructor is initialized with size 16, but has at least 147 characters appended. | 3 | 196 |
ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 3 | 202 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 243 |
ShortVariable | Avoid variables with short names like si | 3 | 307 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 312 |
CyclomaticComplexity | The method 'prepareQueryForFilter(BlogSearchFilter)' has a cyclomatic complexity of 12. | 3 | 321–410 |
NPathComplexity | The method 'prepareQueryForFilter(BlogSearchFilter)' has an NPath complexity of 432 | 3 | 321–410 |
OptimizableToArrayCall | This call to Collection.toArray() may be optimizable | 3 | 408 |
OptimizableToArrayCall | This call to Collection.toArray() may be optimizable | 3 | 408 |
OptimizableToArrayCall | This call to Collection.toArray() may be optimizable | 3 | 409 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–407 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 123–194 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 128–191 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'fr.paris.lutece.plugins.blog.business.IndexerAction' due to existing import 'fr.paris.lutece.plugins.blog.business.IndexerAction' | 4 | 132 |
ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 3 | 181 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'org.apache.lucene.document.Document' due to existing import 'org.apache.lucene.document.Document' | 4 | 205 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'org.apache.lucene.document.Document' due to existing import 'org.apache.lucene.document.Document' | 4 | 208 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'org.apache.lucene.document.Document' due to existing import 'org.apache.lucene.document.Document' | 4 | 208 |
UseLocaleWithCaseConversions | When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 3 | 212 |
ShortVariable | Avoid variables with short names like ft | 3 | 217 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 275 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 276 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 277 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 278 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 279 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 280 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
PositionLiteralsFirstInCaseInsensitiveComparisons | Position literals first in String comparisons for EqualsIgnoreCase | 3 | 101 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 38–75 |
CommentRequired | Public method and constructor comments are required | 3 | 44–49 |
CommentRequired | Public method and constructor comments are required | 3 | 51–55 |
CommentRequired | Public method and constructor comments are required | 3 | 57–61 |
CommentRequired | Public method and constructor comments are required | 3 | 63–67 |
CommentRequired | Public method and constructor comments are required | 3 | 69–73 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 3 | 110 |
AssignmentInOperand | Avoid assignments in operands | 3 | 110 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 171–172 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 220 |
CommentRequired | Public method and constructor comments are required | 3 | 244–247 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 108 |
ShortVariable | Avoid variables with short names like t | 3 | 119 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ShortVariable | Avoid variables with short names like os | 3 | 104 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–1600 |
ExcessiveClassLength | Avoid really long classes. | 3 | 119–1600 |
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 120–1600 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 261 |
RedundantFieldInitializer | Avoid using redundant field initializer for '_bIsChecked' | 3 | 263 |
RedundantFieldInitializer | Avoid using redundant field initializer for '_bIsSorted' | 3 | 271 |
FieldNamingConventions | The final field name '_blogServiceSession' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 277 |
CyclomaticComplexity | The method 'getManageBlogs(HttpServletRequest)' has a cyclomatic complexity of 26. | 3 | 287–450 |
NPathComplexity | The method 'getManageBlogs(HttpServletRequest)' has an NPath complexity of 9480 | 3 | 287–450 |
NcssCount | The method 'getManageBlogs(HttpServletRequest)' has a NCSS line count of 97. | 3 | 287–450 |
ExcessiveMethodLength | Avoid really long methods. | 3 | 287–450 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 289 |
SimpleDateFormatNeedsLocale | When instantiating a SimpleDateFormat object, specify a Locale | 3 | 296 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 303–331 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 325 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 326 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 327 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 328 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 430 |
AddEmptyString | Do not add empty strings | 3 | 438 |
UnnecessaryAnnotationValueElement | Avoid the use of value in annotations when its the only element | 3 | 459 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 462 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 489 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 490 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 3 | 525 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 630 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 669 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 710 |
CyclomaticComplexity | The method 'doUpdatePriorityTag(HttpServletRequest)' has a cyclomatic complexity of 12. | 3 | 753–814 |
ShortVariable | Avoid variables with short names like tg | 3 | 755 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 755 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 756 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 757 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 758 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 760 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 761 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 788 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 796 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 829 |
CommentRequired | Public method and constructor comments are required | 3 | 897–921 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 942 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 951–962 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 1033 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 1090–1097 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 1130–1137 |
ShortVariable | Avoid variables with short names like tf | 3 | 1162 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 1183 |
ShortVariable | Avoid variables with short names like is | 3 | 1255 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 1303 |
CyclomaticComplexity | The method 'doUpdatePriorityContent(HttpServletRequest)' has a cyclomatic complexity of 12. | 3 | 1345–1406 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 1347 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 1348 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 1349 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 1350 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 1352 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 1353 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 1380 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 1388 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 1417 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 1418 |
LinguisticNaming | Linguistics Antipattern - The setter 'setContent' should not return any type except void linguistically | 3 | 1460–1486 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'java.sql.Timestamp' due to existing import 'java.sql.Timestamp' | 4 | 1592 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'java.sql.Timestamp' due to existing import 'java.sql.Timestamp' | 4 | 1595 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'java.sql.Timestamp' due to existing import 'java.sql.Timestamp' | 4 | 1595 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–480 |
UnnecessaryAnnotationValueElement | Avoid the use of value in annotations when its the only element | 3 | 146 |
NPathComplexity | The method 'getManageBlogPublication(HttpServletRequest)' has an NPath complexity of 360 | 3 | 147–215 |
CyclomaticComplexity | The method 'getManageBlogPublication(HttpServletRequest)' has a cyclomatic complexity of 12. | 3 | 147–215 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 154 |
SimpleDateFormatNeedsLocale | When instantiating a SimpleDateFormat object, specify a Locale | 3 | 236 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 285 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'java.sql.Date' due to existing import 'java.sql.Date' | 4 | 289 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'java.sql.Date' due to existing import 'java.sql.Date' | 4 | 290 |
SimpleDateFormatNeedsLocale | When instantiating a SimpleDateFormat object, specify a Locale | 3 | 292 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'java.sql.Date' due to existing import 'java.sql.Date' | 4 | 298 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'java.sql.Date' due to existing import 'java.sql.Date' | 4 | 303 |
LinguisticNaming | Linguistics Antipattern - The setter 'setFillFilter' should not return any type except void linguistically | 3 | 323–362 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 328–359 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 423 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingSerialVersionUID | Classes implementing Serializable should set a serialVersionUID | 3 | 52–141 |
RedundantFieldInitializer | Avoid using redundant field initializer for '_bIsSorted' | 3 | 79 |
AddEmptyString | Do not add empty strings | 3 | 135 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 124 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 160 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 181 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 229 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 283 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 314 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 114 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 50–105 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 49–169 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 47–98 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–595 |
RedundantFieldInitializer | Avoid using redundant field initializer for '_bIsChecked' | 3 | 142 |
RedundantFieldInitializer | Avoid using redundant field initializer for '_nIsUnpublished' | 3 | 144 |
RedundantFieldInitializer | Avoid using redundant field initializer for '_bIsSorted' | 3 | 147 |
AddEmptyString | Do not add empty strings | 3 | 203 |
CyclomaticComplexity | The method 'filterBlogIds(HttpServletRequest)' has a cyclomatic complexity of 12. | 3 | 226–269 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 279–310 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 304 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 305 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 307 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 308 |
CommentRequired | Public method and constructor comments are required | 3 | 313–344 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 315 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 358 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 378–379 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 403 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 413 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 416 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 3 | 445 |
CyclomaticComplexity | The method 'doModify(HttpServletRequest)' has a cyclomatic complexity of 11. | 3 | 463–524 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 478 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 481 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 3 | 516 |
SimpleDateFormatNeedsLocale | When instantiating a SimpleDateFormat object, specify a Locale | 3 | 546 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 145 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 149 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 168 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 3 | 189 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 211 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 214 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'java.util.Date' due to existing import 'java.util.Date' | 4 | 247 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'java.util.Date' due to existing import 'java.util.Date' | 4 | 247 |