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 | 41–134 |
FieldNamingConventions | The final field name '_strSortColumn' doesn't match '[a-z][a-zA-Z0-9]*' | 77 |
FieldNamingConventions | The final field name '_bSortAsc' doesn't match '[a-z][a-zA-Z0-9]*' | 78 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The final field name '_dayFormat' doesn't match '[a-z][a-zA-Z0-9]*' | 76 |
Rule | Violation | Ligne |
---|---|---|
ConstructorCallsOverridableMethod | Overridable method 'setCategoryId' called during object construction | 79 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The constant name '_captchaSecurityService' doesn't match '[A-Z][A-Z_0-9]*' | 251 |
FieldNamingConventions | The final field name '_dateFormat' doesn't match '[a-z][a-zA-Z0-9]*' | 262 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The constant name '_captchaSecurityService' doesn't match '[A-Z][A-Z_0-9]*' | 155 |
Rule | Violation | Ligne |
---|---|---|
AvoidUsingVolatile | Use of modifier volatile is not recommended. | 90 |
Rule | Violation | Ligne |
---|---|---|
AvoidUsingVolatile | Use of modifier volatile is not recommended. | 50 |
Rule | Violation | Ligne |
---|---|---|
AvoidUsingVolatile | Use of modifier volatile is not recommended. | 97 |
AvoidUsingVolatile | Use of modifier volatile is not recommended. | 99 |
AvoidUsingVolatile | Use of modifier volatile is not recommended. | 104 |
Rule | Violation | Ligne |
---|---|---|
ExcessivePublicCount | This class has a bunch of public methods and attributes | 34–625 |
TooManyFields | Too many fields | 53–625 |
UnusedPrivateField | Avoid unused private fields such as '_datePublication'. | 77 |
SingularField | Perhaps '_datePublication' could be replaced by a local variable. | 77 |
CloneThrowsCloneNotSupportedException | clone() method should throw CloneNotSupportedException | 577–589 |
CloneMethodReturnTypeMustMatchClassName | The return type of the clone() method must be the class name when implements Cloneable | 577–589 |
Rule | Violation | Ligne |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 50–605 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 127–154 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 288–295 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 300 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 51 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 56–59 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 67–83 |
Rule | Violation | Ligne |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 58–492 |
CommentRequired | Public method and constructor comments are required | 313–318 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 36–61 |
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 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 42–111 |
CommentRequired | Public method and constructor comments are required | 97–110 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 43–67 |
CommentRequired | Public method and constructor comments are required | 53–56 |
CommentRequired | Public method and constructor comments are required | 58–61 |
CommentRequired | Public method and constructor comments are required | 63–66 |
Rule | Violation | Ligne |
---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 108–124 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 118 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 119 |
Rule | Violation | Ligne |
---|---|---|
CloneThrowsCloneNotSupportedException | clone() method should throw CloneNotSupportedException | 341–353 |
CloneMethodReturnTypeMustMatchClassName | The return type of the clone() method must be the class name when implements Cloneable | 341–353 |
Rule | Violation | Ligne |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 47–330 |
Rule | Violation | Ligne |
---|---|---|
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 114 |
AvoidReassigningLoopVariables | Avoid reassigning the loop control variable 'entry' | 235 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 242 |
Rule | Violation | Ligne |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 46–278 |
CommentRequired | Public method and constructor comments are required | 173 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 40–48 |
CommentRequired | Public method and constructor comments are required | 43 |
CommentRequired | Public method and constructor comments are required | 45 |
CommentRequired | Public method and constructor comments are required | 47 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Public method and constructor comments are required | 141 |
Rule | Violation | Ligne |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 47–163 |
Rule | Violation | Ligne |
---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 80–93 |
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 |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 50–345 |
Rule | Violation | Ligne |
---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 66–69 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 106 |
Rule | Violation | Ligne |
---|---|---|
NonThreadSafeSingleton | Singleton is not thread safe | 71–74 |
Rule | Violation | Ligne |
---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 56–59 |
Rule | Violation | Ligne |
---|---|---|
NonThreadSafeSingleton | Singleton is not thread safe | 71–74 |
Rule | Violation | Ligne |
---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 54–57 |
Rule | Violation | Ligne |
---|---|---|
DataClass | The class 'AnnounceResourceIdService' is suspected to be a Data Class (WOC=0.000%, NOPA=4, NOAM=0, WMC=1) | 50–144 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 74–77 |
ShortVariable | Avoid variables with short names like rt | 85 |
ShortVariable | Avoid variables with short names like p | 91 |
Rule | Violation | Ligne |
---|---|---|
CyclomaticComplexity | The method 'isImageAuthorized(int, HttpServletRequest)' has a cyclomatic complexity of 10. | 83–122 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 150–163 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–519 |
GodClass | Possible God Class (WMC=55, ATFD=78, TCC=3.571%) | 87–519 |
CyclomaticComplexity | The method 'getHtmlAnnounceForm(Announce, Category, Locale, boolean, HttpServletRequest)' has a cyclomatic complexity of 12. | 136–205 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 138 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 161–168 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 177–181 |
ExcessiveMethodLength | Avoid really long methods. | 223–327 |
CyclomaticComplexity | The method 'getHtmlEntry(AnnounceDTO, int, StringBuffer, Locale, boolean, HttpServletRequest)' has a cyclomatic complexity of 21. | 223–327 |
LinguisticNaming | Linguistics Antipattern - The getter 'getHtmlEntry' should not return void linguistically | 223–327 |
NPathComplexity | The method 'getHtmlEntry(AnnounceDTO, int, StringBuffer, Locale, boolean, HttpServletRequest)' has an NPath complexity of 2000 | 223–327 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 225 |
EmptyCatchBlock | Avoid empty catch blocks | 288–291 |
CyclomaticComplexity | The method 'getResponseEntry(HttpServletRequest, int, List, boolean, Locale, AnnounceDTO)' has a cyclomatic complexity of 11. | 370–442 |
AvoidReassigningLoopVariables | Avoid reassigning the loop control variable 'field' | 380 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 401–415 |
Rule | Violation | Ligne |
---|---|---|
ShortVariable | Avoid variables with short names like se | 51 |
ShortVariable | Avoid variables with short names like se | 60 |
Rule | Violation | Ligne |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 62–511 |
NonThreadSafeSingleton | Singleton is not thread safe | 108–111 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 124 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 137 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 151 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 175 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 198 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 212 |
CommentRequired | Public method and constructor comments are required | 507–510 |
Rule | Violation | Ligne |
---|---|---|
DataClass | The class 'CategoryResourceIdService' is suspected to be a Data Class (WOC=0.000%, NOPA=4, NOAM=0, WMC=1) | 52–144 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 74–77 |
ShortVariable | Avoid variables with short names like rt | 85 |
ShortVariable | Avoid variables with short names like p | 91 |
Rule | Violation | Ligne |
---|---|---|
CyclomaticComplexity | The method 'moveDownEntryOrder(int, Entry)' has a cyclomatic complexity of 16. | 77–172 |
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 104–137 |
CyclomaticComplexity | The method 'moveUpEntryOrder(int, Entry)' has a cyclomatic complexity of 13. | 182–256 |
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 207–237 |
Rule | Violation | Ligne |
---|---|---|
NonThreadSafeSingleton | Singleton is not thread safe | 68–71 |
Rule | Violation | Ligne |
---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 72–75 |
ShortVariable | Avoid variables with short names like rt | 83 |
ShortVariable | Avoid variables with short names like p | 89 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–402 |
NcssCount | The method 'getSearchResults(AnnounceSearchFilter, Plugin, List, int, int)' has a NCSS line count of 70. | 82–210 |
ExcessiveMethodLength | Avoid really long methods. | 82–210 |
CyclomaticComplexity | The method 'getSearchResults(AnnounceSearchFilter, Plugin, List, int, int)' has a cyclomatic complexity of 17. | 82–210 |
NPathComplexity | The method 'getSearchResults(AnnounceSearchFilter, Plugin, List, int, int)' has an NPath complexity of 3457 | 82–210 |
OptimizableToArrayCall | This call to Collection.toArray() may be optimizable | 173 |
OptimizableToArrayCall | This call to Collection.toArray() may be optimizable | 173 |
OptimizableToArrayCall | This call to Collection.toArray() may be optimizable | 174 |
UseUnderscoresInNumericLiterals | Number 1000000 should separate every third digit with an underscore | 176 |
ShortVariable | Avoid variables with short names like si | 199 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 203 |
CyclomaticComplexity | The method 'getSearchResultsBis(AnnounceSearchFilter, Plugin, List, int, int, AnnounceSort)' has a cyclomatic complexity of 20. | 216–369 |
NcssCount | The method 'getSearchResultsBis(AnnounceSearchFilter, Plugin, List, int, int, AnnounceSort)' has a NCSS line count of 81. | 216–369 |
ExcessiveMethodLength | Avoid really long methods. | 216–369 |
NPathComplexity | The method 'getSearchResultsBis(AnnounceSearchFilter, Plugin, List, int, int, AnnounceSort)' has an NPath complexity of 20737 | 216–369 |
OptimizableToArrayCall | This call to Collection.toArray() may be optimizable | 316 |
OptimizableToArrayCall | This call to Collection.toArray() may be optimizable | 316 |
OptimizableToArrayCall | This call to Collection.toArray() may be optimizable | 317 |
UseUnderscoresInNumericLiterals | Number 1000000 should separate every third digit with an underscore | 319 |
ShortVariable | Avoid variables with short names like si | 328 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 363 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–464 |
UseUnderscoresInNumericLiterals | Number 1000000 should separate every third digit with an underscore | 94 |
ImmutableField | Private field '_indexer' could be made final; it is only initialized in the declaration or constructor. | 101 |
ImmutableField | Private field '_nWriterMergeFactor' could be made final; it is only initialized in the declaration or constructor. | 102 |
ImmutableField | Private field '_nWriterMaxSectorLength' could be made final; it is only initialized in the declaration or constructor. | 103 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 135 |
NonThreadSafeSingleton | Singleton is not thread safe | 148–151 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 187 |
CommentRequired | Public method and constructor comments are required | 197–216 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 208 |
ShortVariable | Avoid variables with short names like ir | 229 |
InsufficientStringBufferDeclaration | StringBuffer constructor is initialized with size 16, but has at least 147 characters appended. | 249 |
ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 255 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 280 |
NonThreadSafeSingleton | Singleton is not thread safe | 425–428 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 433–454 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 456–463 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 461 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–440 |
ShortVariable | Avoid variables with short names like it | 117 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 139–213 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 145–210 |
ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 200 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 292 |
PreserveStackTrace | New exception is thrown in catch block, original stack trace may be lost | 311 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 343 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 344 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 345 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 346 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Public method and constructor comments are required | 66 |
Rule | Violation | Ligne |
---|---|---|
LinguisticNaming | Linguistics Antipattern - The variable 'hasN' indicates linguistically it is a boolean, but it is 'int' | 82 |
Rule | Violation | Ligne |
---|---|---|
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 80 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 125 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 147 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 150 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 159 |
Rule | Violation | Ligne |
---|---|---|
CyclomaticComplexity | The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has a cyclomatic complexity of 19. | 114–212 |
NPathComplexity | The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has an NPath complexity of 1569 | 114–212 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 137–143 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 147 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 153–165 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 173–176 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 183–193 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 189 |
Rule | Violation | Ligne |
---|---|---|
PositionLiteralsFirstInCaseInsensitiveComparisons | Position literals first in String comparisons for EqualsIgnoreCase | 115 |
Rule | Violation | Ligne |
---|---|---|
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 100 |
AssignmentInOperand | Avoid assignments in operands | 100 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–1729 |
GodClass | Possible God Class (WMC=115, ATFD=248, TCC=23.441%) | 115–1729 |
ExcessiveClassLength | Avoid really long classes. | 115–1729 |
CyclomaticComplexity | The class 'AnnounceApp' has a total cyclomatic complexity of 115 (highest 23). | 115–1729 |
ImmutableField | Private field '_announceService' could be made final; it is only initialized in the declaration or constructor. | 254 |
NPathComplexity | The method 'getSearchAnnounces(HttpServletRequest)' has an NPath complexity of 3072 | 287–372 |
CyclomaticComplexity | The method 'getSearchAnnounces(HttpServletRequest)' has a cyclomatic complexity of 13. | 287–372 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 335 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 347 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 347 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 348 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 348 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 389 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 434 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 444–468 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 516 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 520–534 |
MissingBreakInSwitch | A switch statement does not contain a break | 541–556 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 589 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 629 |
NPathComplexity | The method 'getViewAnnounce(HttpServletRequest)' has an NPath complexity of 1305 | 673–762 |
CyclomaticComplexity | The method 'getViewAnnounce(HttpServletRequest)' has a cyclomatic complexity of 20. | 673–762 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 683 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 715 |
NPathComplexity | The method 'getViewUserAnnounces(HttpServletRequest)' has an NPath complexity of 432 | 774–838 |
CyclomaticComplexity | The method 'getViewUserAnnounces(HttpServletRequest)' has a cyclomatic complexity of 11. | 774–838 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 795 |
AddEmptyString | Do not add empty strings | 796 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 828 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 828 |
CommentRequired | Public method and constructor comments are required | 874–895 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 998 |
NPathComplexity | The method 'doCreateAnnounce(HttpServletRequest, Sector, Category, Announce, LuteceUser)' has an NPath complexity of 28672 | 1031–1146 |
CyclomaticComplexity | The method 'doCreateAnnounce(HttpServletRequest, Sector, Category, Announce, LuteceUser)' has a cyclomatic complexity of 22. | 1031–1146 |
ExcessiveMethodLength | Avoid really long methods. | 1031–1146 |
NcssCount | The method 'doCreateAnnounce(HttpServletRequest, Sector, Category, Announce, LuteceUser)' has a NCSS line count of 67. | 1031–1146 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 1037 |
MissingBreakInSwitch | A switch statement does not contain a break | 1049–1064 |
ExcessiveMethodLength | Avoid really long methods. | 1159–1278 |
CyclomaticComplexity | The method 'doModifyAnnounce(HttpServletRequest, Announce)' has a cyclomatic complexity of 22. | 1159–1278 |
NcssCount | The method 'doModifyAnnounce(HttpServletRequest, Announce)' has a NCSS line count of 68. | 1159–1278 |
NPathComplexity | The method 'doModifyAnnounce(HttpServletRequest, Announce)' has an NPath complexity of 28672 | 1159–1278 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 1166 |
MissingBreakInSwitch | A switch statement does not contain a break | 1188–1203 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 1353 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 1390 |
NPathComplexity | The method 'getAnnounceFilterFromRequest(HttpServletRequest)' has an NPath complexity of 157476 | 1451–1578 |
ExcessiveMethodLength | Avoid really long methods. | 1451–1578 |
CyclomaticComplexity | The method 'getAnnounceFilterFromRequest(HttpServletRequest)' has a cyclomatic complexity of 23. | 1451–1578 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 1615 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 1619 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 1623 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 1627 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 1631 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–469 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 211 |
CyclomaticComplexity | The method 'getPreviewAnnounce(HttpServletRequest)' has a cyclomatic complexity of 13. | 240–300 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 254 |
AvoidDuplicateLiterals | The String literal "User '" appears 5 times in this file; the first occurrence is on line 319 | 319 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_nDefaultItemsPerPage' could be made final; it is only initialized in the declaration or constructor. | 92 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 135–151 |
AddEmptyString | Do not add empty strings | 169 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 107 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 146–155 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–786 |
TooManyMethods | This class has too many methods, consider refactoring it. | 77–786 |
ImmutableField | Private field '_entryService' could be made final; it is only initialized in the declaration or constructor. | 130 |
UnnecessaryAnnotationValueElement | Avoid the use of value in annotations when its the only element | 139 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 180 |
CyclomaticComplexity | The method 'doCreateEntry(HttpServletRequest)' has a cyclomatic complexity of 13. | 205–272 |
NPathComplexity | The method 'doCreateEntry(HttpServletRequest)' has an NPath complexity of 234 | 205–272 |
AvoidReassigningLoopVariables | Avoid reassigning the loop control variable 'field' | 302 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 310 |
CyclomaticComplexity | The method 'doModifyEntry(HttpServletRequest)' has a cyclomatic complexity of 11. | 344–411 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 363–366 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 377–386 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 377–386 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 398–405 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 451 |
CyclomaticComplexity | The method 'doChangeOrderEntry(HttpServletRequest)' has a cyclomatic complexity of 11. | 626–682 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 133 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 456 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 457 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 458 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–629 |
ImmutableField | Private field '_announceService' could be made final; it is only initialized in the declaration or constructor. | 158 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 197 |
AddEmptyString | Do not add empty strings | 199 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 278 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 279 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 280 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 281 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 281 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 282 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 283 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 369 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 405 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 406 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 407 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 408 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 408 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 409 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 410 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 532 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 157 |
AddEmptyString | Do not add empty strings | 159 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 285 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 286 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 81 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 99 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 117 |
Rule | Violation | Ligne |
---|---|---|
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 91 |
Rule | Violation | Ligne |
---|---|---|
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 132–135 |
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 153–156 |
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 300–303 |
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 447–450 |
Rule | Violation | Ligne |
---|---|---|
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 109–112 |
Rule | Violation | Ligne |
---|---|---|
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 199–202 |
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 220–223 |
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 321–324 |
Rule | Violation | Ligne |
---|---|---|
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 171–174 |
Rule | Violation | Ligne |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'org.apache.lucene.document.Document' due to existing import 'org.apache.lucene.document.Document' | 226 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'org.apache.lucene.document.Document' due to existing import 'org.apache.lucene.document.Document' | 238 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'org.apache.lucene.document.Document' due to existing import 'org.apache.lucene.document.Document' | 263 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'org.apache.lucene.document.Document' due to existing import 'org.apache.lucene.document.Document' | 266 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'org.apache.lucene.document.Document' due to existing import 'org.apache.lucene.document.Document' | 266 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessivePublicCount | This class has a bunch of public methods and attributes | 3 | 34–625 |
TooManyFields | Too many fields | 3 | 53–625 |
UnusedPrivateField | Avoid unused private fields such as '_datePublication'. | 3 | 77 |
SingularField | Perhaps '_datePublication' could be replaced by a local variable. | 3 | 77 |
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 4 | 132–135 |
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 4 | 153–156 |
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 4 | 300–303 |
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 4 | 447–450 |
CloneThrowsCloneNotSupportedException | clone() method should throw CloneNotSupportedException | 3 | 577–589 |
CloneMethodReturnTypeMustMatchClassName | The return type of the clone() method must be the class name when implements Cloneable | 3 | 577–589 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 50–605 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 127–154 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 288–295 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 300 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 51 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 56–59 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 67–83 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 58–492 |
CommentRequired | Public method and constructor comments are required | 3 | 313–318 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 36–61 |
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 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 42–111 |
CommentRequired | Public method and constructor comments are required | 3 | 97–110 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 43–67 |
CommentRequired | Public method and constructor comments are required | 3 | 53–56 |
CommentRequired | Public method and constructor comments are required | 3 | 58–61 |
CommentRequired | Public method and constructor comments are required | 3 | 63–66 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 108–124 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 118 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 119 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 1 | 41–134 |
FieldNamingConventions | The final field name '_strSortColumn' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 77 |
FieldNamingConventions | The final field name '_bSortAsc' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 78 |
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 4 | 109–112 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 4 | 199–202 |
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 4 | 220–223 |
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 4 | 321–324 |
CloneThrowsCloneNotSupportedException | clone() method should throw CloneNotSupportedException | 3 | 341–353 |
CloneMethodReturnTypeMustMatchClassName | The return type of the clone() method must be the class name when implements Cloneable | 3 | 341–353 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 47–330 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 114 |
AvoidReassigningLoopVariables | Avoid reassigning the loop control variable 'entry' | 3 | 235 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 242 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 46–278 |
CommentRequired | Public method and constructor comments are required | 3 | 173 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 40–48 |
CommentRequired | Public method and constructor comments are required | 3 | 43 |
CommentRequired | Public method and constructor comments are required | 3 | 45 |
CommentRequired | Public method and constructor comments are required | 3 | 47 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Public method and constructor comments are required | 3 | 141 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 47–163 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 80–93 |
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 |
---|---|---|---|
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 4 | 171–174 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 50–345 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 66–69 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 106 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
NonThreadSafeSingleton | Singleton is not thread safe | 3 | 71–74 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 56–59 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
NonThreadSafeSingleton | Singleton is not thread safe | 3 | 71–74 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 54–57 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
DataClass | The class 'AnnounceResourceIdService' is suspected to be a Data Class (WOC=0.000%, NOPA=4, NOAM=0, WMC=1) | 3 | 50–144 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 74–77 |
ShortVariable | Avoid variables with short names like rt | 3 | 85 |
ShortVariable | Avoid variables with short names like p | 3 | 91 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CyclomaticComplexity | The method 'isImageAuthorized(int, HttpServletRequest)' has a cyclomatic complexity of 10. | 3 | 83–122 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 3 | 150–163 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–519 |
GodClass | Possible God Class (WMC=55, ATFD=78, TCC=3.571%) | 3 | 87–519 |
CyclomaticComplexity | The method 'getHtmlAnnounceForm(Announce, Category, Locale, boolean, HttpServletRequest)' has a cyclomatic complexity of 12. | 3 | 136–205 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 138 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 3 | 161–168 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 3 | 177–181 |
ExcessiveMethodLength | Avoid really long methods. | 3 | 223–327 |
CyclomaticComplexity | The method 'getHtmlEntry(AnnounceDTO, int, StringBuffer, Locale, boolean, HttpServletRequest)' has a cyclomatic complexity of 21. | 3 | 223–327 |
LinguisticNaming | Linguistics Antipattern - The getter 'getHtmlEntry' should not return void linguistically | 3 | 223–327 |
NPathComplexity | The method 'getHtmlEntry(AnnounceDTO, int, StringBuffer, Locale, boolean, HttpServletRequest)' has an NPath complexity of 2000 | 3 | 223–327 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 225 |
EmptyCatchBlock | Avoid empty catch blocks | 3 | 288–291 |
CyclomaticComplexity | The method 'getResponseEntry(HttpServletRequest, int, List, boolean, Locale, AnnounceDTO)' has a cyclomatic complexity of 11. | 3 | 370–442 |
AvoidReassigningLoopVariables | Avoid reassigning the loop control variable 'field' | 3 | 380 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 401–415 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ShortVariable | Avoid variables with short names like se | 3 | 51 |
ShortVariable | Avoid variables with short names like se | 3 | 60 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 62–511 |
AvoidUsingVolatile | Use of modifier volatile is not recommended. | 2 | 90 |
NonThreadSafeSingleton | Singleton is not thread safe | 3 | 108–111 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 124 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 137 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 151 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 175 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 198 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 212 |
CommentRequired | Public method and constructor comments are required | 3 | 507–510 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
DataClass | The class 'CategoryResourceIdService' is suspected to be a Data Class (WOC=0.000%, NOPA=4, NOAM=0, WMC=1) | 3 | 52–144 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 74–77 |
ShortVariable | Avoid variables with short names like rt | 3 | 85 |
ShortVariable | Avoid variables with short names like p | 3 | 91 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CyclomaticComplexity | The method 'moveDownEntryOrder(int, Entry)' has a cyclomatic complexity of 16. | 3 | 77–172 |
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 3 | 104–137 |
CyclomaticComplexity | The method 'moveUpEntryOrder(int, Entry)' has a cyclomatic complexity of 13. | 3 | 182–256 |
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 3 | 207–237 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidUsingVolatile | Use of modifier volatile is not recommended. | 2 | 50 |
NonThreadSafeSingleton | Singleton is not thread safe | 3 | 68–71 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 72–75 |
ShortVariable | Avoid variables with short names like rt | 3 | 83 |
ShortVariable | Avoid variables with short names like p | 3 | 89 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–402 |
FieldNamingConventions | The final field name '_dayFormat' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 76 |
NcssCount | The method 'getSearchResults(AnnounceSearchFilter, Plugin, List, int, int)' has a NCSS line count of 70. | 3 | 82–210 |
ExcessiveMethodLength | Avoid really long methods. | 3 | 82–210 |
CyclomaticComplexity | The method 'getSearchResults(AnnounceSearchFilter, Plugin, List, int, int)' has a cyclomatic complexity of 17. | 3 | 82–210 |
NPathComplexity | The method 'getSearchResults(AnnounceSearchFilter, Plugin, List, int, int)' has an NPath complexity of 3457 | 3 | 82–210 |
OptimizableToArrayCall | This call to Collection.toArray() may be optimizable | 3 | 173 |
OptimizableToArrayCall | This call to Collection.toArray() may be optimizable | 3 | 173 |
OptimizableToArrayCall | This call to Collection.toArray() may be optimizable | 3 | 174 |
UseUnderscoresInNumericLiterals | Number 1000000 should separate every third digit with an underscore | 3 | 176 |
ShortVariable | Avoid variables with short names like si | 3 | 199 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 203 |
CyclomaticComplexity | The method 'getSearchResultsBis(AnnounceSearchFilter, Plugin, List, int, int, AnnounceSort)' has a cyclomatic complexity of 20. | 3 | 216–369 |
NcssCount | The method 'getSearchResultsBis(AnnounceSearchFilter, Plugin, List, int, int, AnnounceSort)' has a NCSS line count of 81. | 3 | 216–369 |
ExcessiveMethodLength | Avoid really long methods. | 3 | 216–369 |
NPathComplexity | The method 'getSearchResultsBis(AnnounceSearchFilter, Plugin, List, int, int, AnnounceSort)' has an NPath complexity of 20737 | 3 | 216–369 |
OptimizableToArrayCall | This call to Collection.toArray() may be optimizable | 3 | 316 |
OptimizableToArrayCall | This call to Collection.toArray() may be optimizable | 3 | 316 |
OptimizableToArrayCall | This call to Collection.toArray() may be optimizable | 3 | 317 |
UseUnderscoresInNumericLiterals | Number 1000000 should separate every third digit with an underscore | 3 | 319 |
ShortVariable | Avoid variables with short names like si | 3 | 328 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 363 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ConstructorCallsOverridableMethod | Overridable method 'setCategoryId' called during object construction | 1 | 79 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–464 |
UseUnderscoresInNumericLiterals | Number 1000000 should separate every third digit with an underscore | 3 | 94 |
AvoidUsingVolatile | Use of modifier volatile is not recommended. | 2 | 97 |
AvoidUsingVolatile | Use of modifier volatile is not recommended. | 2 | 99 |
ImmutableField | Private field '_indexer' could be made final; it is only initialized in the declaration or constructor. | 3 | 101 |
ImmutableField | Private field '_nWriterMergeFactor' could be made final; it is only initialized in the declaration or constructor. | 3 | 102 |
ImmutableField | Private field '_nWriterMaxSectorLength' could be made final; it is only initialized in the declaration or constructor. | 3 | 103 |
AvoidUsingVolatile | Use of modifier volatile is not recommended. | 2 | 104 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 135 |
NonThreadSafeSingleton | Singleton is not thread safe | 3 | 148–151 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 187 |
CommentRequired | Public method and constructor comments are required | 3 | 197–216 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 208 |
ShortVariable | Avoid variables with short names like ir | 3 | 229 |
InsufficientStringBufferDeclaration | StringBuffer constructor is initialized with size 16, but has at least 147 characters appended. | 3 | 249 |
ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 3 | 255 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 280 |
NonThreadSafeSingleton | Singleton is not thread safe | 3 | 425–428 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 433–454 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 456–463 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 461 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–440 |
ShortVariable | Avoid variables with short names like it | 3 | 117 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 139–213 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 145–210 |
ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 3 | 200 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'org.apache.lucene.document.Document' due to existing import 'org.apache.lucene.document.Document' | 4 | 226 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'org.apache.lucene.document.Document' due to existing import 'org.apache.lucene.document.Document' | 4 | 238 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'org.apache.lucene.document.Document' due to existing import 'org.apache.lucene.document.Document' | 4 | 263 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'org.apache.lucene.document.Document' due to existing import 'org.apache.lucene.document.Document' | 4 | 266 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'org.apache.lucene.document.Document' due to existing import 'org.apache.lucene.document.Document' | 4 | 266 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 3 | 292 |
PreserveStackTrace | New exception is thrown in catch block, original stack trace may be lost | 3 | 311 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 343 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 344 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 345 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 346 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Public method and constructor comments are required | 3 | 66 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
LinguisticNaming | Linguistics Antipattern - The variable 'hasN' indicates linguistically it is a boolean, but it is 'int' | 3 | 82 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 80 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 125 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 147 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 150 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 159 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CyclomaticComplexity | The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has a cyclomatic complexity of 19. | 3 | 114–212 |
NPathComplexity | The method 'getResponseData(Entry, HttpServletRequest, List, Locale)' has an NPath complexity of 1569 | 3 | 114–212 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 3 | 137–143 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 147 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 3 | 153–165 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 3 | 173–176 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 3 | 183–193 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 189 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
PositionLiteralsFirstInCaseInsensitiveComparisons | Position literals first in String comparisons for EqualsIgnoreCase | 3 | 115 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 3 | 100 |
AssignmentInOperand | Avoid assignments in operands | 3 | 100 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–1729 |
GodClass | Possible God Class (WMC=115, ATFD=248, TCC=23.441%) | 3 | 115–1729 |
ExcessiveClassLength | Avoid really long classes. | 3 | 115–1729 |
CyclomaticComplexity | The class 'AnnounceApp' has a total cyclomatic complexity of 115 (highest 23). | 3 | 115–1729 |
FieldNamingConventions | The constant name '_captchaSecurityService' doesn't match '[A-Z][A-Z_0-9]*' | 1 | 251 |
ImmutableField | Private field '_announceService' could be made final; it is only initialized in the declaration or constructor. | 3 | 254 |
FieldNamingConventions | The final field name '_dateFormat' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 262 |
NPathComplexity | The method 'getSearchAnnounces(HttpServletRequest)' has an NPath complexity of 3072 | 3 | 287–372 |
CyclomaticComplexity | The method 'getSearchAnnounces(HttpServletRequest)' has a cyclomatic complexity of 13. | 3 | 287–372 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 335 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 347 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 347 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 348 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 348 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 389 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 434 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 444–468 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 516 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 520–534 |
MissingBreakInSwitch | A switch statement does not contain a break | 3 | 541–556 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 589 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 629 |
NPathComplexity | The method 'getViewAnnounce(HttpServletRequest)' has an NPath complexity of 1305 | 3 | 673–762 |
CyclomaticComplexity | The method 'getViewAnnounce(HttpServletRequest)' has a cyclomatic complexity of 20. | 3 | 673–762 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 683 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 3 | 715 |
NPathComplexity | The method 'getViewUserAnnounces(HttpServletRequest)' has an NPath complexity of 432 | 3 | 774–838 |
CyclomaticComplexity | The method 'getViewUserAnnounces(HttpServletRequest)' has a cyclomatic complexity of 11. | 3 | 774–838 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 795 |
AddEmptyString | Do not add empty strings | 3 | 796 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 828 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 828 |
CommentRequired | Public method and constructor comments are required | 3 | 874–895 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 3 | 998 |
NPathComplexity | The method 'doCreateAnnounce(HttpServletRequest, Sector, Category, Announce, LuteceUser)' has an NPath complexity of 28672 | 3 | 1031–1146 |
CyclomaticComplexity | The method 'doCreateAnnounce(HttpServletRequest, Sector, Category, Announce, LuteceUser)' has a cyclomatic complexity of 22. | 3 | 1031–1146 |
ExcessiveMethodLength | Avoid really long methods. | 3 | 1031–1146 |
NcssCount | The method 'doCreateAnnounce(HttpServletRequest, Sector, Category, Announce, LuteceUser)' has a NCSS line count of 67. | 3 | 1031–1146 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 1037 |
MissingBreakInSwitch | A switch statement does not contain a break | 3 | 1049–1064 |
ExcessiveMethodLength | Avoid really long methods. | 3 | 1159–1278 |
CyclomaticComplexity | The method 'doModifyAnnounce(HttpServletRequest, Announce)' has a cyclomatic complexity of 22. | 3 | 1159–1278 |
NcssCount | The method 'doModifyAnnounce(HttpServletRequest, Announce)' has a NCSS line count of 68. | 3 | 1159–1278 |
NPathComplexity | The method 'doModifyAnnounce(HttpServletRequest, Announce)' has an NPath complexity of 28672 | 3 | 1159–1278 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 1166 |
MissingBreakInSwitch | A switch statement does not contain a break | 3 | 1188–1203 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 1353 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 1390 |
NPathComplexity | The method 'getAnnounceFilterFromRequest(HttpServletRequest)' has an NPath complexity of 157476 | 3 | 1451–1578 |
ExcessiveMethodLength | Avoid really long methods. | 3 | 1451–1578 |
CyclomaticComplexity | The method 'getAnnounceFilterFromRequest(HttpServletRequest)' has a cyclomatic complexity of 23. | 3 | 1451–1578 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 3 | 1615 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 3 | 1619 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 3 | 1623 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 3 | 1627 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 3 | 1631 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–469 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 211 |
CyclomaticComplexity | The method 'getPreviewAnnounce(HttpServletRequest)' has a cyclomatic complexity of 13. | 3 | 240–300 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 3 | 254 |
AvoidDuplicateLiterals | The String literal "User '" appears 5 times in this file; the first occurrence is on line 319 | 3 | 319 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_nDefaultItemsPerPage' could be made final; it is only initialized in the declaration or constructor. | 3 | 92 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 135–151 |
AddEmptyString | Do not add empty strings | 3 | 169 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 107 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 3 | 146–155 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–786 |
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 77–786 |
ImmutableField | Private field '_entryService' could be made final; it is only initialized in the declaration or constructor. | 3 | 130 |
UnnecessaryAnnotationValueElement | Avoid the use of value in annotations when its the only element | 3 | 139 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 180 |
CyclomaticComplexity | The method 'doCreateEntry(HttpServletRequest)' has a cyclomatic complexity of 13. | 3 | 205–272 |
NPathComplexity | The method 'doCreateEntry(HttpServletRequest)' has an NPath complexity of 234 | 3 | 205–272 |
AvoidReassigningLoopVariables | Avoid reassigning the loop control variable 'field' | 3 | 302 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 310 |
CyclomaticComplexity | The method 'doModifyEntry(HttpServletRequest)' has a cyclomatic complexity of 11. | 3 | 344–411 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 3 | 363–366 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 377–386 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 3 | 377–386 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 398–405 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 451 |
CyclomaticComplexity | The method 'doChangeOrderEntry(HttpServletRequest)' has a cyclomatic complexity of 11. | 3 | 626–682 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 133 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 456 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 457 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 458 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–629 |
FieldNamingConventions | The constant name '_captchaSecurityService' doesn't match '[A-Z][A-Z_0-9]*' | 1 | 155 |
ImmutableField | Private field '_announceService' could be made final; it is only initialized in the declaration or constructor. | 3 | 158 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 197 |
AddEmptyString | Do not add empty strings | 3 | 199 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 278 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 279 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 280 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 281 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 281 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 282 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 283 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 369 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 405 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 406 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 407 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 408 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 408 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 409 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 410 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 532 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 157 |
AddEmptyString | Do not add empty strings | 3 | 159 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 285 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 286 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 81 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 99 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 117 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 91 |