Le document suivant contient les résultats de PMD 6.13.0.
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The final field name '_nIdResource' doesn't match '[a-z][a-zA-Z0-9]*' | 46 |
FieldNamingConventions | The final field name '_strTypeResource' doesn't match '[a-z][a-zA-Z0-9]*' | 47 |
Rule | Violation | Ligne |
---|---|---|
ClassNamingConventions | The utility class name 'AdminDashboardFactory' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 48–105 |
Rule | Violation | Ligne |
---|---|---|
ClassNamingConventions | The utility class name 'DashboardFactory' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 48–105 |
Rule | Violation | Ligne |
---|---|---|
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 616–619 |
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 645–648 |
Rule | Violation | Ligne |
---|---|---|
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 55–58 |
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 64–67 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The final field name '_strSqlSelect' doesn't match '[a-z][a-zA-Z0-9]*' | 47 |
FieldNamingConventions | The final field name '_strSqlInsert' doesn't match '[a-z][a-zA-Z0-9]*' | 48 |
FieldNamingConventions | The final field name '_strSqlUpdate' doesn't match '[a-z][a-zA-Z0-9]*' | 49 |
FieldNamingConventions | The final field name '_strSqlDelete' doesn't match '[a-z][a-zA-Z0-9]*' | 50 |
FieldNamingConventions | The final field name '_strSqlSelectAll' doesn't match '[a-z][a-zA-Z0-9]*' | 51 |
FieldNamingConventions | The final field name '_strSqlSelectByValue' doesn't match '[a-z][a-zA-Z0-9]*' | 52 |
FieldNamingConventions | The final field name '_strSqlDeleteKey' doesn't match '[a-z][a-zA-Z0-9]*' | 53 |
FieldNamingConventions | The final field name '_strSqlDeleteKeyPrefix' doesn't match '[a-z][a-zA-Z0-9]*' | 54 |
FieldNamingConventions | The final field name '_strSqlSelectCount' doesn't match '[a-z][a-zA-Z0-9]*' | 55 |
FieldNamingConventions | The final field name '_strSqlSelectCountPrefValue' doesn't match '[a-z][a-zA-Z0-9]*' | 56 |
Rule | Violation | Ligne |
---|---|---|
ClassNamingConventions | The utility class name 'ResourceEnhancer' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 46–219 |
Rule | Violation | Ligne |
---|---|---|
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 207–210 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The final field name '_code' doesn't match '[a-z][a-zA-Z0-9]*' | 21 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The final field name '_code' doesn't match '[a-z][a-zA-Z0-9]*' | 14 |
Rule | Violation | Ligne |
---|---|---|
FormalParameterNamingConventions | The method parameter name '_bDefault' doesn't match '[a-z][a-zA-Z0-9]*' | 149 |
Rule | Violation | Ligne |
---|---|---|
ClassNamingConventions | The enum name 'PASSWORD_REPRESENTATION' doesn't match '[A-Z][a-zA-Z0-9]*' | 117–121 |
FieldNamingConventions | The final field name '_iterations' doesn't match '[a-z][a-zA-Z0-9]*' | 148 |
FieldNamingConventions | The final field name '_salt' doesn't match '[a-z][a-zA-Z0-9]*' | 150 |
FieldNamingConventions | The final field name '_hash' doesn't match '[a-z][a-zA-Z0-9]*' | 152 |
FieldNamingConventions | The final field name '_strPassword' doesn't match '[a-z][a-zA-Z0-9]*' | 423 |
FieldNamingConventions | The final field name '_strPassword' doesn't match '[a-z][a-zA-Z0-9]*' | 450 |
FieldNamingConventions | The final field name '_strAlgorithm' doesn't match '[a-z][a-zA-Z0-9]*' | 452 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The final field name '_strClass' doesn't match '[a-z][a-zA-Z0-9]*' | 43 |
FieldNamingConventions | The final field name '_strContent' doesn't match '[a-z][a-zA-Z0-9]*' | 44 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The constant name '_item' doesn't match '[A-Z][A-Z_0-9]*' | 44 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The constant name '_attributeService' doesn't match '[A-Z][A-Z_0-9]*' | 89 |
Rule | Violation | Ligne |
---|---|---|
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 312–315 |
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 321–324 |
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 330–333 |
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 339–342 |
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 348–351 |
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 357–360 |
Rule | Violation | Ligne |
---|---|---|
AvoidFileStream | Avoid instantiating FileInputStream, FileOutputStream, FileReader, or FileWriter | 284 |
Rule | Violation | Ligne |
---|---|---|
AvoidFileStream | Avoid instantiating FileInputStream, FileOutputStream, FileReader, or FileWriter | 220 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The constant name '_mapDaemonEntries' doesn't match '[A-Z][A-Z_0-9]*' | 58 |
FieldNamingConventions | The constant name '_random' doesn't match '[A-Z][A-Z_0-9]*' | 59 |
Rule | Violation | Ligne |
---|---|---|
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 146–149 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The final field name '_thread' doesn't match '[a-z][a-zA-Z0-9]*' | 58 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The final field name '_queue' doesn't match '[a-z][a-zA-Z0-9]*' | 63 |
FieldNamingConventions | The final field name '_executor' doesn't match '[a-z][a-zA-Z0-9]*' | 64 |
FieldNamingConventions | The final field name '_coordinatorThread' doesn't match '[a-z][a-zA-Z0-9]*' | 65 |
FieldNamingConventions | The final field name '_scheduledDaemonsTimer' doesn't match '[a-z][a-zA-Z0-9]*' | 66 |
FieldNamingConventions | The final field name '_executingDaemons' doesn't match '[a-z][a-zA-Z0-9]*' | 67 |
FieldNamingConventions | The final field name '_scheduledDaemons' doesn't match '[a-z][a-zA-Z0-9]*' | 68 |
FieldNamingConventions | The final field name '_entry' doesn't match '[a-z][a-zA-Z0-9]*' | 293 |
FieldNamingConventions | The final field name '_entry' doesn't match '[a-z][a-zA-Z0-9]*' | 352 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The constant name '_defaultThreadFactory' doesn't match '[A-Z][A-Z_0-9]*' | 49 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The final field name '_wrapped' doesn't match '[a-z][a-zA-Z0-9]*' | 61 |
Rule | Violation | Ligne |
---|---|---|
FormalParameterNamingConventions | The method parameter name 'user_id' doesn't match '[a-z][a-zA-Z0-9]*' | 72 |
Rule | Violation | Ligne |
---|---|---|
AbstractClassWithoutAnyMethod | No abstract method which means that the keyword is most likely used to prevent instantiation. Use a private or protected constructor instead. | 43–45 |
Rule | Violation | Ligne |
---|---|---|
ClassNamingConventions | The utility class name 'CoreDataKeys' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 39–49 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The final field name '_prefixes' doesn't match '[a-z][a-zA-Z0-9]*' | 47 |
Rule | Violation | Ligne |
---|---|---|
ClassNamingConventions | The utility class name 'ResourceEventManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 48–112 |
Rule | Violation | Ligne |
---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 44–184 |
Rule | Violation | Ligne |
---|---|---|
FormalParameterNamingConventions | The method parameter name '_fileDownloadUrlService' doesn't match '[a-z][a-zA-Z0-9]*' | 83 |
FormalParameterNamingConventions | The method parameter name '_fileRBACService' doesn't match '[a-z][a-zA-Z0-9]*' | 83 |
Rule | Violation | Ligne |
---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 50–176 |
FieldNamingConventions | The constant name '_fileStoreService' doesn't match '[A-Z][A-Z_0-9]*' | 54 |
Rule | Violation | Ligne |
---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 60–170 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The constant name '_log' doesn't match '[A-Z][A-Z_0-9]*' | 59 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The final field name '_override' doesn't match '[a-z][a-zA-Z0-9]*' | 42 |
FieldNamingConventions | The final field name '_defaults' doesn't match '[a-z][a-zA-Z0-9]*' | 43 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The constant name '_overrideLoader' doesn't match '[A-Z][A-Z_0-9]*' | 84 |
FieldNamingConventions | The constant name '_resourceBundleCache' doesn't match '[A-Z][A-Z_0-9]*' | 85 |
Rule | Violation | Ligne |
---|---|---|
ConstructorCallsOverridableMethod | Overridable method 'setImage' called during object construction | 53 |
ConstructorCallsOverridableMethod | Overridable method 'setMimeType' called during object construction | 54 |
Rule | Violation | Ligne |
---|---|---|
ClassNamingConventions | The utility class name 'ImageResourceManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 47–123 |
Rule | Violation | Ligne |
---|---|---|
AvoidFileStream | Avoid instantiating FileInputStream, FileOutputStream, FileReader, or FileWriter | 115 |
Rule | Violation | Ligne |
---|---|---|
ClassNamingConventions | The utility class name 'AppInfo' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 39–68 |
Rule | Violation | Ligne |
---|---|---|
AvoidFileStream | Avoid instantiating FileInputStream, FileOutputStream, FileReader, or FileWriter | 316 |
AvoidFileStream | Avoid instantiating FileInputStream, FileOutputStream, FileReader, or FileWriter | 341 |
Rule | Violation | Ligne |
---|---|---|
ClassNamingConventions | The utility class name 'PostStartUpServiceManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 44–75 |
Rule | Violation | Ligne |
---|---|---|
ClassNamingConventions | The utility class name 'ShutdownServiceManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 44–75 |
Rule | Violation | Ligne |
---|---|---|
ClassNamingConventions | The utility class name 'StartUpServiceManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 47–109 |
Rule | Violation | Ligne |
---|---|---|
ClassNamingConventions | The utility class name 'InsertServiceManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 47–137 |
Rule | Violation | Ligne |
---|---|---|
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 1161–1164 |
Rule | Violation | Ligne |
---|---|---|
AvoidFileStream | Avoid instantiating FileInputStream, FileOutputStream, FileReader, or FileWriter | 151 |
Rule | Violation | Ligne |
---|---|---|
AvoidFileStream | Avoid instantiating FileInputStream, FileOutputStream, FileReader, or FileWriter | 304 |
Rule | Violation | Ligne |
---|---|---|
ClassNamingConventions | The utility class name 'PrefsConstants' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 39–48 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The final field name '_strResourceType' doesn't match '[a-z][a-zA-Z0-9]*' | 63 |
FieldNamingConventions | The final field name '_item' doesn't match '[a-z][a-zA-Z0-9]*' | 64 |
Rule | Violation | Ligne |
---|---|---|
ClassNamingConventions | The utility class name 'ResourceTypeManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 48–148 |
Rule | Violation | Ligne |
---|---|---|
ConstructorCallsOverridableMethod | Overridable method 'initLoaders' called during object construction | 70 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The final field name '_accessLoggerList' doesn't match '[a-z][a-zA-Z0-9]*' | 67 |
Rule | Violation | Ligne |
---|---|---|
ClassNamingConventions | The utility class name 'AccessLoggerConstants' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 39–64 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The final field name '_bEnableCaptcha' doesn't match '[a-z][a-zA-Z0-9]*' | 44 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The final field name '_strRedirectUrl' doesn't match '[a-z][a-zA-Z0-9]*' | 42 |
Rule | Violation | Ligne |
---|---|---|
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 492–495 |
Rule | Violation | Ligne |
---|---|---|
ClassNamingConventions | The utility class name 'SecurityModel' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 39–70 |
Rule | Violation | Ligne |
---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 52–141 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The final field name '_bAddHashToLogs' doesn't match '[a-z][a-zA-Z0-9]*' | 78 |
FieldNamingConventions | The final field name '_messageFormat' doesn't match '[a-z][a-zA-Z0-9]*' | 79 |
FieldNamingConventions | The final field name '_messageFormatSeparator' doesn't match '[a-z][a-zA-Z0-9]*' | 80 |
Rule | Violation | Ligne |
---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 46–230 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The constant name '_attributeService' doesn't match '[A-Z][A-Z_0-9]*' | 73 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The final field name '_service' doesn't match '[a-z][a-zA-Z0-9]*' | 55 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The final field name '_itemProviders' doesn't match '[a-z][a-zA-Z0-9]*' | 57 |
Rule | Violation | Ligne |
---|---|---|
AvoidFileStream | Avoid instantiating FileInputStream, FileOutputStream, FileReader, or FileWriter | 187 |
Rule | Violation | Ligne |
---|---|---|
ClassNamingConventions | The utility class name 'LocalVariables' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 43–102 |
Rule | Violation | Ligne |
---|---|---|
ClassNamingConventions | The utility class name 'Markers' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 39–66 |
Rule | Violation | Ligne |
---|---|---|
ClassNamingConventions | The utility class name 'Messages' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 39–64 |
Rule | Violation | Ligne |
---|---|---|
ClassNamingConventions | The utility class name 'Parameters' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 39–139 |
Rule | Violation | Ligne |
---|---|---|
AbstractClassWithoutAnyMethod | No abstract method which means that the keyword is most likely used to prevent instantiation. Use a private or protected constructor instead. | 42–45 |
Rule | Violation | Ligne |
---|---|---|
ClassNamingConventions | The utility class name 'PluginActionManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 57–133 |
Rule | Violation | Ligne |
---|---|---|
ClassNamingConventions | The utility class name 'ExtendableResourcePluginActionManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 52–96 |
Rule | Violation | Ligne |
---|---|---|
AvoidFileStream | Avoid instantiating FileInputStream, FileOutputStream, FileReader, or FileWriter | 418 |
Rule | Violation | Ligne |
---|---|---|
AvoidFileStream | Avoid instantiating FileInputStream, FileOutputStream, FileReader, or FileWriter | 499 |
Rule | Violation | Ligne |
---|---|---|
AvoidFileStream | Avoid instantiating FileInputStream, FileOutputStream, FileReader, or FileWriter | 301 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The static field name 'PROPERTY_DOSGUARDFILTER_MINCONTENTLENGTH' doesn't match '_[a-z][a-zA-Z0-9]*' | 61 |
FieldNamingConventions | The static field name 'PROPERTY_DOSGUARDFILTER_MININTERVAL' doesn't match '_[a-z][a-zA-Z0-9]*' | 62 |
FieldNamingConventions | The static field name 'CONSTANT_DEFAULT_DOSGUARDFILTER_MINCONTENTLENGTH' doesn't match '_[a-z][a-zA-Z0-9]*' | 65 |
FieldNamingConventions | The static field name 'CONSTANT_DEFAULT_DOSGUARDFILTER_MININTERVAL' doesn't match '_[a-z][a-zA-Z0-9]*' | 66 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The final field name '_multipartFiles' doesn't match '[a-z][a-zA-Z0-9]*' | 52 |
FieldNamingConventions | The final field name '_stringParameters' doesn't match '[a-z][a-zA-Z0-9]*' | 53 |
Rule | Violation | Ligne |
---|---|---|
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 187–190 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The constant name 'objectMapper' doesn't match '[A-Z][A-Z_0-9]*' | 64 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The constant name '_attributeService' doesn't match '[A-Z][A-Z_0-9]*' | 72 |
FieldNamingConventions | The constant name '_attributeTypeService' doesn't match '[A-Z][A-Z_0-9]*' | 73 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The constant name '_attributeService' doesn't match '[A-Z][A-Z_0-9]*' | 98 |
FieldNamingConventions | The constant name '_attributeFieldService' doesn't match '[A-Z][A-Z_0-9]*' | 99 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The constant name '_attributeService' doesn't match '[A-Z][A-Z_0-9]*' | 91 |
Rule | Violation | Ligne |
---|---|---|
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 81–84 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The final field name 'RSA_KEY_PREFIX' doesn't match '[a-z][a-zA-Z0-9]*' | 60 |
FieldNamingConventions | The final field name 'MESSAGE_CIPHERED_PROPERTY_SECURITY_EXCEPTION' doesn't match '[a-z][a-zA-Z0-9]*' | 61 |
AvoidFileStream | Avoid instantiating FileInputStream, FileOutputStream, FileReader, or FileWriter | 141 |
Rule | Violation | Ligne |
---|---|---|
ClassNamingConventions | The utility class name 'UniqueIDGenerator' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 40–68 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The final field name '_db' doesn't match '[a-z][a-zA-Z0-9]*' | 64 |
Rule | Violation | Ligne |
---|---|---|
ConstructorCallsOverridableMethod | Overridable method 'setSortUrl' called during object construction | 120 |
Rule | Violation | Ligne |
---|---|---|
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 262–265 |
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 271–274 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The public constant name '_log' doesn't match '[A-Z][A-Z_0-9]*' | 69 |
Rule | Violation | Ligne |
---|---|---|
ClassNamingConventions | The utility class name 'JPAConstants' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 39–49 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The constant name '_Log' doesn't match '[A-Z][A-Z_0-9]*' | 62 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The constant name '_log' doesn't match '[A-Z][A-Z_0-9]*' | 57 |
Rule | Violation | Ligne |
---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 46–78 |
FieldNamingConventions | The constant name '_mapper' doesn't match '[A-Z][A-Z_0-9]*' | 49 |
Rule | Violation | Ligne |
---|---|---|
ClassNamingConventions | The utility class name 'LuteceConnectionFactory' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 44–75 |
Rule | Violation | Ligne |
---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 43–99 |
FieldNamingConventions | The static field name 'RSA_KEY_PROVIDER_BEAN_NAME' doesn't match '_[a-z][a-zA-Z0-9]*' | 46 |
Rule | Violation | Ligne |
---|---|---|
AvoidUsingShortType | Do not use the short type | 1724 |
AvoidUsingShortType | Do not use the short type | 3029 |
AvoidUsingShortType | Do not use the short type | 3052 |
AvoidUsingShortType | Do not use the short type | 3074 |
Rule | Violation | Ligne |
---|---|---|
ConstructorCallsOverridableMethod | Overridable method 'beginTransaction' called during object construction | 108 |
Rule | Violation | Ligne |
---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 43–71 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The constant name 'transformersPoolList' doesn't match '[A-Z][A-Z_0-9]*' | 68 |
Rule | Violation | Ligne |
---|---|---|
AvoidReassigningParameters | Avoid reassigning parameters such as 'user' | 210 |
Rule | Violation | Ligne |
---|---|---|
AvoidReassigningParameters | Avoid reassigning parameters such as 'listAttributes' | 296 |
Rule | Violation | Ligne |
---|---|---|
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 58 |
Rule | Violation | Ligne |
---|---|---|
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 69 |
Rule | Violation | Ligne |
---|---|---|
AvoidUsingVolatile | Use of modifier volatile is not recommended. | 69 |
AvoidUsingVolatile | Use of modifier volatile is not recommended. | 294 |
AvoidUsingVolatile | Use of modifier volatile is not recommended. | 295 |
Rule | Violation | Ligne |
---|---|---|
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 62 |
Rule | Violation | Ligne |
---|---|---|
AvoidReassigningParameters | Avoid reassigning parameters such as 'additionnalData' | 115 |
AvoidReassigningParameters | Avoid reassigning parameters such as 'additionnalData' | 144 |
Rule | Violation | Ligne |
---|---|---|
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 69 |
Rule | Violation | Ligne |
---|---|---|
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 64 |
Rule | Violation | Ligne |
---|---|---|
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 50 |
Rule | Violation | Ligne |
---|---|---|
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 74 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 96 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 109 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 130 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 139 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 144 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 147 |
Rule | Violation | Ligne |
---|---|---|
AvoidReassigningParameters | Avoid reassigning parameters such as 'strPage' | 267 |
Rule | Violation | Ligne |
---|---|---|
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 84 |
Rule | Violation | Ligne |
---|---|---|
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 39 |
Rule | Violation | Ligne |
---|---|---|
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 53 |
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 54 |
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 55 |
Rule | Violation | Ligne |
---|---|---|
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 88 |
Rule | Violation | Ligne |
---|---|---|
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 59 |
Rule | Violation | Ligne |
---|---|---|
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 103 |
Rule | Violation | Ligne |
---|---|---|
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 145 |
Rule | Violation | Ligne |
---|---|---|
AvoidReassigningParameters | Avoid reassigning parameters such as 'response' | 81 |
Rule | Violation | Ligne |
---|---|---|
AvoidReassigningParameters | Avoid reassigning parameters such as 'resourceURI' | 276 |
Rule | Violation | Ligne |
---|---|---|
AvoidBranchingStatementAsLastInLoop | Avoid using a branching statement as the last in a loop. | 353–354 |
Rule | Violation | Ligne |
---|---|---|
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 90 |
Rule | Violation | Ligne |
---|---|---|
GuardLogStatement | Logger calls should be surrounded by log level guards. | 128 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 130 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 131 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 132 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 133 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 134 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 135 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 136 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 137 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 138 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 139 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 140 |
Rule | Violation | Ligne |
---|---|---|
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 65 |
Rule | Violation | Ligne |
---|---|---|
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 68 |
Rule | Violation | Ligne |
---|---|---|
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 68 |
Rule | Violation | Ligne |
---|---|---|
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 55 |
Rule | Violation | Ligne |
---|---|---|
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 55 |
Rule | Violation | Ligne |
---|---|---|
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 117 |
Rule | Violation | Ligne |
---|---|---|
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 87 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 40–152 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 50 |
ImmutableField | Private field '_persistentData' could be made final; it is only initialized in the declaration or constructor. | 50 |
Rule | Violation | Ligne |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 50–436 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 150–157 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 185–193 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 273–281 |
LinguisticNaming | Linguistics Antipattern - The setter 'setInsertOrUpdateValues' should not return any type except void linguistically | 356–363 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 397–404 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 50 |
Rule | Violation | Ligne |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 49–434 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 149–156 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 185–193 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 271–279 |
LinguisticNaming | Linguistics Antipattern - The setter 'setInsertOrUpdateValues' should not return any type except void linguistically | 354–361 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 395–402 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 50 |
Rule | Violation | Ligne |
---|---|---|
UncommentedEmptyConstructor | Document empty constructor | 52–54 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 3–36 |
AbstractClassWithoutAbstractMethod | This abstract class does not have any abstract methods | 3–36 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 5–42 |
ImmutableField | Private field '_type' could be made final; it is only initialized in the declaration or constructor. | 20 |
Rule | Violation | Ligne |
---|---|---|
UncommentedEmptyConstructor | Document empty constructor | 53–55 |
Rule | Violation | Ligne |
---|---|---|
ConfusingTernary | Avoid if (x != y) ..; else ..; | 71–78 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 168–175 |
Rule | Violation | Ligne |
---|---|---|
AssignmentInOperand | Avoid assignments in operands | 255 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 255 |
Rule | Violation | Ligne |
---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 115–132 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 128 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 149 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 231 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_listFilters' could be made final; it is only initialized in the declaration or constructor. | 54 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 59–67 |
Rule | Violation | Ligne |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 47–366 |
Rule | Violation | Ligne |
---|---|---|
UncommentedEmptyConstructor | Document empty constructor | 65–67 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 285 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'canBeRemoved(String)' is missing an @Override annotation. | 58–68 |
MissingOverride | The method 'getRemovalRefusedMessage(String, Locale)' is missing an @Override annotation. | 79–83 |
Rule | Violation | Ligne |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 46–203 |
Rule | Violation | Ligne |
---|---|---|
ExcessivePublicCount | This class has a bunch of public methods and attributes | 34–636 |
TooManyFields | Too many fields | 52–636 |
DefaultPackage | Use explicit scoping instead of the default package private level | 139–142 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the setOrigParentPageId method if you want a default access modifier | 139–142 |
MethodReturnsInternalArray | Returning '_strImageContent' may expose an internal array. | 162 |
ArrayIsStoredDirectly | The user-supplied array 'strImageContent' is stored directly. | 171 |
AddEmptyString | Do not add empty strings | 470 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 579 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 580 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 581 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 582 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 583 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 584 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 585 |
Rule | Violation | Ligne |
---|---|---|
GodClass | Possible God Class (WMC=58, ATFD=218, TCC=0.000%) | 52–812 |
TooManyMethods | This class has too many methods, consider refactoring it. | 53–812 |
MissingOverride | The method 'insert(Page)' is missing an @Override annotation. | 106–164 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 146–153 |
MissingOverride | The method 'load(int, boolean)' is missing an @Override annotation. | 169–219 |
MissingOverride | The method 'loadWithoutImageContent(int, boolean)' is missing an @Override annotation. | 224–269 |
MissingOverride | The method 'loadPageByIdPortlet(int)' is missing an @Override annotation. | 274–306 |
MissingOverride | The method 'delete(int)' is missing an @Override annotation. | 311–319 |
MissingOverride | The method 'store(Page)' is missing an @Override annotation. | 324–376 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 360–367 |
DefaultPackage | Use explicit scoping instead of the default package private level | 385–400 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the checkPrimaryKey method if you want a default access modifier | 385–400 |
DefaultPackage | Use explicit scoping instead of the default package private level | 408–435 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the loadPortlets method if you want a default access modifier | 408–435 |
MissingOverride | The method 'selectChildPages(int)' is missing an @Override annotation. | 440–481 |
MissingOverride | The method 'selectChildPagesMinimalData(int)' is missing an @Override annotation. | 486–510 |
MissingOverride | The method 'selectAllPages()' is missing an @Override annotation. | 515–554 |
MissingOverride | The method 'invalidatePage(int)' is missing an @Override annotation. | 559–569 |
MissingOverride | The method 'getPagesList()' is missing an @Override annotation. | 574–592 |
MissingOverride | The method 'getPagesByRoleKey(String)' is missing an @Override annotation. | 601–643 |
MissingOverride | The method 'selectNewChildPageOrder(int)' is missing an @Override annotation. | 648–667 |
MissingOverride | The method 'loadImageResource(int)' is missing an @Override annotation. | 672–690 |
MissingOverride | The method 'checkPageExist(int)' is missing an @Override annotation. | 699–716 |
MissingOverride | The method 'loadLastModifiedPage()' is missing an @Override annotation. | 721–762 |
MissingOverride | The method 'updateAutorisationNode(int, Integer)' is missing an @Override annotation. | 767–788 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 775–782 |
MissingOverride | The method 'selectPageForChangeAutorisationNode(int)' is missing an @Override annotation. | 793–811 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'canBeRemoved(String)' is missing an @Override annotation. | 58–68 |
MissingOverride | The method 'getRemovalRefusedMessage(String, Locale)' is missing an @Override annotation. | 79–83 |
Rule | Violation | Ligne |
---|---|---|
MethodReturnsInternalArray | Returning '_byValue' may expose an internal array. | 74 |
ArrayIsStoredDirectly | The user-supplied array 'value' is stored directly. | 83 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'insert(PortalComponent)' is missing an @Override annotation. | 60–70 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 60–70 |
MissingOverride | The method 'load(int)' is missing an @Override annotation. | 75–95 |
MissingOverride | The method 'delete(int)' is missing an @Override annotation. | 100–108 |
MissingOverride | The method 'store(PortalComponent)' is missing an @Override annotation. | 113–124 |
MissingOverride | The method 'selectXslFile(int, int)' is missing an @Override annotation. | 129–151 |
Rule | Violation | Ligne |
---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 55–58 |
MissingOverride | The method 'getXml(HttpServletRequest)' is missing an @Override annotation. | 114–131 |
MissingOverride | The method 'getXmlDocument(HttpServletRequest)' is missing an @Override annotation. | 142–145 |
MissingOverride | The method 'remove()' is missing an @Override annotation. | 173–176 |
Rule | Violation | Ligne |
---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 64–76 |
MissingOverride | The method 'insert(Portlet)' is missing an @Override annotation. | 64–76 |
MissingOverride | The method 'delete(int)' is missing an @Override annotation. | 81–89 |
MissingOverride | The method 'load(int)' is missing an @Override annotation. | 94–110 |
MissingOverride | The method 'store(Portlet)' is missing an @Override annotation. | 115–126 |
ShortVariable | Avoid variables with short names like r | 117 |
MissingOverride | The method 'selectPortletsByTypeList(String)' is missing an @Override annotation. | 131–147 |
MissingOverride | The method 'selectAliasId(int)' is missing an @Override annotation. | 152–168 |
MissingOverride | The method 'selectAcceptAliasPortletRefList()' is missing an @Override annotation. | 173–188 |
MissingOverride | The method 'selectAcceptAliasPortletList()' is missing an @Override annotation. | 193–212 |
Rule | Violation | Ligne |
---|---|---|
AssignmentToNonFinalStatic | Possible unsafe assignment to a non-final static field in a constructor. | 52 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 57–63 |
MissingOverride | The method 'getPortletTypeId()' is missing an @Override annotation. | 70–74 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 81–88 |
MissingOverride | The method 'getDAO()' is missing an @Override annotation. | 95–98 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'insert(Portlet)' is missing an @Override annotation. | 52 |
MissingOverride | The method 'delete(int)' is missing an @Override annotation. | 60 |
MissingOverride | The method 'load(int)' is missing an @Override annotation. | 69 |
MissingOverride | The method 'store(Portlet)' is missing an @Override annotation. | 77 |
Rule | Violation | Ligne |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 47–203 |
Rule | Violation | Ligne |
---|---|---|
ExcessivePublicCount | This class has a bunch of public methods and attributes | 34–689 |
TooManyFields | Too many fields | 52–689 |
GodClass | Possible God Class (WMC=58, ATFD=22, TCC=1.943%) | 52–689 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 532 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 535 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 538 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 541 |
Rule | Violation | Ligne |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 51–546 |
MissingOverride | The method 'insert(Portlet)' is missing an @Override annotation. | 98–124 |
MissingOverride | The method 'delete(int)' is missing an @Override annotation. | 129–151 |
MissingOverride | The method 'load(int)' is missing an @Override annotation. | 156–189 |
MissingOverride | The method 'store(Portlet)' is missing an @Override annotation. | 194–213 |
MissingOverride | The method 'updateStatus(Portlet, int)' is missing an @Override annotation. | 218–229 |
MissingOverride | The method 'updatePosition(Portlet, int, int)' is missing an @Override annotation. | 234–244 |
MissingOverride | The method 'selectXslFile(int, int)' is missing an @Override annotation. | 249–269 |
MissingOverride | The method 'selectPortletsListbyName(String)' is missing an @Override annotation. | 274–295 |
MissingOverride | The method 'selectAliasesForPortlet(int)' is missing an @Override annotation. | 300–321 |
MissingOverride | The method 'selectPortletsByType(String)' is missing an @Override annotation. | 326–358 |
MissingOverride | The method 'selectStylesList(String)' is missing an @Override annotation. | 363–379 |
MissingOverride | The method 'hasAlias(int)' is missing an @Override annotation. | 384–401 |
MissingOverride | The method 'selectPortletType(String)' is missing an @Override annotation. | 406–427 |
MissingOverride | The method 'selectPortletListByStyle(int)' is missing an @Override annotation. | 432–455 |
MissingOverride | The method 'selectPortletsByRole(String)' is missing an @Override annotation. | 460–481 |
MissingOverride | The method 'loadLastModifiedPortlet()' is missing an @Override annotation. | 486–521 |
Rule | Violation | Ligne |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 51–360 |
ShortVariable | Avoid variables with short names like p | 72 |
DefaultPackage | Use explicit scoping instead of the default package private level | 121–124 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the getXsl method if you want a default access modifier | 121–124 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 157–171 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 179–189 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'canBeRemoved(String)' is missing an @Override annotation. | 58–68 |
MissingOverride | The method 'getRemovalRefusedMessage(String, Locale)' is missing an @Override annotation. | 79–83 |
Rule | Violation | Ligne |
---|---|---|
TooManyFields | Too many fields | 45–426 |
MissingOverride | The method 'getResourceTypeCode()' is missing an @Override annotation. | 233–236 |
MissingOverride | The method 'getResourceId()' is missing an @Override annotation. | 243–246 |
AddEmptyString | Do not add empty strings | 245 |
MissingOverride | The method 'setLocale(Locale)' is missing an @Override annotation. | 422–425 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'insert(PortletType)' is missing an @Override annotation. | 70–92 |
MissingOverride | The method 'load(String)' is missing an @Override annotation. | 101–131 |
MissingOverride | The method 'delete(String)' is missing an @Override annotation. | 139–147 |
MissingOverride | The method 'selectPortletTypeId(String)' is missing an @Override annotation. | 156–172 |
MissingOverride | The method 'selectNbPortletTypeByPortlet(String)' is missing an @Override annotation. | 181–197 |
MissingOverride | The method 'selectPortletsTypesList(Locale)' is missing an @Override annotation. | 206–226 |
MissingOverride | The method 'selectPortletTypesList()' is missing an @Override annotation. | 233–254 |
Rule | Violation | Ligne |
---|---|---|
DefaultPackage | Use explicit scoping instead of the default package private level | 63 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the getPreferencesTable method if you want a default access modifier | 63 |
Rule | Violation | Ligne |
---|---|---|
DefaultPackage | Use explicit scoping instead of the default package private level | 46–50 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the getPreferencesTable method if you want a default access modifier | 47–50 |
Rule | Violation | Ligne |
---|---|---|
DefaultPackage | Use explicit scoping instead of the default package private level | 46–50 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the getPreferencesTable method if you want a default access modifier | 47–50 |
Rule | Violation | Ligne |
---|---|---|
RedundantFieldInitializer | Avoid using redundant field initializer for '_nNbItemTotal' | 51 |
RedundantFieldInitializer | Avoid using redundant field initializer for '_nNbItemSuccess' | 53 |
RedundantFieldInitializer | Avoid using redundant field initializer for '_nNbItemFailure' | 55 |
ImmutableField | Private field '_report' could be made final; it is only initialized in the declaration or constructor. | 57 |
UseCollectionIsEmpty | Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() | 179 |
Rule | Violation | Ligne |
---|---|---|
MissingSerialVersionUID | Classes implementing Serializable should set a serialVersionUID | 42–45 |
Rule | Violation | Ligne |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 42–146 |
UnnecessaryModifier | Unnecessary modifier 'public' on method 'deleteForResourceTypeAndId': the method is declared in an interface type | 144 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'setLocale(Locale)' is missing an @Override annotation. | 67–70 |
Rule | Violation | Ligne |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 47–344 |
MissingOverride | The method 'insert(RBAC)' is missing an @Override annotation. | 72–90 |
MissingOverride | The method 'load(int)' is missing an @Override annotation. | 99–120 |
MissingOverride | The method 'delete(int)' is missing an @Override annotation. | 128–136 |
MissingOverride | The method 'store(RBAC)' is missing an @Override annotation. | 144–157 |
MissingOverride | The method 'selectRBACList()' is missing an @Override annotation. | 164–186 |
MissingOverride | The method 'selectRBACListByRoleKey(String)' is missing an @Override annotation. | 195–218 |
MissingOverride | The method 'updateRoleKey(String, String)' is missing an @Override annotation. | 267–276 |
MissingOverride | The method 'deleteForRoleKey(String)' is missing an @Override annotation. | 284–292 |
MissingOverride | The method 'selectRoleKeys(String, String, String)' is missing an @Override annotation. | 303–327 |
Rule | Violation | Ligne |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 45–216 |
Rule | Violation | Ligne |
---|---|---|
UncommentedEmptyConstructor | Document empty constructor | 51–53 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'insert(RBACRole)' is missing an @Override annotation. | 59–68 |
MissingOverride | The method 'load(String)' is missing an @Override annotation. | 77–95 |
MissingOverride | The method 'delete(String)' is missing an @Override annotation. | 103–111 |
MissingOverride | The method 'store(String, RBACRole)' is missing an @Override annotation. | 121–131 |
MissingOverride | The method 'selectRoleList()' is missing an @Override annotation. | 138–157 |
MissingOverride | The method 'checkExistRole(String)' is missing an @Override annotation. | 166–181 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'equals(Object)' is missing an @Override annotation. | 182–185 |
MissingOverride | The method 'hashCode()' is missing an @Override annotation. | 190–193 |
Rule | Violation | Ligne |
---|---|---|
LinguisticNaming | Linguistics Antipattern - The getter 'getXmlAddOn' should not return void linguistically | 57 |
Rule | Violation | Ligne |
---|---|---|
LinguisticNaming | Linguistics Antipattern - The getter 'getCreateResourceModelAddOn' should not return void linguistically | 53 |
LinguisticNaming | Linguistics Antipattern - The getter 'getModifyResourceModelAddOn' should not return void linguistically | 77 |
Rule | Violation | Ligne |
---|---|---|
LinguisticNaming | Linguistics Antipattern - The getter 'getXmlAddOn' should not return void linguistically | 68–76 |
LinguisticNaming | Linguistics Antipattern - The getter 'getCreateResourceModelAddOn' should not return void linguistically | 110–118 |
LinguisticNaming | Linguistics Antipattern - The getter 'getModifyResourceModelAddOn' should not return void linguistically | 150–158 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_aFeaturesList' could be made final; it is only initialized in the declaration or constructor. | 59 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 112–119 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 172–179 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'insert(FeatureGroup)' is missing an @Override annotation. | 66–79 |
MissingOverride | The method 'load(String)' is missing an @Override annotation. | 88–110 |
MissingOverride | The method 'delete(String)' is missing an @Override annotation. | 118–125 |
MissingOverride | The method 'store(FeatureGroup)' is missing an @Override annotation. | 133–146 |
MissingOverride | The method 'selectFeatureGroupsList()' is missing an @Override annotation. | 153–176 |
MissingOverride | The method 'selectFeatureGroupsCount()' is missing an @Override annotation. | 183–198 |
Rule | Violation | Ligne |
---|---|---|
CyclomaticComplexity | The method 'changeRightOrder(FeatureGroup, int)' has a cyclomatic complexity of 10. | 199–235 |
Rule | Violation | Ligne |
---|---|---|
UnnecessaryModifier | Unnecessary modifier 'public' on method 'selectExternalRightsList': the method is declared in an interface type | 90 |
Rule | Violation | Ligne |
---|---|---|
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the newPrimaryKey method if you want a default access modifier | 62–80 |
DefaultPackage | Use explicit scoping instead of the default package private level | 62–80 |
MissingOverride | The method 'insert(Level)' is missing an @Override annotation. | 88–99 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 88–99 |
MissingOverride | The method 'load(int)' is missing an @Override annotation. | 108–126 |
MissingOverride | The method 'delete(int)' is missing an @Override annotation. | 134–142 |
MissingOverride | The method 'store(Level)' is missing an @Override annotation. | 150–161 |
MissingOverride | The method 'selectLevelsList()' is missing an @Override annotation. | 168–186 |
Rule | Violation | Ligne |
---|---|---|
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 117 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 195 |
ShortVariable | Avoid variables with short names like o | 349 |
ShortVariable | Avoid variables with short names like o | 370 |
Rule | Violation | Ligne |
---|---|---|
AvoidDuplicateLiterals | The String literal " SELECT id_right, name, level_right, admin_url, description, plugin_name, id_feature_group, icon_url, documentation_url, id_order, is_external_feature " appears 4 times in this file; the first occurrence is on line 55 | 55 |
MissingOverride | The method 'insert(Right)' is missing an @Override annotation. | 75–94 |
MissingOverride | The method 'load(String)' is missing an @Override annotation. | 103–131 |
MissingOverride | The method 'delete(String)' is missing an @Override annotation. | 139–154 |
MissingOverride | The method 'store(Right)' is missing an @Override annotation. | 162–181 |
MissingOverride | The method 'selectRightsList()' is missing an @Override annotation. | 188–191 |
MissingOverride | The method 'selectRightsList(int)' is missing an @Override annotation. | 200–230 |
MissingOverride | The method 'selectRightsList(String)' is missing an @Override annotation. | 289–331 |
Rule | Violation | Ligne |
---|---|---|
CyclomaticComplexity | The method 'changeRightOrder(Right, int)' has a cyclomatic complexity of 10. | 188–224 |
CommentRequired | Public method and constructor comments are required | 299–302 |
Rule | Violation | Ligne |
---|---|---|
ConfusingTernary | Avoid if (x != y) ..; else ..; | 67 |
MissingOverride | The method 'getResourceTypeCode()' is missing an @Override annotation. | 96–99 |
MissingOverride | The method 'getResourceId()' is missing an @Override annotation. | 106–109 |
MissingOverride | The method 'getWorkgroup()' is missing an @Override annotation. | 116–119 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'insert(Role)' is missing an @Override annotation. | 63–74 |
MissingOverride | The method 'load(String)' is missing an @Override annotation. | 83–103 |
MissingOverride | The method 'delete(String)' is missing an @Override annotation. | 111–118 |
MissingOverride | The method 'store(Role)' is missing an @Override annotation. | 126–137 |
MissingOverride | The method 'selectRolesList()' is missing an @Override annotation. | 144–163 |
MissingOverride | The method 'selectAll()' is missing an @Override annotation. | 170–190 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'getDescription()' is missing an @Override annotation. | 57–60 |
MissingOverride | The method 'setDescription(String)' is missing an @Override annotation. | 66–69 |
MissingOverride | The method 'getTitle()' is missing an @Override annotation. | 75–78 |
MissingOverride | The method 'setTitle(String)' is missing an @Override annotation. | 84–87 |
MissingOverride | The method 'getImage()' is missing an @Override annotation. | 93–96 |
MissingOverride | The method 'setImage(IFeedResourceImage)' is missing an @Override annotation. | 104–107 |
MissingOverride | The method 'getItems()' is missing an @Override annotation. | 113–116 |
MissingOverride | The method 'setItems(List)' is missing an @Override annotation. | 124–127 |
MissingOverride | The method 'getLanguage()' is missing an @Override annotation. | 133–136 |
MissingOverride | The method 'setLanguage(String)' is missing an @Override annotation. | 144–147 |
MissingOverride | The method 'getLink()' is missing an @Override annotation. | 153–156 |
MissingOverride | The method 'setLink(String)' is missing an @Override annotation. | 164–167 |
MissingOverride | The method 'getDate()' is missing an @Override annotation. | 173–176 |
MissingOverride | The method 'setDate(Date)' is missing an @Override annotation. | 182–185 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'getUrl()' is missing an @Override annotation. | 50–53 |
MissingOverride | The method 'setUrl(String)' is missing an @Override annotation. | 59–62 |
MissingOverride | The method 'getTitle()' is missing an @Override annotation. | 68–71 |
MissingOverride | The method 'setTitle(String)' is missing an @Override annotation. | 77–80 |
MissingOverride | The method 'getLink()' is missing an @Override annotation. | 86–89 |
MissingOverride | The method 'setLink(String)' is missing an @Override annotation. | 95–98 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'getTitle()' is missing an @Override annotation. | 54–57 |
MissingOverride | The method 'setTitle(String)' is missing an @Override annotation. | 63–66 |
MissingOverride | The method 'getLink()' is missing an @Override annotation. | 72–75 |
MissingOverride | The method 'setLink(String)' is missing an @Override annotation. | 81–84 |
MissingOverride | The method 'getDescription()' is missing an @Override annotation. | 90–93 |
MissingOverride | The method 'setDescription(String)' is missing an @Override annotation. | 99–102 |
MissingOverride | The method 'getGUID()' is missing an @Override annotation. | 108–111 |
MissingOverride | The method 'setGUID(String)' is missing an @Override annotation. | 117–120 |
MissingOverride | The method 'getDate()' is missing an @Override annotation. | 126–129 |
MissingOverride | The method 'setDate(Date)' is missing an @Override annotation. | 135–138 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'getKey()' is missing an @Override annotation. | 53–56 |
MissingOverride | The method 'setKey(String)' is missing an @Override annotation. | 64–67 |
MissingOverride | The method 'getTitleI18nKey()' is missing an @Override annotation. | 74–77 |
MissingOverride | The method 'setTitleI18nKey(String)' is missing an @Override annotation. | 85–88 |
MissingOverride | The method 'getClassName()' is missing an @Override annotation. | 95–98 |
MissingOverride | The method 'setClassName(String)' is missing an @Override annotation. | 106–109 |
MissingOverride | The method 'getTitle()' is missing an @Override annotation. | 116–119 |
MissingOverride | The method 'setTitle(String)' is missing an @Override annotation. | 127–130 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'load(String)' is missing an @Override annotation. | 55–73 |
MissingOverride | The method 'store(ReferenceItem)' is missing an @Override annotation. | 76–84 |
MissingOverride | The method 'findAll()' is missing an @Override annotation. | 87–103 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 89 |
MissingOverride | The method 'selectParametersList()' is missing an @Override annotation. | 106–122 |
Rule | Violation | Ligne |
---|---|---|
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 184 |
Rule | Violation | Ligne |
---|---|---|
UnnecessaryModifier | Unnecessary modifier 'private' on constructor 'SecurityHeaderPageCategory(String)': enum constructors are implicitly private | 29–32 |
Rule | Violation | Ligne |
---|---|---|
UnnecessaryModifier | Unnecessary modifier 'private' on constructor 'SecurityHeaderType(String)': enum constructors are implicitly private | 22–25 |
Rule | Violation | Ligne |
---|---|---|
DefaultPackage | Use explicit scoping instead of the default package private level | 69–87 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the newPrimaryKey method if you want a default access modifier | 69–87 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 95–115 |
MissingOverride | The method 'insert(Mode)' is missing an @Override annotation. | 95–115 |
MissingOverride | The method 'load(int)' is missing an @Override annotation. | 124–151 |
MissingOverride | The method 'delete(int)' is missing an @Override annotation. | 159–166 |
MissingOverride | The method 'store(Mode)' is missing an @Override annotation. | 174–192 |
MissingOverride | The method 'selectModesList()' is missing an @Override annotation. | 199–227 |
MissingOverride | The method 'getModesList()' is missing an @Override annotation. | 234–250 |
Rule | Violation | Ligne |
---|---|---|
NPathComplexity | The method 'getOuputXslProperties(int)' has an NPath complexity of 2187 | 140–195 |
CyclomaticComplexity | The method 'getOuputXslProperties(int)' has a cyclomatic complexity of 15. | 140–195 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'insert(PageTemplate)' is missing an @Override annotation. | 65–81 |
MissingOverride | The method 'load(int)' is missing an @Override annotation. | 90–111 |
MissingOverride | The method 'delete(int)' is missing an @Override annotation. | 119–126 |
MissingOverride | The method 'store(PageTemplate)' is missing an @Override annotation. | 134–147 |
MissingOverride | The method 'selectPageTemplatesList()' is missing an @Override annotation. | 154–175 |
MissingOverride | The method 'checkPageTemplateIsUsed(int)' is missing an @Override annotation. | 184–201 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'insert(Style)' is missing an @Override annotation. | 74–86 |
MissingOverride | The method 'load(int)' is missing an @Override annotation. | 95–118 |
MissingOverride | The method 'delete(int)' is missing an @Override annotation. | 126–133 |
MissingOverride | The method 'store(Style)' is missing an @Override annotation. | 141–153 |
MissingOverride | The method 'selectStylesList()' is missing an @Override annotation. | 160–184 |
MissingOverride | The method 'selectPortalComponentList()' is missing an @Override annotation. | 191–206 |
MissingOverride | The method 'selectStyleSheetList(int)' is missing an @Override annotation. | 215–238 |
MissingOverride | The method 'checkStylePortalComponent(int)' is missing an @Override annotation. | 247–264 |
Rule | Violation | Ligne |
---|---|---|
MethodReturnsInternalArray | Returning '_strSource' may expose an internal array. | 162 |
ArrayIsStoredDirectly | The user-supplied array 'strSource' is stored directly. | 171 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'insert(StyleSheet)' is missing an @Override annotation. | 72–92 |
MissingOverride | The method 'load(int)' is missing an @Override annotation. | 101–123 |
MissingOverride | The method 'delete(int)' is missing an @Override annotation. | 131–141 |
MissingOverride | The method 'selectStyleSheetList(int)' is missing an @Override annotation. | 150–189 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 162 |
MissingOverride | The method 'store(StyleSheet)' is missing an @Override annotation. | 197–212 |
MissingOverride | The method 'selectStyleSheetNbPerStyleMode(int, int)' is missing an @Override annotation. | 276–298 |
MissingOverride | The method 'selectModeId(int)' is missing an @Override annotation. | 307–327 |
Rule | Violation | Ligne |
---|---|---|
UncommentedEmptyConstructor | Document empty constructor | 51–53 |
Rule | Violation | Ligne |
---|---|---|
RedundantFieldInitializer | Avoid using redundant field initializer for '_bDefault' | 47 |
Rule | Violation | Ligne |
---|---|---|
ExcessivePublicCount | This class has a bunch of public methods and attributes | 34–739 |
TooManyFields | Too many fields | 63–739 |
GodClass | Possible God Class (WMC=57, ATFD=9, TCC=3.098%) | 63–739 |
ImmutableField | Private field '_userInfo' could be made final; it is only initialized in the declaration or constructor. | 88 |
LooseCoupling | Avoid using implementation types like 'HashMap'; use the interface instead | 88 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 90 |
ImmutableField | Private field '_rights' could be made final; it is only initialized in the declaration or constructor. | 95 |
LooseCoupling | Avoid using implementation types like 'HashMap'; use the interface instead | 95 |
ImmutableField | Private field '_roles' could be made final; it is only initialized in the declaration or constructor. | 100 |
LooseCoupling | Avoid using implementation types like 'HashMap'; use the interface instead | 100 |
UncommentedEmptyConstructor | Document empty constructor | 114–116 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 135–142 |
LinguisticNaming | Linguistics Antipattern - The setter 'setUserInfo' should not return any type except void linguistically | 684–687 |
CommentRequired | Public method and constructor comments are required | 705–708 |
Rule | Violation | Ligne |
---|---|---|
ExcessivePublicCount | This class has a bunch of public methods and attributes | 34–1377 |
ExcessiveClassLength | Avoid really long classes. | 59–1377 |
TooManyMethods | This class has too many methods, consider refactoring it. | 60–1377 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 243 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 406 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 468 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 898 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 903 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 906 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 1098 |
Rule | Violation | Ligne |
---|---|---|
UnnecessaryConstructor | Avoid unnecessary constructors - the compiler will generate these for you | 83–86 |
LinguisticNaming | Linguistics Antipattern - The setter 'setAdminUserFilter' should not return any type except void linguistically | 230–270 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 235–267 |
Rule | Violation | Ligne |
---|---|---|
ExcessivePublicCount | This class has a bunch of public methods and attributes | 34–661 |
TooManyMethods | This class has too many methods, consider refactoring it. | 54–661 |
InsufficientStringBufferDeclaration | StringBuffer constructor is initialized with size 16, but has at least 18 characters appended. | 639 |
Rule | Violation | Ligne |
---|---|---|
ExcessivePublicCount | This class has a bunch of public methods and attributes | 34–483 |
TooManyMethods | This class has too many methods, consider refactoring it. | 51–483 |
Rule | Violation | Ligne |
---|---|---|
UncommentedEmptyConstructor | Document empty constructor | 74–76 |
UnnecessaryConstructor | Avoid unnecessary constructors - the compiler will generate these for you | 74–76 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 271 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 290 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 310 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 346 |
Rule | Violation | Ligne |
---|---|---|
DataClass | The class 'AdminUserField' is suspected to be a Data Class (WOC=16.667%, NOPA=0, NOAM=10, WMC=12) | 44–178 |
Rule | Violation | Ligne |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 54–568 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 141–148 |
NPathComplexity | The method 'selectUsersByFilter(AdminUserFieldFilter)' has an NPath complexity of 220 | 327–398 |
CyclomaticComplexity | The method 'selectUsersByFilter(AdminUserFieldFilter)' has a cyclomatic complexity of 11. | 327–398 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 341 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 350–358 |
CyclomaticComplexity | The method 'selectByFilter(AdminUserFieldFilter)' has a cyclomatic complexity of 11. | 408–480 |
NPathComplexity | The method 'selectByFilter(AdminUserFieldFilter)' has an NPath complexity of 544 | 408–480 |
Rule | Violation | Ligne |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 48–220 |
Rule | Violation | Ligne |
---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 84–87 |
UnnecessaryConstructor | Avoid unnecessary constructors - the compiler will generate these for you | 84–87 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 177 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 245–288 |
Rule | Violation | Ligne |
---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 84–87 |
UnnecessaryConstructor | Avoid unnecessary constructors - the compiler will generate these for you | 84–87 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 177 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 254–297 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'load(int, Locale)' is missing an @Override annotation. | 111–152 |
MissingOverride | The method 'insert(IAttribute)' is missing an @Override annotation. | 161–184 |
MissingOverride | The method 'store(IAttribute)' is missing an @Override annotation. | 192–208 |
MissingOverride | The method 'delete(int)' is missing an @Override annotation. | 216–224 |
MissingOverride | The method 'selectAll(Locale)' is missing an @Override annotation. | 233–277 |
MissingOverride | The method 'selectPluginAttributes(String, Locale)' is missing an @Override annotation. | 288–334 |
MissingOverride | The method 'selectCoreAttributes(Locale)' is missing an @Override annotation. | 343–383 |
MissingOverride | The method 'updateAttributeAnonymization(int, boolean)' is missing an @Override annotation. | 393–401 |
Rule | Violation | Ligne |
---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 105–108 |
CyclomaticComplexity | The method 'setAttributeData(HttpServletRequest)' has a cyclomatic complexity of 11. | 195–251 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 198 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 199 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 200 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 201 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 202 |
Rule | Violation | Ligne |
---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 84–87 |
UnnecessaryConstructor | Avoid unnecessary constructors - the compiler will generate these for you | 84–87 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 177 |
Rule | Violation | Ligne |
---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 90–93 |
UnnecessaryConstructor | Avoid unnecessary constructors - the compiler will generate these for you | 90–93 |
CyclomaticComplexity | The method 'setAttributeData(HttpServletRequest)' has a cyclomatic complexity of 10. | 180–238 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 183 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 183 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 184 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 185 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 186 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 188 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 189 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 201 |
AvoidReassigningLoopVariables | Avoid reassigning the loop control variable 'strValue' | 295 |
Rule | Violation | Ligne |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 46–142 |
Rule | Violation | Ligne |
---|---|---|
LinguisticNaming | Linguistics Antipattern - The setter 'setAttributeData' should not return any type except void linguistically | 304 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'doRemoveUserFields(AdminUser, HttpServletRequest, Locale)' is missing an @Override annotation. | 166–169 |
Rule | Violation | Ligne |
---|---|---|
CyclomaticComplexity | The method 'login(String, String, HttpServletRequest)' has a cyclomatic complexity of 10. | 97–143 |
Rule | Violation | Ligne |
---|---|---|
DataClass | The class 'LuteceDefaultAdminUser' is suspected to be a Data Class (WOC=25.000%, NOPA=0, NOAM=4, WMC=8) | 44–135 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'load(String, AdminAuthentication)' is missing an @Override annotation. | 71–102 |
MissingOverride | The method 'updateResetPassword(LuteceDefaultAdminUser, boolean)' is missing an @Override annotation. | 112–120 |
Rule | Violation | Ligne |
---|---|---|
DefaultPackage | Use explicit scoping instead of the default package private level | 143 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the PROPERTY_PASSWORD_HASH_ITERATIONS field if you want a default access modifier | 143 |
UseUnderscoresInNumericLiterals | Number 210000 should separate every third digit with an underscore | 144 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the DEFAULT_HASH_ITERATIONS field if you want a default access modifier | 144 |
DefaultPackage | Use explicit scoping instead of the default package private level | 144 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the _iterations field if you want a default access modifier | 148 |
DefaultPackage | Use explicit scoping instead of the default package private level | 148 |
CyclomaticComplexity | The constructor 'PBKDF2Password(String, PASSWORD_REPRESENTATION)' has a cyclomatic complexity of 11. | 173–214 |
PreserveStackTrace | New exception is thrown in catch block, original stack trace may be lost | 208 |
ShortVariable | Avoid variables with short names like sb | 249 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 250 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 251 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the DummyPassword constructor if you want a default access modifier | 364–368 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 431–434 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 462–475 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'selectLoginErrors(UserLog, int)' is missing an @Override annotation. | 58–81 |
MissingOverride | The method 'insertLog(UserLog)' is missing an @Override annotation. | 89–100 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 66 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 70 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'canBeRemoved(String)' is missing an @Override annotation. | 60–81 |
MissingOverride | The method 'getRemovalRefusedMessage(String, Locale)' is missing an @Override annotation. | 92–96 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'getWorkgroup()' is missing an @Override annotation. | 93–96 |
Rule | Violation | Ligne |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 48–334 |
MissingOverride | The method 'insert(AdminWorkgroup)' is missing an @Override annotation. | 71–80 |
MissingOverride | The method 'load(String)' is missing an @Override annotation. | 85–103 |
MissingOverride | The method 'delete(String)' is missing an @Override annotation. | 108–116 |
MissingOverride | The method 'store(AdminWorkgroup)' is missing an @Override annotation. | 121–130 |
MissingOverride | The method 'selectWorkgroupList()' is missing an @Override annotation. | 135–154 |
MissingOverride | The method 'checkExistWorkgroup(String)' is missing an @Override annotation. | 159–173 |
MissingOverride | The method 'isUserInWorkgroup(int, String)' is missing an @Override annotation. | 178–195 |
MissingOverride | The method 'checkUserHasWorkgroup(int)' is missing an @Override annotation. | 200–214 |
MissingOverride | The method 'getUserWorkgroups(int)' is missing an @Override annotation. | 219–235 |
MissingOverride | The method 'getUsersListForWorkgroup(String)' is missing an @Override annotation. | 240–263 |
MissingOverride | The method 'deleteAllUsersForWorkgroup(String)' is missing an @Override annotation. | 268–275 |
MissingOverride | The method 'insertUserForWorkgroup(AdminUser, String)' is missing an @Override annotation. | 280–288 |
MissingOverride | The method 'deleteUserFromWorkgroup(int, String)' is missing an @Override annotation. | 293–301 |
MissingOverride | The method 'selectWorkgroupsByFilter(AdminWorkgroupFilter)' is missing an @Override annotation. | 310–333 |
Rule | Violation | Ligne |
---|---|---|
UnnecessaryConstructor | Avoid unnecessary constructors - the compiler will generate these for you | 68–71 |
LinguisticNaming | Linguistics Antipattern - The setter 'setAdminWorkgroupFilter' should not return any type except void linguistically | 141–158 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 146–155 |
Rule | Violation | Ligne |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 46–231 |
Rule | Violation | Ligne |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 45–170 |
Rule | Violation | Ligne |
---|---|---|
ConfusingTernary | Avoid if (x != y) ..; else ..; | 71–78 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 154–161 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 221 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_bServiceAvailable' could be made final; it is only initialized in the declaration or constructor. | 57 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 95–102 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 162–165 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 166–169 |
Rule | Violation | Ligne |
---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 89–98 |
CyclomaticComplexity | The method 'getRemoteUser(HttpServletRequest)' has a cyclomatic complexity of 10. | 131–179 |
PreserveStackTrace | New exception is thrown in catch block, original stack trace may be lost | 205 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–1529 |
GodClass | Possible God Class (WMC=144, ATFD=173, TCC=6.410%) | 104–1529 |
CyclomaticComplexity | The class 'AdminUserService' has a total cyclomatic complexity of 144 (highest 11). | 104–1529 |
ExcessiveClassLength | Avoid really long classes. | 104–1529 |
TooManyMethods | This class has too many methods, consider refactoring it. | 105–1529 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 278–289 |
CyclomaticComplexity | The method 'getFilteredUsersInterface(Collection, HttpServletRequest, Map, UrlItem)' has a cyclomatic complexity of 10. | 307–386 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 345–354 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 356 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 397 |
CyclomaticComplexity | The method 'checkEmail(String)' has a cyclomatic complexity of 11. | 475–519 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 603–610 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 1290 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 1350 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 1358 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–473 |
ExcessiveMethodLength | Avoid really long methods. | 95–207 |
NcssCount | The method 'readLineOfCSVFile(String, int, Locale, String)' has a NCSS line count of 68. | 95–207 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 171 |
AvoidReassigningLoopVariables | Avoid reassigning the loop control variable 'strValue' | 327 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 367 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 427 |
Rule | Violation | Ligne |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 55–372 |
ImmutableField | Private field '_logger' could be made final; it is only initialized in the declaration or constructor. | 58 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 193 |
InsufficientStringBufferDeclaration | StringBuffer constructor is initialized with size 16, but has at least 180 characters appended. | 272 |
CloneThrowsCloneNotSupportedException | clone() method should throw CloneNotSupportedException | 292–295 |
CloneMethodReturnTypeMustMatchClassName | The return type of the clone() method must be the class name when implements Cloneable | 292–295 |
Rule | Violation | Ligne |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 61–479 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 120–132 |
ShortVariable | Avoid variables with short names like cs | 207 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the getInfos method if you want a default access modifier | 244–258 |
DefaultPackage | Use explicit scoping instead of the default package private level | 244–258 |
InsufficientStringBufferDeclaration | StringBuffer constructor is initialized with size 16, but has at least 27 characters appended. | 246 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 247 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 247 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 247 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 248 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 248 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 248 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 249 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 249 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 249 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 250 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 250 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 250 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 251 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 251 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 251 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 252 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 252 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 252 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 253 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 253 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 253 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 254 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 254 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 254 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 255 |
UseUnderscoresInNumericLiterals | Number 10000 should separate every third digit with an underscore | 265 |
UseUnderscoresInNumericLiterals | Number 10000L should separate every third digit with an underscore | 267 |
UseUnderscoresInNumericLiterals | Number 10000L should separate every third digit with an underscore | 268 |
UseUnderscoresInNumericLiterals | Number 10000 should separate every third digit with an underscore | 272 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 305 |
ShortVariable | Avoid variables with short names like cs | 317 |
ShortVariable | Avoid variables with short names like cs | 330 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'getKey(Map, int, LuteceUser)' is missing an @Override annotation. | 62–83 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 73 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 73 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 73 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 77 |
ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 79 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 79 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 79 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 80 |
MissingOverride | The method 'setAllowedParametersList(List)' is missing an @Override annotation. | 88–91 |
MissingOverride | The method 'setIgnoredParametersList(List)' is missing an @Override annotation. | 96–99 |
Rule | Violation | Ligne |
---|---|---|
AvoidUncheckedExceptionsInSignatures | A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause | 56 |
AvoidUncheckedExceptionsInSignatures | A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause | 56 |
AvoidUncheckedExceptionsInSignatures | A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause | 56 |
AvoidUncheckedExceptionsInSignatures | A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause | 56 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_logger' could be made final; it is only initialized in the declaration or constructor. | 69 |
MissingOverride | The method 'parseBlockingCacheTimeoutMillis(FilterConfig)' is missing an @Override annotation. | 152–164 |
AvoidUncheckedExceptionsInSignatures | A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause | 180 |
AvoidUncheckedExceptionsInSignatures | A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause | 180 |
AvoidUncheckedExceptionsInSignatures | A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause | 180 |
AvoidUncheckedExceptionsInSignatures | A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause | 180 |
Rule | Violation | Ligne |
---|---|---|
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the PathCacheService constructor if you want a default access modifier | 54–58 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 54–58 |
InsufficientStringBufferDeclaration | StringBuffer constructor is initialized with size 16, but has at least 21 characters appended. | 79 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 80 |
ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 80 |
Rule | Violation | Ligne |
---|---|---|
TooManyFields | Too many fields | 41–465 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 80 |
CyclomaticComplexity | The method 'getPage(HttpServletRequest, int)' has a cyclomatic complexity of 11. | 190–265 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 336 |
Rule | Violation | Ligne |
---|---|---|
UncommentedEmptyConstructor | Document empty constructor | 50–52 |
ShortVariable | Avoid variables with short names like o | 151 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 162–165 |
ShortVariable | Avoid variables with short names like o | 190 |
Rule | Violation | Ligne |
---|---|---|
GodClass | Possible God Class (WMC=67, ATFD=48, TCC=3.297%) | 64–727 |
ExcessiveMethodLength | Avoid really long methods. | 340–572 |
NPathComplexity | The method 'readCSVFile(Reader, CSVReader, int, boolean, boolean, boolean, Locale, String)' has an NPath complexity of 233024 | 340–572 |
CyclomaticComplexity | The method 'readCSVFile(Reader, CSVReader, int, boolean, boolean, boolean, Locale, String)' has a cyclomatic complexity of 31. | 340–572 |
NcssCount | The method 'readCSVFile(Reader, CSVReader, int, boolean, boolean, boolean, Locale, String)' has a NCSS line count of 103. | 340–572 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 442–474 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 450 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 462 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 476–549 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 532 |
Rule | Violation | Ligne |
---|---|---|
InsufficientStringBufferDeclaration | StringBuffer constructor is initialized with size 16, but has at least 24 characters appended. | 136 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 137 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 138 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 142 |
InsufficientStringBufferDeclaration | StringBuffer constructor is initialized with size 16, but has at least 30 characters appended. | 181 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 182 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 183 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 187 |
InsufficientStringBufferDeclaration | StringBuffer constructor is initialized with size 16, but has at least 29 characters appended. | 230 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 231 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 232 |
InsufficientStringBufferDeclaration | StringBuffer constructor is initialized with size 16, but has at least 54 characters appended. | 264 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 265 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 266 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 270 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 285 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 296 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 303 |
Rule | Violation | Ligne |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 52–385 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 58 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 74–120 |
UseCollectionIsEmpty | Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() | 84 |
AvoidProtectedMethodInFinalClassNotExtending | Avoid protected methods in a final class that doesnt extend anything other than Object. Change to private or package access. | 325–328 |
Rule | Violation | Ligne |
---|---|---|
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 39 |
AvoidStringBufferField | StringBuffers can grow quite a lot, and so may become a source of memory leak (if the owning class has a long life time). | 57 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 89 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_formatterDateTime' could be made final; it is only initialized in the declaration or constructor. | 47 |
AvoidProtectedMethodInFinalClassNotExtending | Avoid protected methods in a final class that doesnt extend anything other than Object. Change to private or package access. | 176–179 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 285 |
Rule | Violation | Ligne |
---|---|---|
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 59 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 65 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 86 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 96 |
AvoidCatchingThrowable | A catch statement should never catch throwable since it includes errors. | 189 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 221–231 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 225 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 290 |
CommentRequired | Public method and constructor comments are required | 306–309 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 358–361 |
Rule | Violation | Ligne |
---|---|---|
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 44 |
DefaultPackage | Use explicit scoping instead of the default package private level | 46 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the DEAMON_THREAD_BEAN_NAME field if you want a default access modifier | 46 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 85 |
AvoidCatchingThrowable | A catch statement should never catch throwable since it includes errors. | 106 |
Rule | Violation | Ligne |
---|---|---|
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 61 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 61 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 63 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 73–76 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'run()' is missing an @Override annotation. | 50–54 |
Rule | Violation | Ligne |
---|---|---|
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 42 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 44 |
ImmutableField | Private field '_runnable' could be made final; it is only initialized in the declaration or constructor. | 44 |
ImmutableField | Private field '_strKey' could be made final; it is only initialized in the declaration or constructor. | 45 |
ImmutableField | Private field '_plugin' could be made final; it is only initialized in the declaration or constructor. | 46 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 59 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 76 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 87 |
Rule | Violation | Ligne |
---|---|---|
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 59 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 61 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 69 |
FieldDeclarationsShouldBeAtStartOfClass | Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. | 91 |
FieldDeclarationsShouldBeAtStartOfClass | Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. | 92 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 93 |
FieldDeclarationsShouldBeAtStartOfClass | Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. | 93 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 93 |
ImmutableField | Private field '_mapThreadByKey' could be made final; it is only initialized in the declaration or constructor. | 93 |
FieldDeclarationsShouldBeAtStartOfClass | Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. | 94 |
ImmutableField | Private field '_listThread' could be made final; it is only initialized in the declaration or constructor. | 94 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 94 |
AssignmentInOperand | Avoid assignments in operands | 112 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 116–150 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 118 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 120–142 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 147 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 166 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 168 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 168 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 176 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 189 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 191 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 204 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 221 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 239–242 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 249–257 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 264–267 |
Rule | Violation | Ligne |
---|---|---|
ShortVariable | Avoid variables with short names like o | 185 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 252 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_listRegisteredListeners' could be made final; it is only initialized in the declaration or constructor. | 51 |
LinguisticNaming | Linguistics Antipattern - The getter 'getDashboardComponents' should not return void linguistically | 74–80 |
Rule | Violation | Ligne |
---|---|---|
GodClass | Possible God Class (WMC=56, ATFD=45, TCC=3.268%) | 60–530 |
ShortVariable | Avoid variables with short names like dc | 136 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 291 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 433 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 495 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 41–71 |
Rule | Violation | Ligne |
---|---|---|
ShortVariable | Avoid variables with short names like dc | 136 |
CyclomaticComplexity | The method 'updateDashboardComponents(IAdminDashboardComponent, List, int)' has a cyclomatic complexity of 11. | 224–254 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 286 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 358 |
Rule | Violation | Ligne |
---|---|---|
ShortVariable | Avoid variables with short names like is | 82 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 87 |
LinguisticNaming | Linguistics Antipattern - The getter 'getPoolList' should not return void linguistically | 148–154 |
Rule | Violation | Ligne |
---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 69–72 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 114 |
MissingOverride | The method 'getParentLogger()' is missing an @Override annotation. | 226–229 |
Rule | Violation | Ligne |
---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 107–122 |
Rule | Violation | Ligne |
---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 50–54 |
DefaultPackage | Use explicit scoping instead of the default package private level | 74–77 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the getEntityCacheKey method if you want a default access modifier | 74–77 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the getPrefixCacheKey method if you want a default access modifier | 86–91 |
DefaultPackage | Use explicit scoping instead of the default package private level | 86–91 |
DefaultPackage | Use explicit scoping instead of the default package private level | 96–99 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the removeCachedPrefixes method if you want a default access modifier | 96–99 |
Rule | Violation | Ligne |
---|---|---|
GodClass | Possible God Class (WMC=52, ATFD=14, TCC=19.118%) | 51–473 |
DefaultPackage | Use explicit scoping instead of the default package private level | 57 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the VALUE_MISSING field if you want a default access modifier | 57 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 102–105 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 107–110 |
ShortVariable | Avoid variables with short names like p | 154 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 157–174 |
ShortVariable | Avoid variables with short names like sb | 354 |
ShortVariable | Avoid variables with short names like e | 448 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 466 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 40–47 |
Rule | Violation | Ligne |
---|---|---|
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 90 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 107 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 120–132 |
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 148–155 |
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 174–197 |
Rule | Violation | Ligne |
---|---|---|
UnnecessaryModifier | Unnecessary modifier 'public' on method 'parseAndClean': the method is declared in an interface type | 63 |
Rule | Violation | Ligne |
---|---|---|
UnnecessaryConstructor | Avoid unnecessary constructors - the compiler will generate these for you | 65–68 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 83 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 10–40 |
AbstractClassWithoutAbstractMethod | This abstract class does not have any abstract methods | 10–40 |
ImmutableField | Private field '_listeners' could be made final; it is only initialized in the declaration or constructor. | 13 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 13 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 5–25 |
RedundantFieldInitializer | Avoid using redundant field initializer for '_instance' | 8 |
NonThreadSafeSingleton | Singleton is not thread safe | 16–19 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 36–51 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 36–105 |
ShortVariable | Avoid variables with short names like e | 66 |
ShortVariable | Avoid variables with short names like e | 81 |
Rule | Violation | Ligne |
---|---|---|
UnnecessaryModifier | Unnecessary modifiers 'static final' on field 'LINK_VALIDITY_TIME': the field is declared in an interface type | 50 |
Rule | Violation | Ligne |
---|---|---|
UnnecessaryModifier | Unnecessary modifier 'public' on method 'checkAccessRights': the method is declared in an interface type | 60 |
Rule | Violation | Ligne |
---|---|---|
UnnecessaryModifier | Unnecessary modifier 'public' on method 'getName': the method is declared in an interface type | 58 |
UnnecessaryModifier | Unnecessary modifier 'public' on method 'isDefault': the method is declared in an interface type | 65 |
UnnecessaryModifier | Unnecessary modifier 'public' on method 'healthCheck': the method is declared in an interface type | 72–76 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 92 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 119 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 149 |
ShortVariable | Avoid variables with short names like sb | 206 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 207 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 208 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 209 |
Rule | Violation | Ligne |
---|---|---|
UnusedPrivateField | Avoid unused private fields such as 'MESSAGE_ACCESS_DENIED_KEY'. | 49 |
Rule | Violation | Ligne |
---|---|---|
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 228 |
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. | 266 |
CommentRequired | Public method and constructor comments are required | 300–303 |
CommentRequired | Public method and constructor comments are required | 305–308 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 50–176 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 59–62 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 70–73 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 110–132 |
MissingOverride | The method 'addImageResource(FileItem)' is missing an @Override annotation. | 144–155 |
Rule | Violation | Ligne |
---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 78–81 |
MissingOverride | The method 'getImageResource(int)' is missing an @Override annotation. | 108–127 |
ControlStatementBraces | This statement should have braces | 111 |
MissingOverride | The method 'getResourceTypeId()' is missing an @Override annotation. | 134–137 |
MissingOverride | The method 'addImageResource(FileItem)' is missing an @Override annotation. | 158–169 |
Rule | Violation | Ligne |
---|---|---|
ConfusingTernary | Avoid if (x != y) ..; else ..; | 60–72 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 71 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 48 |
ImmutableField | Private field '_mapInitParameters' could be made final; it is only initialized in the declaration or constructor. | 48 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_listFilters' could be made final; it is only initialized in the declaration or constructor. | 54 |
ShortVariable | Avoid variables with short names like f | 86 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 139 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_mapInitParameters' could be made final; it is only initialized in the declaration or constructor. | 53 |
ShortVariable | Avoid variables with short names like o | 224 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'doFilter(ServletRequest, ServletResponse)' is missing an @Override annotation. | 122–129 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_strName' could be made final; it is only initialized in the declaration or constructor. | 48 |
ImmutableField | Private field '_context' could be made final; it is only initialized in the declaration or constructor. | 49 |
ImmutableField | Private field '_mapInitParameters' could be made final; it is only initialized in the declaration or constructor. | 50 |
MissingOverride | The method 'getFilterName()' is missing an @Override annotation. | 72–75 |
MissingOverride | The method 'getServletContext()' is missing an @Override annotation. | 80–83 |
MissingOverride | The method 'getInitParameter(String)' is missing an @Override annotation. | 88–91 |
MissingOverride | The method 'getInitParameterNames()' is missing an @Override annotation. | 98–101 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'init(FilterConfig)' is missing an @Override annotation. | 58–61 |
MissingOverride | The method 'doFilter(ServletRequest, ServletResponse, FilterChain)' is missing an @Override annotation. | 66–109 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 99 |
MissingOverride | The method 'destroy()' is missing an @Override annotation. | 114–132 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 127 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the matchMapping method if you want a default access modifier | 143–146 |
DefaultPackage | Use explicit scoping instead of the default package private level | 143–146 |
DefaultPackage | Use explicit scoping instead of the default package private level | 159–202 |
NPathComplexity | The method 'matchFilterUrl(String, String)' has an NPath complexity of 240 | 159–202 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the matchFilterUrl method if you want a default access modifier | 159–202 |
CyclomaticComplexity | The method 'matchFilterUrl(String, String)' has a cyclomatic complexity of 13. | 159–202 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 171 |
SimplifyBooleanReturns | Avoid unnecessary if..then..else statements when returning booleans | 178–182 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_logger' could be made final; it is only initialized in the declaration or constructor. | 69 |
MissingOverride | The method 'init(FilterConfig)' is missing an @Override annotation. | 80–83 |
UncommentedEmptyMethodBody | Document empty method body | 81–83 |
MissingOverride | The method 'doFilter(ServletRequest, ServletResponse, FilterChain)' is missing an @Override annotation. | 99–109 |
CollapsibleIfStatements | These nested if statements could be combined | 153–156 |
MissingOverride | The method 'destroy()' is missing an @Override annotation. | 189–192 |
UncommentedEmptyMethodBody | Document empty method body | 190–192 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_logger' could be made final; it is only initialized in the declaration or constructor. | 64 |
MissingOverride | The method 'init(FilterConfig)' is missing an @Override annotation. | 74–77 |
UncommentedEmptyMethodBody | Document empty method body | 75–77 |
MissingOverride | The method 'doFilter(ServletRequest, ServletResponse, FilterChain)' is missing an @Override annotation. | 93–101 |
MissingOverride | The method 'destroy()' is missing an @Override annotation. | 128–131 |
UncommentedEmptyMethodBody | Document empty method body | 129–131 |
Rule | Violation | Ligne |
---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 61–66 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 75–80 |
Rule | Violation | Ligne |
---|---|---|
UncommentedEmptyMethodBody | Document empty method body | 58–60 |
Rule | Violation | Ligne |
---|---|---|
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 164 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 198 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 40–76 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 45–49 |
CommentRequired | Public method and constructor comments are required | 45–49 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 80 |
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 | 82 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 85 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 117–124 |
ShortVariable | Avoid variables with short names like sb | 155 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 204 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 204–234 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 206 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 247 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 253 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 40–47 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Public method and constructor comments are required | 51–55 |
UncommentedEmptyConstructor | Document empty constructor | 57–60 |
CommentRequired | Public method and constructor comments are required | 57–60 |
MethodReturnsInternalArray | Returning '_strImage' may expose an internal array. | 69 |
ArrayIsStoredDirectly | The user-supplied array 'strImage' is stored directly. | 78 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 50 |
Rule | Violation | Ligne |
---|---|---|
ShortVariable | Avoid variables with short names like sc | 107 |
ShortVariable | Avoid variables with short names like in | 115 |
AssignmentInOperand | Avoid assignments in operands | 120 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 200 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 51 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 75 |
Rule | Violation | Ligne |
---|---|---|
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the LUTECE_BANNER_VERSION field if you want a default access modifier | 43–45 |
DefaultPackage | Use explicit scoping instead of the default package private level | 43–45 |
DefaultPackage | Use explicit scoping instead of the default package private level | 47–50 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the LUTECE_BANNER_SERVER field if you want a default access modifier | 47–50 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–360 |
ExcessiveMethodLength | Avoid really long methods. | 125–245 |
InsufficientStringBufferDeclaration | StringBuffer constructor is initialized with size 16, but has at least 71 characters appended. | 227 |
ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 228 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 230 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 313 |
ShortVariable | Avoid variables with short names like p | 314 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 320 |
ShortVariable | Avoid variables with short names like fw | 341 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 345 |
Rule | Violation | Ligne |
---|---|---|
ShortVariable | Avoid variables with short names like e | 56 |
Rule | Violation | Ligne |
---|---|---|
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 69 |
Rule | Violation | Ligne |
---|---|---|
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 69 |
Rule | Violation | Ligne |
---|---|---|
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 81 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 103 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'register()' is missing an @Override annotation. | 57–70 |
ShortVariable | Avoid variables with short names like rt | 59 |
ShortVariable | Avoid variables with short names like p | 64 |
MissingOverride | The method 'getResourceIdList(Locale)' is missing an @Override annotation. | 79–89 |
MissingOverride | The method 'getTitle(String, Locale)' is missing an @Override annotation. | 100–105 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'getResourceTypeCode()' is missing an @Override annotation. | 257–260 |
MissingOverride | The method 'getResourceId()' is missing an @Override annotation. | 267–270 |
AddEmptyString | Do not add empty strings | 269 |
MissingOverride | The method 'setLocale(Locale)' is missing an @Override annotation. | 278–281 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 53 |
ShortVariable | Avoid variables with short names like is | 71 |
ShortVariable | Avoid variables with short names like is | 83 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'getEntityManagerFactory()' is missing an @Override annotation. | 69–82 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'process()' is missing an @Override annotation. | 79–159 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 84 |
ShortVariable | Avoid variables with short names like ds | 94 |
ShortVariable | Avoid variables with short names like tm | 141 |
MissingOverride | The method 'getName()' is missing an @Override annotation. | 166–169 |
Rule | Violation | Ligne |
---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 51–56 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 64–76 |
Rule | Violation | Ligne |
---|---|---|
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 60 |
Rule | Violation | Ligne |
---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 53–56 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 71–79 |
Rule | Violation | Ligne |
---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 79–142 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 92–141 |
AvoidDuplicateLiterals | The String literal "{} {} " appears 4 times in this file; the first occurrence is on line 122 | 122 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 124 |
CyclomaticComplexity | The method 'sendMail(MailItem, Transport, Session, StringBuilder)' has a cyclomatic complexity of 12. | 219–271 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 224 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 226 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 228 |
Rule | Violation | Ligne |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 52–628 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 88 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 111–112 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 137–138 |
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. | 200–201 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 232–234 |
ExcessiveParameterList | Avoid long parameter lists. | 232–234 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 270–271 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 298–299 |
ExcessiveParameterList | Avoid long parameter lists. | 329–330 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 329–330 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 362 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 385–386 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 411–412 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 444–445 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 470–471 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 499–500 |
ShortVariable | Avoid variables with short names like sb | 595 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–707 |
GodClass | Possible God Class (WMC=47, ATFD=86, TCC=16.190%) | 82–707 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 154 |
AvoidProtectedMethodInFinalClassNotExtending | Avoid protected methods in a final class that doesnt extend anything other than Object. Change to private or package access. | 181–188 |
AvoidProtectedMethodInFinalClassNotExtending | Avoid protected methods in a final class that doesnt extend anything other than Object. Change to private or package access. | 206–216 |
AvoidProtectedMethodInFinalClassNotExtending | Avoid protected methods in a final class that doesnt extend anything other than Object. Change to private or package access. | 234–288 |
AvoidProtectedMethodInFinalClassNotExtending | Avoid protected methods in a final class that doesnt extend anything other than Object. Change to private or package access. | 306–340 |
AvoidProtectedMethodInFinalClassNotExtending | Avoid protected methods in a final class that doesnt extend anything other than Object. Change to private or package access. | 358–381 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 397–405 |
AvoidProtectedMethodInFinalClassNotExtending | Avoid protected methods in a final class that doesnt extend anything other than Object. Change to private or package access. | 420–429 |
AvoidProtectedMethodInFinalClassNotExtending | Avoid protected methods in a final class that doesnt extend anything other than Object. Change to private or package access. | 452–485 |
PreserveStackTrace | New exception is thrown in catch block, original stack trace may be lost | 465 |
AvoidProtectedMethodInFinalClassNotExtending | Avoid protected methods in a final class that doesnt extend anything other than Object. Change to private or package access. | 500–538 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 530 |
AvoidProtectedMethodInFinalClassNotExtending | Avoid protected methods in a final class that doesnt extend anything other than Object. Change to private or package access. | 549–552 |
ShortVariable | Avoid variables with short names like st | 587 |
AvoidProtectedMethodInFinalClassNotExtending | Avoid protected methods in a final class that doesnt extend anything other than Object. Change to private or package access. | 605–625 |
AssignmentInOperand | Avoid assignments in operands | 617 |
CyclomaticComplexity | The method 'convertUrlAttachmentDataSourceToByteArrayDataSource(UrlAttachment)' has a cyclomatic complexity of 11. | 634–706 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 637 |
ShortVariable | Avoid variables with short names like bo | 645 |
ShortVariable | Avoid variables with short names like o | 651 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_listMails' could be made final; it is only initialized in the declaration or constructor. | 46 |
MissingOverride | The method 'send(MailItem)' is missing an @Override annotation. | 54–60 |
MissingOverride | The method 'consume()' is missing an @Override annotation. | 67–81 |
MissingOverride | The method 'size()' is missing an @Override annotation. | 88–91 |
Rule | Violation | Ligne |
---|---|---|
ConfusingTernary | Avoid if (x != y) ..; else ..; | 186–193 |
Rule | Violation | Ligne |
---|---|---|
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 166–167 |
ArrayIsStoredDirectly | The user-supplied array 'messageArgs' is stored directly. | 166 |
Rule | Violation | Ligne |
---|---|---|
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 242–243 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 269–270 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 333–334 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 336 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 480 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 501 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 523 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 38–63 |
ImmutableField | Private field '_strText' could be made final; it is only initialized in the declaration or constructor. | 42 |
ImmutableField | Private field '_strTitle' could be made final; it is only initialized in the declaration or constructor. | 43 |
CommentRequired | Public method and constructor comments are required | 45–50 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_strTextKey' could be made final; it is only initialized in the declaration or constructor. | 62 |
ImmutableField | Private field '_strTitleKey' could be made final; it is only initialized in the declaration or constructor. | 63 |
ImmutableField | Private field '_strUrl' could be made final; it is only initialized in the declaration or constructor. | 64 |
ImmutableField | Private field '_strTarget' could be made final; it is only initialized in the declaration or constructor. | 65 |
ImmutableField | Private field '_nType' could be made final; it is only initialized in the declaration or constructor. | 67 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 111 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 122 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 91 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 157 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 164 |
Rule | Violation | Ligne |
---|---|---|
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 267–268 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 295–296 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 325–326 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 328 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 353 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 356 |
LinguisticNaming | Linguistics Antipattern - The setter 'setSiteMessageUrl' should not return any type except void linguistically | 444–450 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 516–535 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'getName()' is missing an @Override annotation. | 56–59 |
DefaultPackage | Use explicit scoping instead of the default package private level | 68–78 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the getKey method if you want a default access modifier | 68–78 |
CloneMethodReturnTypeMustMatchClassName | The return type of the clone() method must be the class name when implements Cloneable | 144–147 |
CloneThrowsCloneNotSupportedException | clone() method should throw CloneNotSupportedException | 144–147 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_pageService' could be made final; it is only initialized in the declaration or constructor. | 53 |
MissingOverride | The method 'isInvoked(HttpServletRequest)' is missing an @Override annotation. | 67–71 |
MissingOverride | The method 'getName()' is missing an @Override annotation. | 76–79 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_page' could be made final; it is only initialized in the declaration or constructor. | 50 |
ImmutableField | Private field '_nType' could be made final; it is only initialized in the declaration or constructor. | 51 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'register()' is missing an @Override annotation. | 60–78 |
ShortVariable | Avoid variables with short names like rt | 62 |
ShortVariable | Avoid variables with short names like p | 67 |
MissingOverride | The method 'getResourceIdList(Locale)' is missing an @Override annotation. | 87–90 |
MissingOverride | The method 'getTitle(String, Locale)' is missing an @Override annotation. | 101–106 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–1157 |
ExcessiveClassLength | Avoid really long classes. | 97–1157 |
CyclomaticComplexity | The class 'PageService' has a total cyclomatic complexity of 86 (highest 19). | 97–1157 |
GodClass | Possible God Class (WMC=86, ATFD=104, TCC=6.907%) | 97–1157 |
TooManyMethods | This class has too many methods, consider refactoring it. | 98–1157 |
PreserveStackTrace | New exception is thrown in catch block, original stack trace may be lost | 263 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 361 |
CyclomaticComplexity | The method 'buildPageContent(String, int, HttpServletRequest)' has a cyclomatic complexity of 11. | 401–492 |
CyclomaticComplexity | The method 'getPageContent(int, int, HttpServletRequest)' has a cyclomatic complexity of 12. | 508–573 |
NPathComplexity | The method 'getPageContent(int, int, HttpServletRequest)' has an NPath complexity of 360 | 508–573 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 534 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 555 |
ShortVariable | Avoid variables with short names like t | 570 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 588 |
CyclomaticComplexity | The method 'getPortletContent(HttpServletRequest, Portlet, Map, int)' has a cyclomatic complexity of 19. | 612–710 |
NPathComplexity | The method 'getPortletContent(HttpServletRequest, Portlet, Map, int)' has an NPath complexity of 4608 | 612–710 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 643 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 650–660 |
UselessStringValueOf | No need to call String.valueOf to append to a string. | 676 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 679 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 696 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 706 |
SimplifiedTernary | Ternary operators that can be simplified with || or && | 720 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 1006 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 1032 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 1052–1066 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 1059 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'getName()' is missing an @Override annotation. | 55–58 |
MissingOverride | The method 'processPortletEvent(PortletEvent)' is missing an @Override annotation. | 63–74 |
Rule | Violation | Ligne |
---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 94–108 |
ShortVariable | Avoid variables with short names like p1 | 153 |
ShortVariable | Avoid variables with short names like p2 | 153 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–1322 |
ExcessivePublicCount | This class has a bunch of public methods and attributes | 34–1322 |
ExcessiveClassLength | Avoid really long classes. | 84–1322 |
CyclomaticComplexity | The class 'Plugin' has a total cyclomatic complexity of 128 (highest 7). | 84–1322 |
TooManyFields | Too many fields | 84–1322 |
GodClass | Possible God Class (WMC=128, ATFD=75, TCC=4.023%) | 84–1322 |
TooManyMethods | This class has too many methods, consider refactoring it. | 85–1322 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 138 |
DefaultPackage | Use explicit scoping instead of the default package private level | 155–214 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the load method if you want a default access modifier | 155–214 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 190 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 192 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 210 |
ShortVariable | Avoid variables with short names like cs | 436 |
ShortVariable | Avoid variables with short names like o | 1107 |
UseLocaleWithCaseConversions | When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 1320 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'init()' is missing an @Override annotation. | 45–48 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_plugin' could be made final; it is only initialized in the declaration or constructor. | 46 |
ImmutableField | Private field '_nType' could be made final; it is only initialized in the declaration or constructor. | 47 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–1028 |
ExcessivePublicCount | This class has a bunch of public methods and attributes | 34–1028 |
GodClass | Possible God Class (WMC=79, ATFD=8, TCC=1.461%) | 74–1028 |
TooManyFields | Too many fields | 74–1028 |
TooManyMethods | This class has too many methods, consider refactoring it. | 75–1028 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 92 |
ImmutableField | Private field '_listCssStyleSheets' could be made final; it is only initialized in the declaration or constructor. | 92 |
ImmutableField | Private field '_listJavascriptFiles' could be made final; it is only initialized in the declaration or constructor. | 93 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 93 |
ImmutableField | Private field '_listAdminCssStyleSheets' could be made final; it is only initialized in the declaration or constructor. | 94 |
ImmutableField | Private field '_listAdminJavascriptFiles' could be made final; it is only initialized in the declaration or constructor. | 95 |
ImmutableField | Private field '_listFreemarkerMacrosFiles' could be made final; it is only initialized in the declaration or constructor. | 96 |
ImmutableField | Private field '_listRights' could be made final; it is only initialized in the declaration or constructor. | 97 |
ImmutableField | Private field '_listPortletTypes' could be made final; it is only initialized in the declaration or constructor. | 98 |
ImmutableField | Private field '_listDaemons' could be made final; it is only initialized in the declaration or constructor. | 99 |
ImmutableField | Private field '_listApplications' could be made final; it is only initialized in the declaration or constructor. | 100 |
ImmutableField | Private field '_listFilters' could be made final; it is only initialized in the declaration or constructor. | 101 |
ImmutableField | Private field '_listServlets' could be made final; it is only initialized in the declaration or constructor. | 102 |
ImmutableField | Private field '_listListeners' could be made final; it is only initialized in the declaration or constructor. | 103 |
ImmutableField | Private field '_listContentServices' could be made final; it is only initialized in the declaration or constructor. | 104 |
ImmutableField | Private field '_listSearchIndexers' could be made final; it is only initialized in the declaration or constructor. | 105 |
ImmutableField | Private field '_listInsertServices' could be made final; it is only initialized in the declaration or constructor. | 106 |
ImmutableField | Private field '_listRBACResourceTypes' could be made final; it is only initialized in the declaration or constructor. | 107 |
ImmutableField | Private field '_listPageIncludes' could be made final; it is only initialized in the declaration or constructor. | 108 |
ImmutableField | Private field '_listDashboardComponents' could be made final; it is only initialized in the declaration or constructor. | 109 |
ImmutableField | Private field '_listAdminDashboardComponents' could be made final; it is only initialized in the declaration or constructor. | 110 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 111 |
ImmutableField | Private field '_mapParams' could be made final; it is only initialized in the declaration or constructor. | 111 |
ShortVariable | Avoid variables with short names like is | 753 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 72 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 173–214 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 206 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 237–240 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 308 |
Rule | Violation | Ligne |
---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 78–82 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 89–97 |
MissingOverride | The method 'getName()' is missing an @Override annotation. | 104–107 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 185 |
InsufficientStringBufferDeclaration | StringBuffer constructor is initialized with size 16, but has at least 19 characters appended. | 297 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–784 |
GodClass | Possible God Class (WMC=63, ATFD=111, TCC=5.238%) | 82–784 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 129 |
ShortVariable | Avoid variables with short names like cs | 167 |
CyclomaticComplexity | The method 'buildPageContent(int, PageData, int, HttpServletRequest)' has a cyclomatic complexity of 13. | 266–356 |
NPathComplexity | The method 'buildPageContent(int, PageData, int, HttpServletRequest)' has an NPath complexity of 2304 | 266–356 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 321 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 344 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 408 |
CyclomaticComplexity | The method 'getXPagePathContent(String, int, HttpServletRequest)' has a cyclomatic complexity of 10. | 428–504 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 493 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 710 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 733–741 |
Rule | Violation | Ligne |
---|---|---|
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 313 |
PreserveStackTrace | New exception is thrown in catch block, original stack trace may be lost | 326 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'register()' is missing an @Override annotation. | 61–79 |
ShortVariable | Avoid variables with short names like rt | 63 |
ShortVariable | Avoid variables with short names like p | 68 |
MissingOverride | The method 'getResourceIdList(Locale)' is missing an @Override annotation. | 88–91 |
MissingOverride | The method 'getTitle(String, Locale)' is missing an @Override annotation. | 102–108 |
Rule | Violation | Ligne |
---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 68–76 |
Rule | Violation | Ligne |
---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 56–64 |
Rule | Violation | Ligne |
---|---|---|
UncommentedEmptyConstructor | Document empty constructor | 57–59 |
Rule | Violation | Ligne |
---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 56–64 |
Rule | Violation | Ligne |
---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 71–79 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 88 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 142–148 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 156–162 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 290–298 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'setLocale(Locale)' is missing an @Override annotation. | 56–59 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 252 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_mapPermissions' could be made final; it is only initialized in the declaration or constructor. | 53 |
MissingOverride | The method 'setLocale(Locale)' is missing an @Override annotation. | 72–75 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 51 |
ShortVariable | Avoid variables with short names like rt | 69 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_bServiceAvailable' could be made final; it is only initialized in the declaration or constructor. | 54 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 78–85 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the isPatternValide method if you want a default access modifier | 103–106 |
DefaultPackage | Use explicit scoping instead of the default package private level | 103–106 |
DefaultPackage | Use explicit scoping instead of the default package private level | 115–118 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the isPatternValide method if you want a default access modifier | 115–118 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 122 |
Rule | Violation | Ligne |
---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 57–60 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_listLoaders' could be made final; it is only initialized in the declaration or constructor. | 59 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 64–76 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 68–75 |
ShortVariable | Avoid variables with short names like st | 95 |
MissingOverride | The method 'getName()' is missing an @Override annotation. | 120–123 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 146 |
ShortVariable | Avoid variables with short names like i | 214 |
ShortVariable | Avoid variables with short names like i | 233 |
ShortVariable | Avoid variables with short names like j | 239 |
Rule | Violation | Ligne |
---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 67–75 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–668 |
GodClass | Possible God Class (WMC=59, ATFD=82, TCC=18.182%) | 74–668 |
TooManyMethods | This class has too many methods, consider refactoring it. | 75–668 |
AvoidStringBufferField | StringBuffers can grow quite a lot, and so may become a source of memory leak (if the owning class has a long life time). | 88 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 133 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 182–261 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 186 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 229 |
AvoidDuplicateLiterals | The String literal "</strong>\r\n" appears 4 times in this file; the first occurrence is on line 281 | 281 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 287 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 322 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 373–383 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 410–418 |
ShortVariable | Avoid variables with short names like e | 469 |
ShortVariable | Avoid variables with short names like e | 485 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 488 |
ShortVariable | Avoid variables with short names like e | 502 |
ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 504 |
ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 507 |
ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 514 |
ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 522 |
ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 528 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–327 |
UseUnderscoresInNumericLiterals | Number 1000000 should separate every third digit with an underscore | 78 |
MissingOverride | The method 'getSearchResults(String, HttpServletRequest)' is missing an @Override annotation. | 95–148 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 106–128 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 110–123 |
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 182–186 |
CyclomaticComplexity | The method 'search(String, String, Query, HttpServletRequest, boolean)' has a cyclomatic complexity of 11. | 221–291 |
ShortVariable | Avoid variables with short names like ir | 224 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 234 |
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 273–284 |
ShortVariable | Avoid variables with short names like si | 277 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 286 |
Rule | Violation | Ligne |
---|---|---|
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 106 |
ExcessiveMethodLength | Avoid really long methods. | 196–302 |
ShortVariable | Avoid variables with short names like ft | 198 |
PreserveStackTrace | New exception is thrown in catch block, original stack trace may be lost | 241 |
ShortVariable | Avoid variables with short names like sb | 246 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 252 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 257 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 265 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 275 |
Rule | Violation | Ligne |
---|---|---|
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 92 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_strMetadata' could be made final; it is only initialized in the declaration or constructor. | 59 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 156 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 177 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 219 |
Rule | Violation | Ligne |
---|---|---|
ShortVariable | Avoid variables with short names like rt | 59 |
ShortVariable | Avoid variables with short names like p | 64 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 77 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 93 |
Rule | Violation | Ligne |
---|---|---|
UnnecessaryModifier | Unnecessary modifier 'public' on method 'info': the method is declared in an interface type | 58 |
UnnecessaryModifier | Unnecessary modifier 'public' on method 'info': the method is declared in an interface type | 72–75 |
UnnecessaryModifier | Unnecessary modifier 'public' on method 'debug': the method is declared in an interface type | 91 |
UnnecessaryModifier | Unnecessary modifier 'public' on method 'debug': the method is declared in an interface type | 105–108 |
UnnecessaryModifier | Unnecessary modifier 'public' on method 'trace': the method is declared in an interface type | 124 |
UnnecessaryModifier | Unnecessary modifier 'public' on method 'trace': the method is declared in an interface type | 138–141 |
UnnecessaryModifier | Unnecessary modifier 'public' on method 'warn': the method is declared in an interface type | 157 |
UnnecessaryModifier | Unnecessary modifier 'public' on method 'warn': the method is declared in an interface type | 171–174 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 141 |
ImmutableField | Private field '_mapUserInfo' could be made final; it is only initialized in the declaration or constructor. | 141 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 161 |
ImmutableField | Private field '_workgroups' could be made final; it is only initialized in the declaration or constructor. | 161 |
MethodReturnsInternalArray | Returning '_roles' may expose an internal array. | 286 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 295 |
MethodReturnsInternalArray | Returning '_groups' may expose an internal array. | 332 |
ShortVariable | Avoid variables with short names like j | 370 |
ShortVariable | Avoid variables with short names like j | 401 |
CloneMethodReturnTypeMustMatchClassName | The return type of the clone() method must be the class name when implements Cloneable | 481–484 |
Rule | Violation | Ligne |
---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 49–52 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 59–66 |
Rule | Violation | Ligne |
---|---|---|
UnnecessaryModifier | Unnecessary modifier 'final' on method 'encryptRsa': the method is already in a final class | 64–67 |
UnnecessaryModifier | Unnecessary modifier 'final' on method 'encryptRsa': the method is already in a final class | 76–81 |
UnnecessaryModifier | Unnecessary modifier 'final' on method 'decryptRsa': the method is already in a final class | 91–94 |
UnnecessaryModifier | Unnecessary modifier 'final' on method 'decryptRsa': the method is already in a final class | 103–109 |
Rule | Violation | Ligne |
---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 94–114 |
PositionLiteralsFirstInCaseInsensitiveComparisons | Position literals first in String comparisons for EqualsIgnoreCase | 100 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 112 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 198 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 389 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 501 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the isUsersListAvailable method if you want a default access modifier | 568–571 |
DefaultPackage | Use explicit scoping instead of the default package private level | 568–571 |
Rule | Violation | Ligne |
---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 72–80 |
Rule | Violation | Ligne |
---|---|---|
AvoidDuplicateLiterals | The String literal "null" appears 4 times in this file; the first occurrence is on line 97 | 97 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 97 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 115 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 133 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 151 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 167 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 198–199 |
ShortVariable | Avoid variables with short names like md | 228 |
ShortVariable | Avoid variables with short names like sb | 232 |
Rule | Violation | Ligne |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 26–310 |
ImmutableField | Private field '_mapSecurityHeaders' could be made final; it is only initialized in the declaration or constructor. | 31 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 31 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 31 |
DefaultPackage | Use explicit scoping instead of the default package private level | 33 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the _mapActiveSecurityHeadersForFilters field if you want a default access modifier | 33 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 33 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 33 |
RedundantFieldInitializer | Avoid using redundant field initializer for '_bMapRefreshDone' | 37 |
ImmutableField | Private field '_logger' could be made final; it is only initialized in the declaration or constructor. | 39 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 55 |
CollapsibleIfStatements | These nested if statements could be combined | 61–64 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 294 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 295 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 302 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_strName' could be made final; it is only initialized in the declaration or constructor. | 47 |
ImmutableField | Private field '_servlet' could be made final; it is only initialized in the declaration or constructor. | 48 |
ImmutableField | Private field '_strMapping' could be made final; it is only initialized in the declaration or constructor. | 49 |
ImmutableField | Private field '_plugin' could be made final; it is only initialized in the declaration or constructor. | 50 |
ImmutableField | Private field '_mapInitParameters' could be made final; it is only initialized in the declaration or constructor. | 51 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_strName' could be made final; it is only initialized in the declaration or constructor. | 48 |
ImmutableField | Private field '_context' could be made final; it is only initialized in the declaration or constructor. | 49 |
ImmutableField | Private field '_mapInitParameters' could be made final; it is only initialized in the declaration or constructor. | 50 |
MissingOverride | The method 'getServletName()' is missing an @Override annotation. | 72–75 |
MissingOverride | The method 'getServletContext()' is missing an @Override annotation. | 80–83 |
MissingOverride | The method 'getInitParameter(String)' is missing an @Override annotation. | 88–91 |
MissingOverride | The method 'getInitParameterNames()' is missing an @Override annotation. | 98–101 |
Rule | Violation | Ligne |
---|---|---|
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 87 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 111 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_mapInitParameters' could be made final; it is only initialized in the declaration or constructor. | 49 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 49 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_listServlets' could be made final; it is only initialized in the declaration or constructor. | 53 |
ShortVariable | Avoid variables with short names like s | 85 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 137 |
Rule | Violation | Ligne |
---|---|---|
ShortVariable | Avoid variables with short names like se | 49 |
MissingOverride | The method 'sessionCreated(HttpSessionEvent)' is missing an @Override annotation. | 49–55 |
ShortVariable | Avoid variables with short names like se | 60 |
MissingOverride | The method 'sessionDestroyed(HttpSessionEvent)' is missing an @Override annotation. | 60–66 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 75 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 208 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 270 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the ContextFileFilter nested class if you want a default access modifier | 392–408 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 50–101 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 57 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 65 |
CommentRequired | Protected method constructor comments are required | 100 |
Rule | Violation | Ligne |
---|---|---|
NonThreadSafeSingleton | Singleton is not thread safe | 304–308 |
Rule | Violation | Ligne |
---|---|---|
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 73 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 134–141 |
UseCollectionIsEmpty | Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() | 180 |
ShortVariable | Avoid variables with short names like ci | 199 |
ShortVariable | Avoid variables with short names like ci | 206 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 207–215 |
Rule | Violation | Ligne |
---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 61–71 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'register()' is missing an @Override annotation. | 59–77 |
ShortVariable | Avoid variables with short names like rt | 61 |
ShortVariable | Avoid variables with short names like p | 66 |
MissingOverride | The method 'getResourceIdList(Locale)' is missing an @Override annotation. | 86–89 |
MissingOverride | The method 'getTitle(String, Locale)' is missing an @Override annotation. | 100–103 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_listRegisteredListeners' could be made final; it is only initialized in the declaration or constructor. | 54 |
Rule | Violation | Ligne |
---|---|---|
CyclomaticComplexity | The method 'checkUserFields(HttpServletRequest, Locale)' has a cyclomatic complexity of 10. | 91–121 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 174 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 282 |
Rule | Violation | Ligne |
---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 60–68 |
Rule | Violation | Ligne |
---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 65–73 |
Rule | Violation | Ligne |
---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 78–93 |
Rule | Violation | Ligne |
---|---|---|
ConfusingTernary | Avoid if (x != y) ..; else ..; | 73–95 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 78–95 |
Rule | Violation | Ligne |
---|---|---|
ShortVariable | Avoid variables with short names like t | 69 |
ShortVariable | Avoid variables with short names like e | 83 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 91–94 |
ShortVariable | Avoid variables with short names like t | 108 |
ShortVariable | Avoid variables with short names like sb | 123 |
Rule | Violation | Ligne |
---|---|---|
ShortVariable | Avoid variables with short names like t | 150 |
Rule | Violation | Ligne |
---|---|---|
GodClass | Possible God Class (WMC=68, ATFD=40, TCC=5.846%) | 62–640 |
PreserveStackTrace | New exception is thrown in catch block, original stack trace may be lost | 194 |
NPathComplexity | The method 'getBaseUrl(HttpServletRequest)' has an NPath complexity of 240 | 218–273 |
CyclomaticComplexity | The method 'getBaseUrl(HttpServletRequest)' has a cyclomatic complexity of 12. | 218–273 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 239–242 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 261 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 264 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 269 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 303 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 328 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 352 |
Rule | Violation | Ligne |
---|---|---|
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 78 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 223 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 223 |
Rule | Violation | Ligne |
---|---|---|
DefaultPackage | Use explicit scoping instead of the default package private level | 59 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the PROPERTY_CRYPTO_KEY field if you want a default access modifier | 59 |
DefaultPackage | Use explicit scoping instead of the default package private level | 60 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the DSKEY_CRYPTO_KEY field if you want a default access modifier | 60 |
ShortVariable | Avoid variables with short names like md | 81 |
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 224–234 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 226 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 229 |
Rule | Violation | Ligne |
---|---|---|
MissingSerialVersionUID | Classes implementing Serializable should set a serialVersionUID | 41–53 |
Rule | Violation | Ligne |
---|---|---|
ShortVariable | Avoid variables with short names like id | 50 |
ShortVariable | Avoid variables with short names like id | 61 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_listRegisteredListeners' could be made final; it is only initialized in the declaration or constructor. | 45 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveClassLength | Avoid really long classes. | 67–1069 |
GodClass | Possible God Class (WMC=68, ATFD=37, TCC=24.878%) | 67–1069 |
TooManyMethods | This class has too many methods, consider refactoring it. | 68–1069 |
ImmutableField | Private field '_bServiceAvailable' could be made final; it is only initialized in the declaration or constructor. | 72 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 98–105 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 294 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 535 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 564 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 836 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 894 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 1047 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'register()' is missing an @Override annotation. | 62–85 |
ShortVariable | Avoid variables with short names like rt | 64 |
ShortVariable | Avoid variables with short names like p | 69 |
MissingOverride | The method 'getResourceIdList(Locale)' is missing an @Override annotation. | 94–97 |
MissingOverride | The method 'getTitle(String, Locale)' is missing an @Override annotation. | 108–124 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 116 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 123 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–583 |
TooManyMethods | This class has too many methods, consider refactoring it. | 76–583 |
UnusedPrivateField | Avoid unused private fields such as 'PROPERTY_SITE_CODE'. | 85 |
ImmutableField | Private field '_listErrors' could be made final; it is only initialized in the declaration or constructor. | 89 |
ImmutableField | Private field '_listInfos' could be made final; it is only initialized in the declaration or constructor. | 90 |
ImmutableField | Private field '_listWarnings' could be made final; it is only initialized in the declaration or constructor. | 91 |
ImmutableField | Private field '_controller' could be made final; it is only initialized in the declaration or constructor. | 92 |
ShortVariable | Avoid variables with short names like m | 116 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 260 |
ShortVariable | Avoid variables with short names like os | 569 |
Rule | Violation | Ligne |
---|---|---|
UncommentedEmptyConstructor | Document empty constructor | 52–54 |
Rule | Violation | Ligne |
---|---|---|
ConfusingTernary | Avoid if (x != y) ..; else ..; | 274 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 275 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 276 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 277 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–953 |
GodClass | Possible God Class (WMC=72, ATFD=72, TCC=3.949%) | 85–953 |
TooManyMethods | This class has too many methods, consider refactoring it. | 86–953 |
ImmutableField | Private field '_listErrors' could be made final; it is only initialized in the declaration or constructor. | 104 |
ImmutableField | Private field '_listInfos' could be made final; it is only initialized in the declaration or constructor. | 105 |
ImmutableField | Private field '_listWarnings' could be made final; it is only initialized in the declaration or constructor. | 106 |
ImmutableField | Private field '_controller' could be made final; it is only initialized in the declaration or constructor. | 108 |
CyclomaticComplexity | The method 'processController(HttpServletRequest)' has a cyclomatic complexity of 14. | 145–208 |
ShortVariable | Avoid variables with short names like m | 159 |
PreserveStackTrace | New exception is thrown in catch block, original stack trace may be lost | 199 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 229–237 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 251–259 |
ShortVariable | Avoid variables with short names like t | 293 |
ShortVariable | Avoid variables with short names like t | 329 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 344 |
ShortVariable | Avoid variables with short names like os | 800 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–612 |
GodClass | Possible God Class (WMC=47, ATFD=95, TCC=3.922%) | 86–612 |
CyclomaticComplexity | The method 'getContent(HttpServletRequest, int)' has a cyclomatic complexity of 10. | 162–213 |
EmptyCatchBlock | Avoid empty catch blocks | 195–199 |
ShortVariable | Avoid variables with short names like cs | 203 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 205 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 240 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 367 |
LooseCoupling | Avoid using implementation types like 'HashMap'; use the interface instead | 403 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 528 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 550 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 557 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 588–589 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 85 |
ShortVariable | Avoid variables with short names like t | 100 |
Rule | Violation | Ligne |
---|---|---|
ConfusingTernary | Avoid if (x != y) ..; else ..; | 164 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 240 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 245 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 110 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 115 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 120 |
ShortVariable | Avoid variables with short names like t | 126 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 204 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–632 |
GodClass | Possible God Class (WMC=57, ATFD=117, TCC=7.500%) | 88–632 |
ImmutableField | Private field '_bAdminAvatar' could be made final; it is only initialized in the declaration or constructor. | 144 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 156 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 197 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 201 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 224 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 401–414 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 430 |
CyclomaticComplexity | The method 'doModifyDefaultAdminUserPassword(HttpServletRequest)' has a cyclomatic complexity of 10. | 447–504 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 457 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 552–566 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 560 |
CommentRequired | Public method and constructor comments are required | 568–571 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 579–606 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 594 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 620 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 626 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 77 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–907 |
GodClass | Possible God Class (WMC=79, ATFD=183, TCC=9.357%) | 90–907 |
ShortVariable | Avoid variables with short names like cs | 198 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 203–210 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 291 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 312–320 |
LinguisticNaming | Linguistics Antipattern - The setter 'setParentPageId' should not return any type except void linguistically | 336–350 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 372 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 459–467 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 518 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 529 |
CyclomaticComplexity | The method 'getPageData(HttpServletRequest, Page)' has a cyclomatic complexity of 12. | 666–769 |
ExcessiveMethodLength | Avoid really long methods. | 666–769 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 668 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 671 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 672 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 673 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 675 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 676 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 677 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 678 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 679 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 680 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 684 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 708 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 755 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 816 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 857 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 879–888 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 891–899 |
Rule | Violation | Ligne |
---|---|---|
UnusedPrivateField | Avoid unused private fields such as 'JSP_DO_MODIFY_POSITION'. | 79 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 160 |
AvoidCatchingNPE | Avoid catching NullPointerException; consider removing the cause of the NPE. | 160 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 177 |
CyclomaticComplexity | The method 'doRemovePortlet(HttpServletRequest)' has a cyclomatic complexity of 10. | 215–256 |
AvoidCatchingNPE | Avoid catching NullPointerException; consider removing the cause of the NPE. | 228 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 228 |
CyclomaticComplexity | The method 'getModifyPortletStatus(HttpServletRequest)' has a cyclomatic complexity of 10. | 267–312 |
AvoidCatchingNPE | Avoid catching NullPointerException; consider removing the cause of the NPE. | 281 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 281 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 306 |
NPathComplexity | The method 'doModifyPortletStatus(HttpServletRequest)' has an NPath complexity of 216 | 323–367 |
CyclomaticComplexity | The method 'doModifyPortletStatus(HttpServletRequest)' has a cyclomatic complexity of 12. | 323–367 |
AvoidCatchingNPE | Avoid catching NullPointerException; consider removing the cause of the NPE. | 341 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 341 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 389 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 390 |
AvoidCatchingNPE | Avoid catching NullPointerException; consider removing the cause of the NPE. | 396 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 396 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 111 |
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 | 287 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_service' could be made final; it is only initialized in the declaration or constructor. | 67 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 75 |
Rule | Violation | Ligne |
---|---|---|
MissingSerialVersionUID | Classes implementing Serializable should set a serialVersionUID | 57–190 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 156 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 167 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 201 |
CyclomaticComplexity | The method 'getFeatureGroupsList(AdminUser)' has a cyclomatic complexity of 16. | 218–307 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 261–304 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 56–128 |
CyclomaticComplexity | The method 'doGet(HttpServletRequest, HttpServletResponse)' has a cyclomatic complexity of 11. | 63–125 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 99 |
CommentRequired | Protected method constructor comments are required | 127 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 36–47 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 36–47 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 64 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'init(FilterConfig)' is missing an @Override annotation. | 60–65 |
MissingOverride | The method 'doFilter(ServletRequest, ServletResponse, FilterChain)' is missing an @Override annotation. | 81–94 |
MissingOverride | The method 'destroy()' is missing an @Override annotation. | 99–102 |
Rule | Violation | Ligne |
---|---|---|
ConfusingTernary | Avoid if (x != y) ..; else ..; | 78–94 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Public method and constructor comments are required | 97–124 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 101 |
CommentRequired | Public method and constructor comments are required | 126–140 |
CommentRequired | Public method and constructor comments are required | 142–160 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 154 |
CommentRequired | Public method and constructor comments are required | 162–171 |
CommentRequired | Public method and constructor comments are required | 173–204 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 177 |
CommentRequired | Public method and constructor comments are required | 206–234 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 82 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 130 |
Rule | Violation | Ligne |
---|---|---|
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 111 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 111 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 193 |
ShortVariable | Avoid variables with short names like t | 198 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 221 |
ShortVariable | Avoid variables with short names like t | 226 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 245 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 246 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 249 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 249 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 249 |
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 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 289 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 289 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 289 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 340 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 88 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 109 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 165 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 169 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–357 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 129 |
ExcessiveMethodLength | Avoid really long methods. | 144–244 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 146 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 146 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 150 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 355 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'fillTemplate(Map, PageData, int, HttpServletRequest)' is missing an @Override annotation. | 101–139 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 108 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 207 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 235 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 286–289 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Public method and constructor comments are required | 50–54 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 50–54 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'fillTemplate(Map, PageData, int, HttpServletRequest)' is missing an @Override annotation. | 64–83 |
Rule | Violation | Ligne |
---|---|---|
ConfusingTernary | Avoid if (x != y) ..; else ..; | 75 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 76–77 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'fillTemplate(Map, PageData, int, HttpServletRequest)' is missing an @Override annotation. | 74–116 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 79–112 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 89 |
ShortVariable | Avoid variables with short names like t | 97 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'fillTemplate(Map, PageData, int, HttpServletRequest)' is missing an @Override annotation. | 64–71 |
Rule | Violation | Ligne |
---|---|---|
MissingOverride | The method 'fillTemplate(Map, PageData, int, HttpServletRequest)' is missing an @Override annotation. | 84–104 |
CyclomaticComplexity | The method 'buildTreeMenuContent(int, int, HttpServletRequest)' has a cyclomatic complexity of 10. | 117–208 |
PositionLiteralsFirstInCaseInsensitiveComparisons | Position literals first in String comparisons for EqualsIgnoreCase | 127 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 202 |
Rule | Violation | Ligne |
---|---|---|
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 131 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 106 |
ShortVariable | Avoid variables with short names like t | 111 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 135–144 |
ShortVariable | Avoid variables with short names like is | 137 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 167 |
Rule | Violation | Ligne |
---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 110–140 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 112–139 |
CollapsibleIfStatements | These nested if statements could be combined | 161–164 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 161–164 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 210–223 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–541 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 138 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 260 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 281 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 344 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 389–399 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 432 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 525 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 528 |
Rule | Violation | Ligne |
---|---|---|
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 82 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 141 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 146 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 148 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 186 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 208 |
Rule | Violation | Ligne |
---|---|---|
CyclomaticComplexity | The method 'setPortletCommonData(HttpServletRequest, Portlet)' has a cyclomatic complexity of 12. | 190–283 |
NPathComplexity | The method 'setPortletCommonData(HttpServletRequest, Portlet)' has an NPath complexity of 768 | 190–283 |
LinguisticNaming | Linguistics Antipattern - The setter 'setPortletCommonData' should not return any type except void linguistically | 190–283 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 192 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 196 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 201 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 202 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 203 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 204 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 205 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 206 |
Rule | Violation | Ligne |
---|---|---|
UselessOverridingMethod | Overriding method merely calls super | 81–84 |
MissingOverride | The method 'init(ServletConfig)' is missing an @Override annotation. | 81–84 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 125–157 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 133–157 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 145 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–1105 |
ExcessiveClassLength | Avoid really long classes. | 89–1105 |
CyclomaticComplexity | The class 'RoleManagementJspBean' has a total cyclomatic complexity of 98 (highest 16). | 89–1105 |
TooManyMethods | This class has too many methods, consider refactoring it. | 90–1105 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 240 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 261 |
CyclomaticComplexity | The method 'doCreateRole(HttpServletRequest)' has a cyclomatic complexity of 11. | 279–319 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 283 |
CyclomaticComplexity | The method 'doModifyRole(HttpServletRequest)' has a cyclomatic complexity of 16. | 331–401 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 333 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 336 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 415 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 433 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 440–462 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 491 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 519 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 569 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 652 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 707 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 707 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 708 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 709 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 709 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 710 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 711 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 711 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 712 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 713 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 713 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 714 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 715 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 715 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 716 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 717 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 717 |
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 720–726 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 722 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 724 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 735 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 735 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 736 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 737 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 737 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 738 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 739 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 739 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 740 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 741 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 741 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 742 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 743 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 743 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 744 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 745 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 745 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 781 |
CyclomaticComplexity | The method 'doSelectPermissions(HttpServletRequest)' has a cyclomatic complexity of 12. | 821–889 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 823 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 824 |
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 875–886 |
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 877–885 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 900 |
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 1015–1024 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 1103 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 87 |
Rule | Violation | Ligne |
---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 117–120 |
UnnecessaryConstructor | Avoid unnecessary constructors - the compiler will generate these for you | 117–120 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 133 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 157 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 225 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 225 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 256 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 304 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–287 |
NPathComplexity | The method 'getPage(HttpServletRequest, int, Plugin)' has an NPath complexity of 672 | 131–242 |
CyclomaticComplexity | The method 'getPage(HttpServletRequest, int, Plugin)' has a cyclomatic complexity of 13. | 131–242 |
ExcessiveMethodLength | Avoid really long methods. | 131–242 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 210 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 257 |
Rule | Violation | Ligne |
---|---|---|
ConfusingTernary | Avoid if (x != y) ..; else ..; | 104–111 |
Rule | Violation | Ligne |
---|---|---|
CyclomaticComplexity | The method 'doModifyAdvancedParameters(HttpServletRequest)' has a cyclomatic complexity of 11. | 91–146 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 108 |
Rule | Violation | Ligne |
---|---|---|
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 167 |
CyclomaticComplexity | The method 'doModifyPageTemplate(HttpServletRequest)' has a cyclomatic complexity of 14. | 250–332 |
NPathComplexity | The method 'doModifyPageTemplate(HttpServletRequest)' has an NPath complexity of 480 | 250–332 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 255 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 256 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 259 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 262 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 266 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 360 |
Rule | Violation | Ligne |
---|---|---|
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 150 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 155 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 161 |
AddEmptyString | Do not add empty strings | 162 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 180 |
CyclomaticComplexity | The method 'doCreateStyle(HttpServletRequest)' has a cyclomatic complexity of 10. | 199–251 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 201 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 246 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 265 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 287 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 291 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 293 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 334 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 349 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 358 |
Rule | Violation | Ligne |
---|---|---|
ConfusingTernary | Avoid if (x != y) ..; else ..; | 86 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–527 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 143 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 173 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 178 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 184 |
AddEmptyString | Do not add empty strings | 186 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 207 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 263 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 265 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 266 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 269 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 320 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 349 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 413 |
LinguisticNaming | Linguistics Antipattern - The method 'isValid' indicates linguistically it returns a boolean, but it returns 'String' | 462–481 |
ShortVariable | Avoid variables with short names like is | 472 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 475 |
Rule | Violation | Ligne |
---|---|---|
ConfusingTernary | Avoid if (x != y) ..; else ..; | 117–128 |
ShortVariable | Avoid variables with short names like cs | 120 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 164–174 |
ShortVariable | Avoid variables with short names like cs | 167 |
ShortVariable | Avoid variables with short names like cs | 197 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 204 |
ShortVariable | Avoid variables with short names like cs | 234 |
Rule | Violation | Ligne |
---|---|---|
UseUnderscoresInNumericLiterals | Number 30000 should separate every third digit with an underscore | 87 |
Rule | Violation | Ligne |
---|---|---|
GodClass | Possible God Class (WMC=51, ATFD=81, TCC=16.667%) | 66–512 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 117 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 158 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 191 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 212 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 255 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 309 |
CyclomaticComplexity | The method 'verifyCoreCompatibility(Plugin)' has a cyclomatic complexity of 10. | 411–457 |
Rule | Violation | Ligne |
---|---|---|
GodClass | Possible God Class (WMC=57, ATFD=57, TCC=9.091%) | 66–627 |
LooseCoupling | Avoid using implementation types like 'HashMap'; use the interface instead | 142 |
LooseCoupling | Avoid using implementation types like 'HashMap'; use the interface instead | 175 |
LooseCoupling | Avoid using implementation types like 'HashMap'; use the interface instead | 418 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 557 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 596 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 597 |
MissingBreakInSwitch | A switch statement does not contain a break | 603–613 |
Rule | Violation | Ligne |
---|---|---|
ShortVariable | Avoid variables with short names like t | 69 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 132 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 171 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 191 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 203–219 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 211–218 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 239 |
InsufficientStringBufferDeclaration | StringBuffer constructor is initialized with size 16, but has at least 55 characters appended. | 312 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 66 |
Rule | Violation | Ligne |
---|---|---|
UseUnderscoresInNumericLiterals | Number 10240 should separate every third digit with an underscore | 65 |
SingularField | Perhaps '_filterConfig' could be replaced by a local variable. | 70 |
UnusedPrivateField | Avoid unused private fields such as '_filterConfig'. | 70 |
LooseCoupling | Avoid using implementation types like 'LinkedList'; use the interface instead | 83 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 92 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 93 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 135–201 |
ImmutableField | Private field '_strRemoteAddr' could be made final; it is only initialized in the declaration or constructor. | 247 |
ImmutableField | Private field '_lRequestTime' could be made final; it is only initialized in the declaration or constructor. | 248 |
Rule | Violation | Ligne |
---|---|---|
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 95 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_item' could be made final; it is only initialized in the declaration or constructor. | 54 |
Rule | Violation | Ligne |
---|---|---|
ConfusingTernary | Avoid if (x != y) ..; else ..; | 143–170 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 77 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 85 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 97–109 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–745 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 180 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 195–198 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 246 |
CommentRequired | Public method and constructor comments are required | 279–312 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 289 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 323 |
CyclomaticComplexity | The method 'doLogin(HttpServletRequest)' has a cyclomatic complexity of 11. | 392–465 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 480 |
CommentRequired | Public method and constructor comments are required | 526–606 |
NPathComplexity | The method 'doResetPassword(HttpServletRequest)' has an NPath complexity of 3456 | 526–606 |
CyclomaticComplexity | The method 'doResetPassword(HttpServletRequest)' has a cyclomatic complexity of 15. | 526–606 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 528 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 620 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–2772 |
CyclomaticComplexity | The class 'AdminUserJspBean' has a total cyclomatic complexity of 282 (highest 14). | 121–2772 |
ExcessiveClassLength | Avoid really long classes. | 121–2772 |
GodClass | Possible God Class (WMC=282, ATFD=577, TCC=28.677%) | 121–2772 |
TooManyMethods | This class has too many methods, consider refactoring it. | 122–2772 |
ImmutableField | Private field '_bAdminAvatar' could be made final; it is only initialized in the declaration or constructor. | 380 |
CyclomaticComplexity | The method 'getManageAdminUsers(HttpServletRequest)' has a cyclomatic complexity of 10. | 393–492 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 403 |
AddEmptyString | Do not add empty strings | 479 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 511 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 591 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 625 |
NPathComplexity | The method 'doCreateAdminUser(HttpServletRequest)' has an NPath complexity of 408 | 659–775 |
CyclomaticComplexity | The method 'doCreateAdminUser(HttpServletRequest)' has a cyclomatic complexity of 11. | 659–775 |
NcssCount | The method 'doCreateAdminUser(HttpServletRequest)' has a NCSS line count of 64. | 659–775 |
ExcessiveMethodLength | Avoid really long methods. | 659–775 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 661 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 662 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 663 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 664 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 665 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 666 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 667 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 668 |
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. | 702 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 704 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 780 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 781 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 782 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 841 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 841 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 842 |
EmptyStatementNotInLoop | An empty statement (semicolon) not part of a loop | 879 |
NcssCount | The method 'doModifyAdminUser(HttpServletRequest)' has a NCSS line count of 63. | 915–1028 |
CyclomaticComplexity | The method 'doModifyAdminUser(HttpServletRequest)' has a cyclomatic complexity of 14. | 915–1028 |
ExcessiveMethodLength | Avoid really long methods. | 915–1028 |
NPathComplexity | The method 'doModifyAdminUser(HttpServletRequest)' has an NPath complexity of 432 | 915–1028 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 918 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 919 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 920 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 921 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 922 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 923 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 924 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 925 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 1047 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 1047 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 1048 |
CyclomaticComplexity | The method 'doModifyAdminUserPassword(HttpServletRequest)' has a cyclomatic complexity of 11. | 1099–1162 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 1126 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 1129 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 1182 |
CyclomaticComplexity | The method 'doImportUsersFromFile(HttpServletRequest)' has a cyclomatic complexity of 11. | 1209–1277 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 1225 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 1296 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 1335 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 1336 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 1337 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 1338 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 1437 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 1562 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 1593 |
OptimizableToArrayCall | This call to Collection.toArray() may be optimizable | 1615 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 1620 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 1647 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 1655 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 1693 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 1726 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 1793 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 1816 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 1823 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 1862 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 2023 |
ExcessiveMethodLength | Avoid really long methods. | 2043–2147 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 2056 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 2276 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 2344 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 2441 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 2502–2517 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 2533 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 2714 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–446 |
ImmutableField | Private field '_logger' could be made final; it is only initialized in the declaration or constructor. | 90 |
Rule | Violation | Ligne |
---|---|---|
ShortVariable | Avoid variables with short names like t | 72 |
Rule | Violation | Ligne |
---|---|---|
ShortVariable | Avoid variables with short names like t | 76 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 118 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 194 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 220 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 266 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 286 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 287 |
CyclomaticComplexity | The method 'doMoveUpAttributeField(HttpServletRequest)' has a cyclomatic complexity of 10. | 313–356 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 322 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 325 |
ShortVariable | Avoid variables with short names like it | 336 |
CyclomaticComplexity | The method 'doMoveDownAttributeField(HttpServletRequest)' has a cyclomatic complexity of 10. | 367–410 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 376 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 379 |
ShortVariable | Avoid variables with short names like it | 389 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 125 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 211 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 281 |
ShortVariable | Avoid variables with short names like it | 340 |
ShortVariable | Avoid variables with short names like it | 387 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_locale' could be made final; it is only initialized in the declaration or constructor. | 58 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–637 |
AddEmptyString | Do not add empty strings | 219 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 242 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 262 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 310 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 329 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 394 |
CyclomaticComplexity | The method 'getAssignUsers(HttpServletRequest)' has a cyclomatic complexity of 10. | 421–523 |
ExcessiveMethodLength | Avoid really long methods. | 421–523 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 423 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 423 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 427 |
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 547–556 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 635 |
Rule | Violation | Ligne |
---|---|---|
UnnecessaryConstructor | Avoid unnecessary constructors - the compiler will generate these for you | 87–90 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 222 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 224–232 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 276 |
Rule | Violation | Ligne |
---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 52–56 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_listRoles' could be made final; it is only initialized in the declaration or constructor. | 52 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–575 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 195 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 309–326 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 351 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 413 |
CyclomaticComplexity | The method 'getXslExportData(HttpServletRequest, XslExport)' has a cyclomatic complexity of 12. | 434–504 |
LinguisticNaming | Linguistics Antipattern - The method 'isValid' indicates linguistically it returns a boolean, but it returns 'String' | 513–532 |
ShortVariable | Avoid variables with short names like is | 523 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 526 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 139 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 6–31 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_strRootPath' could be made final; it is only initialized in the declaration or constructor. | 56 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 58 |
ImmutableField | Private field '_mapPropertiesFiles' could be made final; it is only initialized in the declaration or constructor. | 58 |
FinalFieldCouldBeStatic | This final field could be made static | 60 |
FinalFieldCouldBeStatic | This final field could be made static | 61 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 107–112 |
PositionLiteralsFirstInCaseInsensitiveComparisons | Position literals first in String comparisons for EqualsIgnoreCase | 293 |
Rule | Violation | Ligne |
---|---|---|
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 145 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 184 |
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 205–214 |
Rule | Violation | Ligne |
---|---|---|
UselessStringValueOf | No need to call String.valueOf to append to a string. | 66 |
Rule | Violation | Ligne |
---|---|---|
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 134 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 145–152 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 171 |
ShortVariable | Avoid variables with short names like sb | 190 |
Rule | Violation | Ligne |
---|---|---|
MethodReturnsInternalArray | Returning 'VARIABLES_PREFIX' may expose an internal array. | 74 |
Rule | Violation | Ligne |
---|---|---|
AssignmentToNonFinalStatic | Possible unsafe assignment to a non-final static field in a constructor. | 52 |
ImmutableField | Private field '_interpolator' could be made final; it is only initialized in the declaration or constructor. | 53 |
ShortVariable | Avoid variables with short names like sb | 111 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_locale' could be made final; it is only initialized in the declaration or constructor. | 49 |
ImmutableField | Private field '_constraintViolation' could be made final; it is only initialized in the declaration or constructor. | 50 |
ImmutableField | Private field '_config' could be made final; it is only initialized in the declaration or constructor. | 51 |
ShortVariable | Avoid variables with short names like cv | 63 |
Rule | Violation | Ligne |
---|---|---|
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 103–106 |
UseLocaleWithCaseConversions | When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 109 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 116 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 122 |
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 214–217 |
UseLocaleWithCaseConversions | When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 220 |
Rule | Violation | Ligne |
---|---|---|
GodClass | Possible God Class (WMC=71, ATFD=71, TCC=15.402%) | 70–738 |
TooManyMethods | This class has too many methods, consider refactoring it. | 71–738 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 181 |
NPathComplexity | The method 'filterSortAndPaginate(HttpServletRequest, List)' has an NPath complexity of 14832 | 259–393 |
ExcessiveMethodLength | Avoid really long methods. | 259–393 |
CyclomaticComplexity | The method 'filterSortAndPaginate(HttpServletRequest, List)' has a cyclomatic complexity of 24. | 259–393 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 329 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 371–378 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 498 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 499 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 589 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 637 |
UseLocaleWithCaseConversions | When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 703 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 711 |
Rule | Violation | Ligne |
---|---|---|
UncommentedEmptyConstructor | Document empty constructor | 47–49 |
Rule | Violation | Ligne |
---|---|---|
LooseCoupling | Avoid using implementation types like 'ArrayList'; use the interface instead | 53 |
ImmutableField | Private field '_listFilter' could be made final; it is only initialized in the declaration or constructor. | 53 |
UncommentedEmptyConstructor | Document empty constructor | 58–60 |
Rule | Violation | Ligne |
---|---|---|
UseUnderscoresInNumericLiterals | Number 86400000 should separate every third digit with an underscore | 55 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 169–185 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 173–180 |
SimpleDateFormatNeedsLocale | When instantiating a SimpleDateFormat object, specify a Locale | 175 |
ShortVariable | Avoid variables with short names like df | 253 |
ShortVariable | Avoid variables with short names like df | 263 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 297–313 |
SimpleDateFormatNeedsLocale | When instantiating a SimpleDateFormat object, specify a Locale | 303 |
SimpleDateFormatNeedsLocale | When instantiating a SimpleDateFormat object, specify a Locale | 332 |
SimpleDateFormatNeedsLocale | When instantiating a SimpleDateFormat object, specify a Locale | 357 |
Rule | Violation | Ligne |
---|---|---|
ConfusingTernary | Avoid if (x != y) ..; else ..; | 85 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the setMockMapEnv method if you want a default access modifier | 111–114 |
DefaultPackage | Use explicit scoping instead of the default package private level | 111–114 |
Rule | Violation | Ligne |
---|---|---|
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 135–138 |
AssignmentInOperand | Avoid assignments in operands | 180 |
UnnecessaryModifier | Unnecessary modifier 'final' on method 'normalizeFileName': the method is already in a final class | 197–200 |
UseLocaleWithCaseConversions | When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 199 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_strName' could be made final; it is only initialized in the declaration or constructor. | 44 |
ImmutableField | Private field '_strExtension' could be made final; it is only initialized in the declaration or constructor. | 45 |
MissingOverride | The method 'accept(File, String)' is missing an @Override annotation. | 69–84 |
Rule | Violation | Ligne |
---|---|---|
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 82 |
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 101–109 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 128 |
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 147–155 |
UseLocaleWithCaseConversions | When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 174 |
Rule | Violation | Ligne |
---|---|---|
AddEmptyString | Do not add empty strings | 100 |
AddEmptyString | Do not add empty strings | 113 |
AddEmptyString | Do not add empty strings | 125 |
AddEmptyString | Do not add empty strings | 148 |
AddEmptyString | Do not add empty strings | 210 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 309 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 348–362 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 354–361 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 381 |
Rule | Violation | Ligne |
---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 64–87 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_listItems' could be made final; it is only initialized in the declaration or constructor. | 52 |
ImmutableField | Private field '_strParameterName' could be made final; it is only initialized in the declaration or constructor. | 55 |
CyclomaticComplexity | The method 'setCurrentItemId(String)' has a cyclomatic complexity of 11. | 83–119 |
Rule | Violation | Ligne |
---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 63–86 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 123 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 124 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 184–193 |
Rule | Violation | Ligne |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 56–480 |
ShortVariable | Avoid variables with short names like e | 103 |
InsufficientStringBufferDeclaration | StringBuffer constructor is initialized with size 40, but has at least 44 characters appended. | 215 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 216–228 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 244–265 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 377 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 378 |
ShortVariable | Avoid variables with short names like sb | 390 |
ShortVariable | Avoid variables with short names like sb | 416 |
ShortVariable | Avoid variables with short names like sb | 442 |
ShortVariable | Avoid variables with short names like e | 447 |
ShortVariable | Avoid variables with short names like sb | 473 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 475 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 476 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 477 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_entityClass' could be made final; it is only initialized in the declaration or constructor. | 63 |
ShortVariable | Avoid variables with short names like em | 115 |
ShortVariable | Avoid variables with short names like em | 151 |
CompareObjectsWithEquals | Use equals() to compare object references. | 153 |
CompareObjectsWithEquals | Use equals() to compare object references. | 158 |
ShortVariable | Avoid variables with short names like em | 172 |
CompareObjectsWithEquals | Use equals() to compare object references. | 180 |
CompareObjectsWithEquals | Use equals() to compare object references. | 185 |
ShortVariable | Avoid variables with short names like em | 200 |
CompareObjectsWithEquals | Use equals() to compare object references. | 201 |
CompareObjectsWithEquals | Use equals() to compare object references. | 206 |
Rule | Violation | Ligne |
---|---|---|
UnnecessaryConstructor | Avoid unnecessary constructors - the compiler will generate these for you | 63–66 |
MissingOverride | The method 'getTransaction(TransactionDefinition)' is missing an @Override annotation. | 71–97 |
MissingOverride | The method 'commit(TransactionStatus)' is missing an @Override annotation. | 103–129 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 114 |
MissingOverride | The method 'rollback(TransactionStatus)' is missing an @Override annotation. | 135–153 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 143 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_mainPTM' could be made final; it is only initialized in the declaration or constructor. | 48 |
MissingOverride | The method 'flush()' is missing an @Override annotation. | 97–103 |
MissingOverride | The method 'hasSavepoint()' is missing an @Override annotation. | 119–122 |
MissingOverride | The method 'isCompleted()' is missing an @Override annotation. | 128–131 |
MissingOverride | The method 'isNewTransaction()' is missing an @Override annotation. | 137–140 |
MissingOverride | The method 'isRollbackOnly()' is missing an @Override annotation. | 146–149 |
MissingOverride | The method 'setRollbackOnly()' is missing an @Override annotation. | 155–161 |
MissingOverride | The method 'createSavepoint()' is missing an @Override annotation. | 167–170 |
MissingOverride | The method 'releaseSavepoint(Object)' is missing an @Override annotation. | 176–182 |
MissingOverride | The method 'rollbackToSavepoint(Object)' is missing an @Override annotation. | 188–194 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_strStatus' could be made final; it is only initialized in the declaration or constructor. | 48 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_strErrorCode' could be made final; it is only initialized in the declaration or constructor. | 44 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_result' could be made final; it is only initialized in the declaration or constructor. | 44 |
Rule | Violation | Ligne |
---|---|---|
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 74 |
ReplaceHashtableWithMap | Consider replacing this Hashtable with the newer java.util.Map | 76 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 116 |
ReplaceHashtableWithMap | Consider replacing this Hashtable with the newer java.util.Map | 120 |
ShortVariable | Avoid variables with short names like sc | 148 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_type' could be made final; it is only initialized in the declaration or constructor. | 59 |
PreserveStackTrace | New exception is thrown in catch block, original stack trace may be lost | 80 |
ArrayIsStoredDirectly | The user-supplied array 'data' is stored directly. | 94 |
MissingOverride | The method 'getInputStream()' is missing an @Override annotation. | 109–117 |
MissingOverride | The method 'getOutputStream()' is missing an @Override annotation. | 125–128 |
MissingOverride | The method 'getContentType()' is missing an @Override annotation. | 134–137 |
MissingOverride | The method 'getName()' is missing an @Override annotation. | 143–146 |
Rule | Violation | Ligne |
---|---|---|
ArrayIsStoredDirectly | The user-supplied array 'data' is stored directly. | 60 |
MethodReturnsInternalArray | Returning '_data' may expose an internal array. | 73 |
ArrayIsStoredDirectly | The user-supplied array 'data' is stored directly. | 82 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_content' could be made final; it is only initialized in the declaration or constructor. | 99 |
ImmutableField | Private field '_strBaseUrl' could be made final; it is only initialized in the declaration or constructor. | 100 |
ImmutableField | Private field '_useAbsoluteUrl' could be made final; it is only initialized in the declaration or constructor. | 101 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 134 |
ImmutableField | Private field '_strTagName' could be made final; it is only initialized in the declaration or constructor. | 268 |
ImmutableField | Private field '_strAttributeName' could be made final; it is only initialized in the declaration or constructor. | 269 |
ImmutableField | Private field '_strTestedAttributeName' could be made final; it is only initialized in the declaration or constructor. | 270 |
ImmutableField | Private field '_strTestedAttributeValue' could be made final; it is only initialized in the declaration or constructor. | 271 |
Rule | Violation | Ligne |
---|---|---|
ConfusingTernary | Avoid if (x != y) ..; else ..; | 94–101 |
UseLocaleWithCaseConversions | When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 130 |
CyclomaticComplexity | The method 'getPrimitiveMethod(String, A, Class)' has a cyclomatic complexity of 10. | 161–204 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveParameterList | Avoid long parameter lists. | 130–132 |
ExcessiveMethodLength | Avoid really long methods. | 130–274 |
NcssCount | The method 'processNestedTags(StringBuilder, String, String, String, String, String, String, boolean, boolean, boolean)' has a NCSS line count of 73. | 130–274 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 130–132 |
NPathComplexity | The method 'processNestedTags(StringBuilder, String, String, String, String, String, String, boolean, boolean, boolean)' has an NPath complexity of 396 | 130–274 |
CyclomaticComplexity | The method 'processNestedTags(StringBuilder, String, String, String, String, String, String, boolean, boolean, boolean)' has a cyclomatic complexity of 21. | 130–274 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 149 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 181–211 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 193–211 |
ShortVariable | Avoid variables with short names like s1 | 220 |
ShortVariable | Avoid variables with short names like s2 | 221 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 237–244 |
ShortVariable | Avoid variables with short names like m | 254 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the MutableCharSequence nested class if you want a default access modifier | 281–384 |
UncommentedEmptyConstructor | Document empty constructor | 298–300 |
ShortVariable | Avoid variables with short names like sb | 375 |
Rule | Violation | Ligne |
---|---|---|
UnnecessaryModifier | Unnecessary modifiers 'public static final' on field 'BEAN_NAME': the field is declared in an interface type | 41 |
Rule | Violation | Ligne |
---|---|---|
NPathComplexity | The method 'makePassword(int, boolean, boolean, boolean)' has an NPath complexity of 256 | 107–163 |
ShortVariable | Avoid variables with short names like r | 110 |
ShortVariable | Avoid variables with short names like c1 | 131 |
ShortVariable | Avoid variables with short names like c1 | 137 |
ShortVariable | Avoid variables with short names like c1 | 143 |
ShortVariable | Avoid variables with short names like c1 | 149 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_pools' could be made final; it is only initialized in the declaration or constructor. | 66 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 66 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 91–99 |
ShortVariable | Avoid variables with short names like is | 109 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 119 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 156 |
ReplaceHashtableWithMap | Consider replacing this Hashtable with the newer java.util.Map | 167 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 174 |
ReplaceHashtableWithMap | Consider replacing this Hashtable with the newer java.util.Map | 185 |
ShortVariable | Avoid variables with short names like cs | 186 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 196 |
ShortVariable | Avoid variables with short names like cs | 205 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 213 |
AvoidCatchingNPE | Avoid catching NullPointerException; consider removing the cause of the NPE. | 213 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 217 |
ShortVariable | Avoid variables with short names like cs | 254 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 265–271 |
AddEmptyString | Do not add empty strings | 295 |
AddEmptyString | Do not add empty strings | 296 |
Rule | Violation | Ligne |
---|---|---|
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 104 |
CollapsibleIfStatements | These nested if statements could be combined | 129–133 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 129–133 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 137 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 166 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_strUrl' could be made final; it is only initialized in the declaration or constructor. | 63 |
ImmutableField | Private field '_strUser' could be made final; it is only initialized in the declaration or constructor. | 64 |
ImmutableField | Private field '_strPassword' could be made final; it is only initialized in the declaration or constructor. | 65 |
ImmutableField | Private field '_nMaxConns' could be made final; it is only initialized in the declaration or constructor. | 66 |
ImmutableField | Private field '_nTimeOut' could be made final; it is only initialized in the declaration or constructor. | 67 |
ImmutableField | Private field '_logger' could be made final; it is only initialized in the declaration or constructor. | 68 |
ImmutableField | Private field '_freeConnections' could be made final; it is only initialized in the declaration or constructor. | 70 |
ImmutableField | Private field '_strCheckValidConnectionSql' could be made final; it is only initialized in the declaration or constructor. | 71 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 108–109 |
ShortVariable | Avoid variables with short names like lf | 111 |
ShortVariable | Avoid variables with short names like pc | 129 |
CloseResource | Ensure that resources like this Connection object are closed after use | 129 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 171–217 |
AssignmentInOperand | Avoid assignments in operands | 180 |
CloseResource | Ensure that resources like this Statement object are closed after use | 228 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 232–242 |
PreserveStackTrace | New exception is thrown in catch block, original stack trace may be lost | 254 |
PreserveStackTrace | New exception is thrown in catch block, original stack trace may be lost | 254 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 326–334 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 339–363 |
CloseResource | Ensure that resources like this Connection object are closed after use | 341 |
MissingOverride | The method 'getParentLogger()' is missing an @Override annotation. | 526–529 |
Rule | Violation | Ligne |
---|---|---|
UseProperClassLoader | In J2EE, getClassLoader() might not work as expected. Use Thread.currentThread().getContextClassLoader() instead. | 72 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_pool' could be made final; it is only initialized in the declaration or constructor. | 58 |
ImmutableField | Private field '_connection' could be made final; it is only initialized in the declaration or constructor. | 59 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the LuteceConnectionProxy constructor if you want a default access modifier | 69–73 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 96 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 102 |
Rule | Violation | Ligne |
---|---|---|
NPathComplexity | The method 'init(Map)' has an NPath complexity of 384 | 111–177 |
CyclomaticComplexity | The method 'init(Map)' has a cyclomatic complexity of 10. | 111–177 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 155 |
AvoidCatchingNPE | Avoid catching NullPointerException; consider removing the cause of the NPE. | 155 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 159 |
Rule | Violation | Ligne |
---|---|---|
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 74 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 96 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 115 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 40–55 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 49–106 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 48–91 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 58–70 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 76–88 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 43–99 |
CommentRequired | Public method and constructor comments are required | 55–62 |
NonThreadSafeSingleton | Singleton is not thread safe | 57–60 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_strSortedAttribute' could be made final; it is only initialized in the declaration or constructor. | 52 |
ImmutableField | Private field '_bIsASC' could be made final; it is only initialized in the declaration or constructor. | 53 |
ShortVariable | Avoid variables with short names like o2 | 91 |
ShortVariable | Avoid variables with short names like o1 | 91 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 93 |
ShortVariable | Avoid variables with short names like o1 | 120 |
ShortVariable | Avoid variables with short names like o2 | 120 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 148 |
UseLocaleWithCaseConversions | When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 178 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 186 |
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–3355 |
ExcessivePublicCount | This class has a bunch of public methods and attributes | 34–3355 |
CyclomaticComplexity | The class 'DAOUtil' has a total cyclomatic complexity of 429 (highest 9). | 82–3355 |
ExcessiveClassLength | Avoid really long classes. | 82–3355 |
TooManyMethods | This class has too many methods, consider refactoring it. | 83–3355 |
AvoidStringBufferField | StringBuffers can grow quite a lot, and so may become a source of memory leak (if the owning class has a long life time). | 118 |
ImmutableField | Private field '_sbLogs' could be made final; it is only initialized in the declaration or constructor. | 118 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 235–260 |
ShortVariable | Avoid variables with short names like ds | 247 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 273–299 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 275–282 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 285–299 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 287–294 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 304–313 |
ShortVariable | Avoid variables with short names like e | 328 |
InsufficientStringBufferDeclaration | StringBuffer constructor is initialized with size 32, but has at least 47 characters appended. | 330 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 331 |
ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 332 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 332 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 333 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 444 |
ShortVariable | Avoid variables with short names like ts | 973 |
ShortVariable | Avoid variables with short names like ts | 999 |
AvoidDuplicateLiterals | The String literal "null" appears 5 times in this file; the first occurrence is on line 1,046 | 1046 |
ShortVariable | Avoid variables with short names like x | 1922 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the clearBatch method if you want a default access modifier | 3274–3286 |
DefaultPackage | Use explicit scoping instead of the default package private level | 3274–3286 |
Rule | Violation | Ligne |
---|---|---|
CloseResource | Ensure that resources like this Connection object are closed after use | 140 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 141–148 |
ShortVariable | Avoid variables with short names like e | 175 |
Rule | Violation | Ligne |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 53–392 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 183–190 |
ShortVariable | Avoid variables with short names like e | 253 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 262–270 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 310–319 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 373 |
Rule | Violation | Ligne |
---|---|---|
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 157 |
ShortVariable | Avoid variables with short names like e | 190 |
ShortVariable | Avoid variables with short names like e | 222 |
UseCollectionIsEmpty | Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() | 226 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 246 |
Rule | Violation | Ligne |
---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 54–416 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 137–146 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 157–171 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 182–191 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 198–224 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 233–236 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 247–252 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 263–295 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 310–313 |
MethodReturnsInternalArray | Returning 'CONSTANT_UTF8' may expose an internal array. | 367 |
ShortVariable | Avoid variables with short names like b | 407 |
AssignmentInOperand | Avoid assignments in operands | 409 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_strRoot' could be made final; it is only initialized in the declaration or constructor. | 52 |
ImmutableField | Private field '_listParameters' could be made final; it is only initialized in the declaration or constructor. | 55 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_strName' could be made final; it is only initialized in the declaration or constructor. | 45 |
ImmutableField | Private field '_strValue' could be made final; it is only initialized in the declaration or constructor. | 48 |
Rule | Violation | Ligne |
---|---|---|
CyclomaticComplexity | The method 'getTemplates(Source, String)' has a cyclomatic complexity of 10. | 90–132 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 120 |
PreserveStackTrace | New exception is thrown in catch block, original stack trace may be lost | 123 |
ShortVariable | Avoid variables with short names like sw | 238 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 251 |
PreserveStackTrace | New exception is thrown in catch block, original stack trace may be lost | 254 |
Rule | Violation | Ligne |
---|---|---|
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 90 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 91 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 92 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 92 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 93 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 94 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 95 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 111 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 145 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 157 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 157 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 158 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 159 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 160 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 196 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 197 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 198 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 199 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 200 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 201 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 224 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 236 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 237 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 238 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 239 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 269 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 294 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 295 |
Rule | Violation | Ligne |
---|---|---|
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 92–95 |
Rule | Violation | Ligne |
---|---|---|
ShortClassName | Avoid short class names like File | 48–262 |
Rule | Violation | Ligne |
---|---|---|
ShortClassName | Avoid short class names like Page | 52–636 |
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 602–605 |
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 622–625 |
Rule | Violation | Ligne |
---|---|---|
ShortClassName | Avoid short class names like RBAC | 50–258 |
Rule | Violation | Ligne |
---|---|---|
ShortClassName | Avoid short class names like Role | 42–131 |
Rule | Violation | Ligne |
---|---|---|
ShortClassName | Avoid short class names like Mode | 39–234 |
Rule | Violation | Ligne |
---|---|---|
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 619–622 |
Rule | Violation | Ligne |
---|---|---|
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 219 |
Rule | Violation | Ligne |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'java.util.Date' due to existing import 'java.util.Date' | 1011 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'java.util.Date' due to existing import 'java.util.Date' | 1276 |
Rule | Violation | Ligne |
---|---|---|
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 157–160 |
UseVarargs | Consider using varargs for methods or constructors which take an array the last parameter. | 194 |
UseVarargs | Consider using varargs for methods or constructors which take an array the last parameter. | 203 |
Rule | Violation | Ligne |
---|---|---|
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 139–142 |
Rule | Violation | Ligne |
---|---|---|
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 449–453 |
Rule | Violation | Ligne |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'java.util.Date' due to existing import 'java.util.Date' | 100 |
Rule | Violation | Ligne |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'FileService.PARAMETER_VALIDITY_TIME' due to existing static import 'fr.paris.lutece.portal.service.file.FileService.PARAMETER_VALIDITY_TIME' | 291 |
Rule | Violation | Ligne |
---|---|---|
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 243–246 |
Rule | Violation | Ligne |
---|---|---|
UseVarargs | Consider using varargs for methods or constructors which take an array the last parameter. | 242 |
Rule | Violation | Ligne |
---|---|---|
UnusedImports | Avoid unused imports such as 'org.apache.commons.fileupload.FileItem' | 51 |
UnusedImports | Avoid unused imports such as 'fr.paris.lutece.portal.service.util.AppException' | 82 |
Rule | Violation | Ligne |
---|---|---|
UnusedImports | Avoid unused imports such as 'java.util.Arrays' | 43 |
Rule | Violation | Ligne |
---|---|---|
UseVarargs | Consider using varargs for methods or constructors which take an array the last parameter. | 177 |
Rule | Violation | Ligne |
---|---|---|
UnusedImports | Avoid unused imports such as 'java.util.ArrayList' | 36 |
Rule | Violation | Ligne |
---|---|---|
UnusedImports | Avoid unused imports such as 'org.apache.logging.log4j.Level' | 36 |
Rule | Violation | Ligne |
---|---|---|
UseVarargs | Consider using varargs for methods or constructors which take an array the last parameter. | 143 |
UseVarargs | Consider using varargs for methods or constructors which take an array the last parameter. | 174 |
UseVarargs | Consider using varargs for methods or constructors which take an array the last parameter. | 203 |
Rule | Violation | Ligne |
---|---|---|
UnusedImports | Avoid unused imports such as 'fr.paris.lutece.portal.web.dashboard.AdminDashboardJspBean' | 51 |
Rule | Violation | Ligne |
---|---|---|
UnusedImports | Avoid unused imports such as 'fr.paris.lutece.portal.business.rbac.RBACRole' | 36 |
UnusedImports | Avoid unused imports such as 'org.apache.james.mime4j.io.LineReaderInputStreamAdaptor' | 61 |
Rule | Violation | Ligne |
---|---|---|
UnusedImports | Avoid unused imports such as 'fr.paris.lutece.portal.web.dashboard.AdminDashboardJspBean' | 42 |
Rule | Violation | Ligne |
---|---|---|
UseVarargs | Consider using varargs for methods or constructors which take an array the last parameter. | 468 |
UseVarargs | Consider using varargs for methods or constructors which take an array the last parameter. | 495 |
Rule | Violation | Ligne |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'java.util.Date' due to existing import 'java.util.Date' | 427 |
Rule | Violation | Ligne |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'fr.paris.lutece.portal.service.admin.AccessDeniedException' due to existing import 'fr.paris.lutece.portal.service.admin.AccessDeniedException' | 869 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'fr.paris.lutece.portal.service.admin.AccessDeniedException' due to existing import 'fr.paris.lutece.portal.service.admin.AccessDeniedException' | 1433 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'fr.paris.lutece.portal.service.admin.AccessDeniedException' due to existing import 'fr.paris.lutece.portal.service.admin.AccessDeniedException' | 1474 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'fr.paris.lutece.portal.service.admin.AccessDeniedException' due to existing import 'fr.paris.lutece.portal.service.admin.AccessDeniedException' | 1513 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'fr.paris.lutece.portal.service.admin.AccessDeniedException' due to existing import 'fr.paris.lutece.portal.service.admin.AccessDeniedException' | 1554 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'fr.paris.lutece.portal.service.admin.AccessDeniedException' due to existing import 'fr.paris.lutece.portal.service.admin.AccessDeniedException' | 1602 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'fr.paris.lutece.portal.service.admin.AccessDeniedException' due to existing import 'fr.paris.lutece.portal.service.admin.AccessDeniedException' | 1664 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'fr.paris.lutece.portal.service.admin.AccessDeniedException' due to existing import 'fr.paris.lutece.portal.service.admin.AccessDeniedException' | 1785 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'fr.paris.lutece.portal.service.admin.AccessDeniedException' due to existing import 'fr.paris.lutece.portal.service.admin.AccessDeniedException' | 1832 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'fr.paris.lutece.portal.service.admin.AccessDeniedException' due to existing import 'fr.paris.lutece.portal.service.admin.AccessDeniedException' | 1897 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'fr.paris.lutece.portal.service.admin.AccessDeniedException' due to existing import 'fr.paris.lutece.portal.service.admin.AccessDeniedException' | 1941 |
Rule | Violation | Ligne |
---|---|---|
UnusedImports | Avoid unused imports such as 'java.util.Enumeration' | 38 |
UnusedImports | Avoid unused imports such as 'fr.paris.lutece.portal.service.security.SecurityTokenService' | 63 |
UnusedImports | Avoid unused imports such as 'fr.paris.lutece.portal.web.constants.Parameters' | 71 |
Rule | Violation | Ligne |
---|---|---|
UseVarargs | Consider using varargs for methods or constructors which take an array the last parameter. | 203 |
Rule | Violation | Ligne |
---|---|---|
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 145–148 |
Rule | Violation | Ligne |
---|---|---|
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 519–522 |
Rule | Violation | Ligne |
---|---|---|
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 91–94 |
Rule | Violation | Ligne |
---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'java.sql.Timestamp' due to existing import 'java.sql.Timestamp' | 213 |
Rule | Violation | Ligne |
---|---|---|
UnusedImports | Avoid unused imports such as 'java.security.NoSuchAlgorithmException' | 40 |
Rule | Violation | Ligne |
---|---|---|
UnusedImports | Avoid unused imports such as 'java.security.KeyPair' | 38 |
UnusedImports | Avoid unused imports such as 'java.security.KeyPairGenerator' | 39 |
UnusedImports | Avoid unused imports such as 'fr.paris.lutece.portal.service.datastore.DatastoreService' | 46 |
Rule | Violation | Ligne |
---|---|---|
UnusedImports | Avoid unused imports such as 'java.util.List' | 39 |
Rule | Violation | Ligne |
---|---|---|
UseVarargs | Consider using varargs for methods or constructors which take an array the last parameter. | 1918 |
Rule | Violation | Ligne |
---|---|---|
UnusedImports | Avoid unused imports such as 'java.io.BufferedReader' | 39 |
UnusedImports | Avoid unused imports such as 'java.io.InputStreamReader' | 43 |
UseVarargs | Consider using varargs for methods or constructors which take an array the last parameter. | 157 |
UseVarargs | Consider using varargs for methods or constructors which take an array the last parameter. | 247 |
UseVarargs | Consider using varargs for methods or constructors which take an array the last parameter. | 263 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 40–152 |
FieldNamingConventions | The final field name '_nIdResource' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 46 |
FieldNamingConventions | The final field name '_strTypeResource' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 47 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 50 |
ImmutableField | Private field '_persistentData' could be made final; it is only initialized in the declaration or constructor. | 3 | 50 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 50–436 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 150–157 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 185–193 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 273–281 |
LinguisticNaming | Linguistics Antipattern - The setter 'setInsertOrUpdateValues' should not return any type except void linguistically | 3 | 356–363 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 397–404 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassNamingConventions | The utility class name 'AdminDashboardFactory' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 1 | 48–105 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 50 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 49–434 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 149–156 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 185–193 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 271–279 |
LinguisticNaming | Linguistics Antipattern - The setter 'setInsertOrUpdateValues' should not return any type except void linguistically | 3 | 354–361 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 395–402 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassNamingConventions | The utility class name 'DashboardFactory' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 1 | 48–105 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 50 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UncommentedEmptyConstructor | Document empty constructor | 3 | 52–54 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 4 | 92–95 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 3–36 |
AbstractClassWithoutAbstractMethod | This abstract class does not have any abstract methods | 3 | 3–36 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 5–42 |
ImmutableField | Private field '_type' could be made final; it is only initialized in the declaration or constructor. | 3 | 20 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UncommentedEmptyConstructor | Document empty constructor | 3 | 53–55 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ShortClassName | Avoid short class names like File | 4 | 48–262 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 71–78 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 168–175 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AssignmentInOperand | Avoid assignments in operands | 3 | 255 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 3 | 255 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 115–132 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 128 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 149 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 231 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_listFilters' could be made final; it is only initialized in the declaration or constructor. | 3 | 54 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 59–67 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 47–366 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UncommentedEmptyConstructor | Document empty constructor | 3 | 65–67 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 3 | 285 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'canBeRemoved(String)' is missing an @Override annotation. | 3 | 58–68 |
MissingOverride | The method 'getRemovalRefusedMessage(String, Locale)' is missing an @Override annotation. | 3 | 79–83 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 46–203 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessivePublicCount | This class has a bunch of public methods and attributes | 3 | 34–636 |
ShortClassName | Avoid short class names like Page | 4 | 52–636 |
TooManyFields | Too many fields | 3 | 52–636 |
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 139–142 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the setOrigParentPageId method if you want a default access modifier | 3 | 139–142 |
MethodReturnsInternalArray | Returning '_strImageContent' may expose an internal array. | 3 | 162 |
ArrayIsStoredDirectly | The user-supplied array 'strImageContent' is stored directly. | 3 | 171 |
AddEmptyString | Do not add empty strings | 3 | 470 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 579 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 580 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 581 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 582 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 583 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 584 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 585 |
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 4 | 602–605 |
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 4 | 622–625 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
GodClass | Possible God Class (WMC=58, ATFD=218, TCC=0.000%) | 3 | 52–812 |
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 53–812 |
MissingOverride | The method 'insert(Page)' is missing an @Override annotation. | 3 | 106–164 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 146–153 |
MissingOverride | The method 'load(int, boolean)' is missing an @Override annotation. | 3 | 169–219 |
MissingOverride | The method 'loadWithoutImageContent(int, boolean)' is missing an @Override annotation. | 3 | 224–269 |
MissingOverride | The method 'loadPageByIdPortlet(int)' is missing an @Override annotation. | 3 | 274–306 |
MissingOverride | The method 'delete(int)' is missing an @Override annotation. | 3 | 311–319 |
MissingOverride | The method 'store(Page)' is missing an @Override annotation. | 3 | 324–376 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 360–367 |
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 385–400 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the checkPrimaryKey method if you want a default access modifier | 3 | 385–400 |
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 408–435 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the loadPortlets method if you want a default access modifier | 3 | 408–435 |
MissingOverride | The method 'selectChildPages(int)' is missing an @Override annotation. | 3 | 440–481 |
MissingOverride | The method 'selectChildPagesMinimalData(int)' is missing an @Override annotation. | 3 | 486–510 |
MissingOverride | The method 'selectAllPages()' is missing an @Override annotation. | 3 | 515–554 |
MissingOverride | The method 'invalidatePage(int)' is missing an @Override annotation. | 3 | 559–569 |
MissingOverride | The method 'getPagesList()' is missing an @Override annotation. | 3 | 574–592 |
MissingOverride | The method 'getPagesByRoleKey(String)' is missing an @Override annotation. | 3 | 601–643 |
MissingOverride | The method 'selectNewChildPageOrder(int)' is missing an @Override annotation. | 3 | 648–667 |
MissingOverride | The method 'loadImageResource(int)' is missing an @Override annotation. | 3 | 672–690 |
MissingOverride | The method 'checkPageExist(int)' is missing an @Override annotation. | 3 | 699–716 |
MissingOverride | The method 'loadLastModifiedPage()' is missing an @Override annotation. | 3 | 721–762 |
MissingOverride | The method 'updateAutorisationNode(int, Integer)' is missing an @Override annotation. | 3 | 767–788 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 775–782 |
MissingOverride | The method 'selectPageForChangeAutorisationNode(int)' is missing an @Override annotation. | 3 | 793–811 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'canBeRemoved(String)' is missing an @Override annotation. | 3 | 58–68 |
MissingOverride | The method 'getRemovalRefusedMessage(String, Locale)' is missing an @Override annotation. | 3 | 79–83 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MethodReturnsInternalArray | Returning '_byValue' may expose an internal array. | 3 | 74 |
ArrayIsStoredDirectly | The user-supplied array 'value' is stored directly. | 3 | 83 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'insert(PortalComponent)' is missing an @Override annotation. | 3 | 60–70 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 60–70 |
MissingOverride | The method 'load(int)' is missing an @Override annotation. | 3 | 75–95 |
MissingOverride | The method 'delete(int)' is missing an @Override annotation. | 3 | 100–108 |
MissingOverride | The method 'store(PortalComponent)' is missing an @Override annotation. | 3 | 113–124 |
MissingOverride | The method 'selectXslFile(int, int)' is missing an @Override annotation. | 3 | 129–151 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 55–58 |
MissingOverride | The method 'getXml(HttpServletRequest)' is missing an @Override annotation. | 3 | 114–131 |
MissingOverride | The method 'getXmlDocument(HttpServletRequest)' is missing an @Override annotation. | 3 | 142–145 |
MissingOverride | The method 'remove()' is missing an @Override annotation. | 3 | 173–176 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 64–76 |
MissingOverride | The method 'insert(Portlet)' is missing an @Override annotation. | 3 | 64–76 |
MissingOverride | The method 'delete(int)' is missing an @Override annotation. | 3 | 81–89 |
MissingOverride | The method 'load(int)' is missing an @Override annotation. | 3 | 94–110 |
MissingOverride | The method 'store(Portlet)' is missing an @Override annotation. | 3 | 115–126 |
ShortVariable | Avoid variables with short names like r | 3 | 117 |
MissingOverride | The method 'selectPortletsByTypeList(String)' is missing an @Override annotation. | 3 | 131–147 |
MissingOverride | The method 'selectAliasId(int)' is missing an @Override annotation. | 3 | 152–168 |
MissingOverride | The method 'selectAcceptAliasPortletRefList()' is missing an @Override annotation. | 3 | 173–188 |
MissingOverride | The method 'selectAcceptAliasPortletList()' is missing an @Override annotation. | 3 | 193–212 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AssignmentToNonFinalStatic | Possible unsafe assignment to a non-final static field in a constructor. | 3 | 52 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 57–63 |
MissingOverride | The method 'getPortletTypeId()' is missing an @Override annotation. | 3 | 70–74 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 81–88 |
MissingOverride | The method 'getDAO()' is missing an @Override annotation. | 3 | 95–98 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'insert(Portlet)' is missing an @Override annotation. | 3 | 52 |
MissingOverride | The method 'delete(int)' is missing an @Override annotation. | 3 | 60 |
MissingOverride | The method 'load(int)' is missing an @Override annotation. | 3 | 69 |
MissingOverride | The method 'store(Portlet)' is missing an @Override annotation. | 3 | 77 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 47–203 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessivePublicCount | This class has a bunch of public methods and attributes | 3 | 34–689 |
TooManyFields | Too many fields | 3 | 52–689 |
GodClass | Possible God Class (WMC=58, ATFD=22, TCC=1.943%) | 3 | 52–689 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 532 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 535 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 538 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 541 |
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 1 | 616–619 |
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 1 | 645–648 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 51–546 |
MissingOverride | The method 'insert(Portlet)' is missing an @Override annotation. | 3 | 98–124 |
MissingOverride | The method 'delete(int)' is missing an @Override annotation. | 3 | 129–151 |
MissingOverride | The method 'load(int)' is missing an @Override annotation. | 3 | 156–189 |
MissingOverride | The method 'store(Portlet)' is missing an @Override annotation. | 3 | 194–213 |
MissingOverride | The method 'updateStatus(Portlet, int)' is missing an @Override annotation. | 3 | 218–229 |
MissingOverride | The method 'updatePosition(Portlet, int, int)' is missing an @Override annotation. | 3 | 234–244 |
MissingOverride | The method 'selectXslFile(int, int)' is missing an @Override annotation. | 3 | 249–269 |
MissingOverride | The method 'selectPortletsListbyName(String)' is missing an @Override annotation. | 3 | 274–295 |
MissingOverride | The method 'selectAliasesForPortlet(int)' is missing an @Override annotation. | 3 | 300–321 |
MissingOverride | The method 'selectPortletsByType(String)' is missing an @Override annotation. | 3 | 326–358 |
MissingOverride | The method 'selectStylesList(String)' is missing an @Override annotation. | 3 | 363–379 |
MissingOverride | The method 'hasAlias(int)' is missing an @Override annotation. | 3 | 384–401 |
MissingOverride | The method 'selectPortletType(String)' is missing an @Override annotation. | 3 | 406–427 |
MissingOverride | The method 'selectPortletListByStyle(int)' is missing an @Override annotation. | 3 | 432–455 |
MissingOverride | The method 'selectPortletsByRole(String)' is missing an @Override annotation. | 3 | 460–481 |
MissingOverride | The method 'loadLastModifiedPortlet()' is missing an @Override annotation. | 3 | 486–521 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 51–360 |
ShortVariable | Avoid variables with short names like p | 3 | 72 |
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 121–124 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the getXsl method if you want a default access modifier | 3 | 121–124 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 157–171 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 179–189 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 1 | 55–58 |
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 1 | 64–67 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'canBeRemoved(String)' is missing an @Override annotation. | 3 | 58–68 |
MissingOverride | The method 'getRemovalRefusedMessage(String, Locale)' is missing an @Override annotation. | 3 | 79–83 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyFields | Too many fields | 3 | 45–426 |
MissingOverride | The method 'getResourceTypeCode()' is missing an @Override annotation. | 3 | 233–236 |
MissingOverride | The method 'getResourceId()' is missing an @Override annotation. | 3 | 243–246 |
AddEmptyString | Do not add empty strings | 3 | 245 |
MissingOverride | The method 'setLocale(Locale)' is missing an @Override annotation. | 3 | 422–425 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'insert(PortletType)' is missing an @Override annotation. | 3 | 70–92 |
MissingOverride | The method 'load(String)' is missing an @Override annotation. | 3 | 101–131 |
MissingOverride | The method 'delete(String)' is missing an @Override annotation. | 3 | 139–147 |
MissingOverride | The method 'selectPortletTypeId(String)' is missing an @Override annotation. | 3 | 156–172 |
MissingOverride | The method 'selectNbPortletTypeByPortlet(String)' is missing an @Override annotation. | 3 | 181–197 |
MissingOverride | The method 'selectPortletsTypesList(Locale)' is missing an @Override annotation. | 3 | 206–226 |
MissingOverride | The method 'selectPortletTypesList()' is missing an @Override annotation. | 3 | 233–254 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
FieldNamingConventions | The final field name '_strSqlSelect' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 47 |
FieldNamingConventions | The final field name '_strSqlInsert' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 48 |
FieldNamingConventions | The final field name '_strSqlUpdate' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 49 |
FieldNamingConventions | The final field name '_strSqlDelete' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 50 |
FieldNamingConventions | The final field name '_strSqlSelectAll' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 51 |
FieldNamingConventions | The final field name '_strSqlSelectByValue' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 52 |
FieldNamingConventions | The final field name '_strSqlDeleteKey' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 53 |
FieldNamingConventions | The final field name '_strSqlDeleteKeyPrefix' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 54 |
FieldNamingConventions | The final field name '_strSqlSelectCount' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 55 |
FieldNamingConventions | The final field name '_strSqlSelectCountPrefValue' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 56 |
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 63 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the getPreferencesTable method if you want a default access modifier | 3 | 63 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 46–50 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the getPreferencesTable method if you want a default access modifier | 3 | 47–50 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 46–50 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the getPreferencesTable method if you want a default access modifier | 3 | 47–50 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
RedundantFieldInitializer | Avoid using redundant field initializer for '_nNbItemTotal' | 3 | 51 |
RedundantFieldInitializer | Avoid using redundant field initializer for '_nNbItemSuccess' | 3 | 53 |
RedundantFieldInitializer | Avoid using redundant field initializer for '_nNbItemFailure' | 3 | 55 |
ImmutableField | Private field '_report' could be made final; it is only initialized in the declaration or constructor. | 3 | 57 |
UseCollectionIsEmpty | Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() | 3 | 179 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingSerialVersionUID | Classes implementing Serializable should set a serialVersionUID | 3 | 42–45 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 42–146 |
UnnecessaryModifier | Unnecessary modifier 'public' on method 'deleteForResourceTypeAndId': the method is declared in an interface type | 3 | 144 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ShortClassName | Avoid short class names like RBAC | 4 | 50–258 |
MissingOverride | The method 'setLocale(Locale)' is missing an @Override annotation. | 3 | 67–70 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 47–344 |
MissingOverride | The method 'insert(RBAC)' is missing an @Override annotation. | 3 | 72–90 |
MissingOverride | The method 'load(int)' is missing an @Override annotation. | 3 | 99–120 |
MissingOverride | The method 'delete(int)' is missing an @Override annotation. | 3 | 128–136 |
MissingOverride | The method 'store(RBAC)' is missing an @Override annotation. | 3 | 144–157 |
MissingOverride | The method 'selectRBACList()' is missing an @Override annotation. | 3 | 164–186 |
MissingOverride | The method 'selectRBACListByRoleKey(String)' is missing an @Override annotation. | 3 | 195–218 |
MissingOverride | The method 'updateRoleKey(String, String)' is missing an @Override annotation. | 3 | 267–276 |
MissingOverride | The method 'deleteForRoleKey(String)' is missing an @Override annotation. | 3 | 284–292 |
MissingOverride | The method 'selectRoleKeys(String, String, String)' is missing an @Override annotation. | 3 | 303–327 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 45–216 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UncommentedEmptyConstructor | Document empty constructor | 3 | 51–53 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'insert(RBACRole)' is missing an @Override annotation. | 3 | 59–68 |
MissingOverride | The method 'load(String)' is missing an @Override annotation. | 3 | 77–95 |
MissingOverride | The method 'delete(String)' is missing an @Override annotation. | 3 | 103–111 |
MissingOverride | The method 'store(String, RBACRole)' is missing an @Override annotation. | 3 | 121–131 |
MissingOverride | The method 'selectRoleList()' is missing an @Override annotation. | 3 | 138–157 |
MissingOverride | The method 'checkExistRole(String)' is missing an @Override annotation. | 3 | 166–181 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'equals(Object)' is missing an @Override annotation. | 3 | 182–185 |
MissingOverride | The method 'hashCode()' is missing an @Override annotation. | 3 | 190–193 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
LinguisticNaming | Linguistics Antipattern - The getter 'getXmlAddOn' should not return void linguistically | 3 | 57 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
LinguisticNaming | Linguistics Antipattern - The getter 'getCreateResourceModelAddOn' should not return void linguistically | 3 | 53 |
LinguisticNaming | Linguistics Antipattern - The getter 'getModifyResourceModelAddOn' should not return void linguistically | 3 | 77 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassNamingConventions | The utility class name 'ResourceEnhancer' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 1 | 46–219 |
LinguisticNaming | Linguistics Antipattern - The getter 'getXmlAddOn' should not return void linguistically | 3 | 68–76 |
LinguisticNaming | Linguistics Antipattern - The getter 'getCreateResourceModelAddOn' should not return void linguistically | 3 | 110–118 |
LinguisticNaming | Linguistics Antipattern - The getter 'getModifyResourceModelAddOn' should not return void linguistically | 3 | 150–158 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_aFeaturesList' could be made final; it is only initialized in the declaration or constructor. | 3 | 59 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 112–119 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 172–179 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'insert(FeatureGroup)' is missing an @Override annotation. | 3 | 66–79 |
MissingOverride | The method 'load(String)' is missing an @Override annotation. | 3 | 88–110 |
MissingOverride | The method 'delete(String)' is missing an @Override annotation. | 3 | 118–125 |
MissingOverride | The method 'store(FeatureGroup)' is missing an @Override annotation. | 3 | 133–146 |
MissingOverride | The method 'selectFeatureGroupsList()' is missing an @Override annotation. | 3 | 153–176 |
MissingOverride | The method 'selectFeatureGroupsCount()' is missing an @Override annotation. | 3 | 183–198 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CyclomaticComplexity | The method 'changeRightOrder(FeatureGroup, int)' has a cyclomatic complexity of 10. | 3 | 199–235 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UnnecessaryModifier | Unnecessary modifier 'public' on method 'selectExternalRightsList': the method is declared in an interface type | 3 | 90 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the newPrimaryKey method if you want a default access modifier | 3 | 62–80 |
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 62–80 |
MissingOverride | The method 'insert(Level)' is missing an @Override annotation. | 3 | 88–99 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 88–99 |
MissingOverride | The method 'load(int)' is missing an @Override annotation. | 3 | 108–126 |
MissingOverride | The method 'delete(int)' is missing an @Override annotation. | 3 | 134–142 |
MissingOverride | The method 'store(Level)' is missing an @Override annotation. | 3 | 150–161 |
MissingOverride | The method 'selectLevelsList()' is missing an @Override annotation. | 3 | 168–186 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 117 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 195 |
ShortVariable | Avoid variables with short names like o | 3 | 349 |
ShortVariable | Avoid variables with short names like o | 3 | 370 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidDuplicateLiterals | The String literal " SELECT id_right, name, level_right, admin_url, description, plugin_name, id_feature_group, icon_url, documentation_url, id_order, is_external_feature " appears 4 times in this file; the first occurrence is on line 55 | 3 | 55 |
MissingOverride | The method 'insert(Right)' is missing an @Override annotation. | 3 | 75–94 |
MissingOverride | The method 'load(String)' is missing an @Override annotation. | 3 | 103–131 |
MissingOverride | The method 'delete(String)' is missing an @Override annotation. | 3 | 139–154 |
MissingOverride | The method 'store(Right)' is missing an @Override annotation. | 3 | 162–181 |
MissingOverride | The method 'selectRightsList()' is missing an @Override annotation. | 3 | 188–191 |
MissingOverride | The method 'selectRightsList(int)' is missing an @Override annotation. | 3 | 200–230 |
MissingOverride | The method 'selectRightsList(String)' is missing an @Override annotation. | 3 | 289–331 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CyclomaticComplexity | The method 'changeRightOrder(Right, int)' has a cyclomatic complexity of 10. | 3 | 188–224 |
CommentRequired | Public method and constructor comments are required | 3 | 299–302 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ShortClassName | Avoid short class names like Role | 4 | 42–131 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 67 |
MissingOverride | The method 'getResourceTypeCode()' is missing an @Override annotation. | 3 | 96–99 |
MissingOverride | The method 'getResourceId()' is missing an @Override annotation. | 3 | 106–109 |
MissingOverride | The method 'getWorkgroup()' is missing an @Override annotation. | 3 | 116–119 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'insert(Role)' is missing an @Override annotation. | 3 | 63–74 |
MissingOverride | The method 'load(String)' is missing an @Override annotation. | 3 | 83–103 |
MissingOverride | The method 'delete(String)' is missing an @Override annotation. | 3 | 111–118 |
MissingOverride | The method 'store(Role)' is missing an @Override annotation. | 3 | 126–137 |
MissingOverride | The method 'selectRolesList()' is missing an @Override annotation. | 3 | 144–163 |
MissingOverride | The method 'selectAll()' is missing an @Override annotation. | 3 | 170–190 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'getDescription()' is missing an @Override annotation. | 3 | 57–60 |
MissingOverride | The method 'setDescription(String)' is missing an @Override annotation. | 3 | 66–69 |
MissingOverride | The method 'getTitle()' is missing an @Override annotation. | 3 | 75–78 |
MissingOverride | The method 'setTitle(String)' is missing an @Override annotation. | 3 | 84–87 |
MissingOverride | The method 'getImage()' is missing an @Override annotation. | 3 | 93–96 |
MissingOverride | The method 'setImage(IFeedResourceImage)' is missing an @Override annotation. | 3 | 104–107 |
MissingOverride | The method 'getItems()' is missing an @Override annotation. | 3 | 113–116 |
MissingOverride | The method 'setItems(List)' is missing an @Override annotation. | 3 | 124–127 |
MissingOverride | The method 'getLanguage()' is missing an @Override annotation. | 3 | 133–136 |
MissingOverride | The method 'setLanguage(String)' is missing an @Override annotation. | 3 | 144–147 |
MissingOverride | The method 'getLink()' is missing an @Override annotation. | 3 | 153–156 |
MissingOverride | The method 'setLink(String)' is missing an @Override annotation. | 3 | 164–167 |
MissingOverride | The method 'getDate()' is missing an @Override annotation. | 3 | 173–176 |
MissingOverride | The method 'setDate(Date)' is missing an @Override annotation. | 3 | 182–185 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'getUrl()' is missing an @Override annotation. | 3 | 50–53 |
MissingOverride | The method 'setUrl(String)' is missing an @Override annotation. | 3 | 59–62 |
MissingOverride | The method 'getTitle()' is missing an @Override annotation. | 3 | 68–71 |
MissingOverride | The method 'setTitle(String)' is missing an @Override annotation. | 3 | 77–80 |
MissingOverride | The method 'getLink()' is missing an @Override annotation. | 3 | 86–89 |
MissingOverride | The method 'setLink(String)' is missing an @Override annotation. | 3 | 95–98 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'getTitle()' is missing an @Override annotation. | 3 | 54–57 |
MissingOverride | The method 'setTitle(String)' is missing an @Override annotation. | 3 | 63–66 |
MissingOverride | The method 'getLink()' is missing an @Override annotation. | 3 | 72–75 |
MissingOverride | The method 'setLink(String)' is missing an @Override annotation. | 3 | 81–84 |
MissingOverride | The method 'getDescription()' is missing an @Override annotation. | 3 | 90–93 |
MissingOverride | The method 'setDescription(String)' is missing an @Override annotation. | 3 | 99–102 |
MissingOverride | The method 'getGUID()' is missing an @Override annotation. | 3 | 108–111 |
MissingOverride | The method 'setGUID(String)' is missing an @Override annotation. | 3 | 117–120 |
MissingOverride | The method 'getDate()' is missing an @Override annotation. | 3 | 126–129 |
MissingOverride | The method 'setDate(Date)' is missing an @Override annotation. | 3 | 135–138 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 1 | 207–210 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'getKey()' is missing an @Override annotation. | 3 | 53–56 |
MissingOverride | The method 'setKey(String)' is missing an @Override annotation. | 3 | 64–67 |
MissingOverride | The method 'getTitleI18nKey()' is missing an @Override annotation. | 3 | 74–77 |
MissingOverride | The method 'setTitleI18nKey(String)' is missing an @Override annotation. | 3 | 85–88 |
MissingOverride | The method 'getClassName()' is missing an @Override annotation. | 3 | 95–98 |
MissingOverride | The method 'setClassName(String)' is missing an @Override annotation. | 3 | 106–109 |
MissingOverride | The method 'getTitle()' is missing an @Override annotation. | 3 | 116–119 |
MissingOverride | The method 'setTitle(String)' is missing an @Override annotation. | 3 | 127–130 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'load(String)' is missing an @Override annotation. | 3 | 55–73 |
MissingOverride | The method 'store(ReferenceItem)' is missing an @Override annotation. | 3 | 76–84 |
MissingOverride | The method 'findAll()' is missing an @Override annotation. | 3 | 87–103 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 89 |
MissingOverride | The method 'selectParametersList()' is missing an @Override annotation. | 3 | 106–122 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 184 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
FieldNamingConventions | The final field name '_code' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 21 |
UnnecessaryModifier | Unnecessary modifier 'private' on constructor 'SecurityHeaderPageCategory(String)': enum constructors are implicitly private | 3 | 29–32 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
FieldNamingConventions | The final field name '_code' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 14 |
UnnecessaryModifier | Unnecessary modifier 'private' on constructor 'SecurityHeaderType(String)': enum constructors are implicitly private | 3 | 22–25 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ShortClassName | Avoid short class names like Mode | 4 | 39–234 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 69–87 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the newPrimaryKey method if you want a default access modifier | 3 | 69–87 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 95–115 |
MissingOverride | The method 'insert(Mode)' is missing an @Override annotation. | 3 | 95–115 |
MissingOverride | The method 'load(int)' is missing an @Override annotation. | 3 | 124–151 |
MissingOverride | The method 'delete(int)' is missing an @Override annotation. | 3 | 159–166 |
MissingOverride | The method 'store(Mode)' is missing an @Override annotation. | 3 | 174–192 |
MissingOverride | The method 'selectModesList()' is missing an @Override annotation. | 3 | 199–227 |
MissingOverride | The method 'getModesList()' is missing an @Override annotation. | 3 | 234–250 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
NPathComplexity | The method 'getOuputXslProperties(int)' has an NPath complexity of 2187 | 3 | 140–195 |
CyclomaticComplexity | The method 'getOuputXslProperties(int)' has a cyclomatic complexity of 15. | 3 | 140–195 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'insert(PageTemplate)' is missing an @Override annotation. | 3 | 65–81 |
MissingOverride | The method 'load(int)' is missing an @Override annotation. | 3 | 90–111 |
MissingOverride | The method 'delete(int)' is missing an @Override annotation. | 3 | 119–126 |
MissingOverride | The method 'store(PageTemplate)' is missing an @Override annotation. | 3 | 134–147 |
MissingOverride | The method 'selectPageTemplatesList()' is missing an @Override annotation. | 3 | 154–175 |
MissingOverride | The method 'checkPageTemplateIsUsed(int)' is missing an @Override annotation. | 3 | 184–201 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'insert(Style)' is missing an @Override annotation. | 3 | 74–86 |
MissingOverride | The method 'load(int)' is missing an @Override annotation. | 3 | 95–118 |
MissingOverride | The method 'delete(int)' is missing an @Override annotation. | 3 | 126–133 |
MissingOverride | The method 'store(Style)' is missing an @Override annotation. | 3 | 141–153 |
MissingOverride | The method 'selectStylesList()' is missing an @Override annotation. | 3 | 160–184 |
MissingOverride | The method 'selectPortalComponentList()' is missing an @Override annotation. | 3 | 191–206 |
MissingOverride | The method 'selectStyleSheetList(int)' is missing an @Override annotation. | 3 | 215–238 |
MissingOverride | The method 'checkStylePortalComponent(int)' is missing an @Override annotation. | 3 | 247–264 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MethodReturnsInternalArray | Returning '_strSource' may expose an internal array. | 3 | 162 |
ArrayIsStoredDirectly | The user-supplied array 'strSource' is stored directly. | 3 | 171 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'insert(StyleSheet)' is missing an @Override annotation. | 3 | 72–92 |
MissingOverride | The method 'load(int)' is missing an @Override annotation. | 3 | 101–123 |
MissingOverride | The method 'delete(int)' is missing an @Override annotation. | 3 | 131–141 |
MissingOverride | The method 'selectStyleSheetList(int)' is missing an @Override annotation. | 3 | 150–189 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 3 | 162 |
MissingOverride | The method 'store(StyleSheet)' is missing an @Override annotation. | 3 | 197–212 |
MissingOverride | The method 'selectStyleSheetNbPerStyleMode(int, int)' is missing an @Override annotation. | 3 | 276–298 |
MissingOverride | The method 'selectModeId(int)' is missing an @Override annotation. | 3 | 307–327 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UncommentedEmptyConstructor | Document empty constructor | 3 | 51–53 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
RedundantFieldInitializer | Avoid using redundant field initializer for '_bDefault' | 3 | 47 |
FormalParameterNamingConventions | The method parameter name '_bDefault' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 149 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessivePublicCount | This class has a bunch of public methods and attributes | 3 | 34–739 |
TooManyFields | Too many fields | 3 | 63–739 |
GodClass | Possible God Class (WMC=57, ATFD=9, TCC=3.098%) | 3 | 63–739 |
ImmutableField | Private field '_userInfo' could be made final; it is only initialized in the declaration or constructor. | 3 | 88 |
LooseCoupling | Avoid using implementation types like 'HashMap'; use the interface instead | 3 | 88 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 90 |
ImmutableField | Private field '_rights' could be made final; it is only initialized in the declaration or constructor. | 3 | 95 |
LooseCoupling | Avoid using implementation types like 'HashMap'; use the interface instead | 3 | 95 |
ImmutableField | Private field '_roles' could be made final; it is only initialized in the declaration or constructor. | 3 | 100 |
LooseCoupling | Avoid using implementation types like 'HashMap'; use the interface instead | 3 | 100 |
UncommentedEmptyConstructor | Document empty constructor | 3 | 114–116 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 135–142 |
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 4 | 619–622 |
LinguisticNaming | Linguistics Antipattern - The setter 'setUserInfo' should not return any type except void linguistically | 3 | 684–687 |
CommentRequired | Public method and constructor comments are required | 3 | 705–708 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessivePublicCount | This class has a bunch of public methods and attributes | 3 | 34–1377 |
ExcessiveClassLength | Avoid really long classes. | 3 | 59–1377 |
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 60–1377 |
AvoidReassigningParameters | Avoid reassigning parameters such as 'user' | 2 | 210 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 243 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 406 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 468 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 3 | 898 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 3 | 903 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 3 | 906 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 1098 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UnnecessaryConstructor | Avoid unnecessary constructors - the compiler will generate these for you | 3 | 83–86 |
LinguisticNaming | Linguistics Antipattern - The setter 'setAdminUserFilter' should not return any type except void linguistically | 3 | 230–270 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 235–267 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessivePublicCount | This class has a bunch of public methods and attributes | 3 | 34–661 |
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 54–661 |
InsufficientStringBufferDeclaration | StringBuffer constructor is initialized with size 16, but has at least 18 characters appended. | 3 | 639 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessivePublicCount | This class has a bunch of public methods and attributes | 3 | 34–483 |
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 51–483 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UncommentedEmptyConstructor | Document empty constructor | 3 | 74–76 |
UnnecessaryConstructor | Avoid unnecessary constructors - the compiler will generate these for you | 3 | 74–76 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 271 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 290 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 310 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 346 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
DataClass | The class 'AdminUserField' is suspected to be a Data Class (WOC=16.667%, NOPA=0, NOAM=10, WMC=12) | 3 | 44–178 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 54–568 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 141–148 |
NPathComplexity | The method 'selectUsersByFilter(AdminUserFieldFilter)' has an NPath complexity of 220 | 3 | 327–398 |
CyclomaticComplexity | The method 'selectUsersByFilter(AdminUserFieldFilter)' has a cyclomatic complexity of 11. | 3 | 327–398 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 3 | 341 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 350–358 |
CyclomaticComplexity | The method 'selectByFilter(AdminUserFieldFilter)' has a cyclomatic complexity of 11. | 3 | 408–480 |
NPathComplexity | The method 'selectByFilter(AdminUserFieldFilter)' has an NPath complexity of 544 | 3 | 408–480 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 48–220 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 84–87 |
UnnecessaryConstructor | Avoid unnecessary constructors - the compiler will generate these for you | 3 | 84–87 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 177 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 245–288 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 84–87 |
UnnecessaryConstructor | Avoid unnecessary constructors - the compiler will generate these for you | 3 | 84–87 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 177 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 254–297 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'load(int, Locale)' is missing an @Override annotation. | 3 | 111–152 |
MissingOverride | The method 'insert(IAttribute)' is missing an @Override annotation. | 3 | 161–184 |
MissingOverride | The method 'store(IAttribute)' is missing an @Override annotation. | 3 | 192–208 |
MissingOverride | The method 'delete(int)' is missing an @Override annotation. | 3 | 216–224 |
MissingOverride | The method 'selectAll(Locale)' is missing an @Override annotation. | 3 | 233–277 |
MissingOverride | The method 'selectPluginAttributes(String, Locale)' is missing an @Override annotation. | 3 | 288–334 |
MissingOverride | The method 'selectCoreAttributes(Locale)' is missing an @Override annotation. | 3 | 343–383 |
MissingOverride | The method 'updateAttributeAnonymization(int, boolean)' is missing an @Override annotation. | 3 | 393–401 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 105–108 |
CyclomaticComplexity | The method 'setAttributeData(HttpServletRequest)' has a cyclomatic complexity of 11. | 3 | 195–251 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 198 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 199 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 200 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 201 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 202 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 84–87 |
UnnecessaryConstructor | Avoid unnecessary constructors - the compiler will generate these for you | 3 | 84–87 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 177 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 90–93 |
UnnecessaryConstructor | Avoid unnecessary constructors - the compiler will generate these for you | 3 | 90–93 |
CyclomaticComplexity | The method 'setAttributeData(HttpServletRequest)' has a cyclomatic complexity of 10. | 3 | 180–238 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 183 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 183 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 184 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 185 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 186 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 188 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 189 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 201 |
AvoidReassigningLoopVariables | Avoid reassigning the loop control variable 'strValue' | 3 | 295 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 46–142 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 4 | 219 |
LinguisticNaming | Linguistics Antipattern - The setter 'setAttributeData' should not return any type except void linguistically | 3 | 304 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'doRemoveUserFields(AdminUser, HttpServletRequest, Locale)' is missing an @Override annotation. | 3 | 166–169 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CyclomaticComplexity | The method 'login(String, String, HttpServletRequest)' has a cyclomatic complexity of 10. | 3 | 97–143 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
DataClass | The class 'LuteceDefaultAdminUser' is suspected to be a Data Class (WOC=25.000%, NOPA=0, NOAM=4, WMC=8) | 3 | 44–135 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'load(String, AdminAuthentication)' is missing an @Override annotation. | 3 | 71–102 |
MissingOverride | The method 'updateResetPassword(LuteceDefaultAdminUser, boolean)' is missing an @Override annotation. | 3 | 112–120 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassNamingConventions | The enum name 'PASSWORD_REPRESENTATION' doesn't match '[A-Z][a-zA-Z0-9]*' | 1 | 117–121 |
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 143 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the PROPERTY_PASSWORD_HASH_ITERATIONS field if you want a default access modifier | 3 | 143 |
UseUnderscoresInNumericLiterals | Number 210000 should separate every third digit with an underscore | 3 | 144 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the DEFAULT_HASH_ITERATIONS field if you want a default access modifier | 3 | 144 |
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 144 |
FieldNamingConventions | The final field name '_iterations' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 148 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the _iterations field if you want a default access modifier | 3 | 148 |
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 148 |
FieldNamingConventions | The final field name '_salt' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 150 |
FieldNamingConventions | The final field name '_hash' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 152 |
CyclomaticComplexity | The constructor 'PBKDF2Password(String, PASSWORD_REPRESENTATION)' has a cyclomatic complexity of 11. | 3 | 173–214 |
PreserveStackTrace | New exception is thrown in catch block, original stack trace may be lost | 3 | 208 |
ShortVariable | Avoid variables with short names like sb | 3 | 249 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 250 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 251 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the DummyPassword constructor if you want a default access modifier | 3 | 364–368 |
FieldNamingConventions | The final field name '_strPassword' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 423 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 431–434 |
FieldNamingConventions | The final field name '_strPassword' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 450 |
FieldNamingConventions | The final field name '_strAlgorithm' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 452 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 462–475 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'selectLoginErrors(UserLog, int)' is missing an @Override annotation. | 3 | 58–81 |
MissingOverride | The method 'insertLog(UserLog)' is missing an @Override annotation. | 3 | 89–100 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 66 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
FieldNamingConventions | The final field name '_strClass' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 43 |
FieldNamingConventions | The final field name '_strContent' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 44 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
FieldNamingConventions | The constant name '_item' doesn't match '[A-Z][A-Z_0-9]*' | 1 | 44 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 70 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'canBeRemoved(String)' is missing an @Override annotation. | 3 | 60–81 |
MissingOverride | The method 'getRemovalRefusedMessage(String, Locale)' is missing an @Override annotation. | 3 | 92–96 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'getWorkgroup()' is missing an @Override annotation. | 3 | 93–96 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 48–334 |
MissingOverride | The method 'insert(AdminWorkgroup)' is missing an @Override annotation. | 3 | 71–80 |
MissingOverride | The method 'load(String)' is missing an @Override annotation. | 3 | 85–103 |
MissingOverride | The method 'delete(String)' is missing an @Override annotation. | 3 | 108–116 |
MissingOverride | The method 'store(AdminWorkgroup)' is missing an @Override annotation. | 3 | 121–130 |
MissingOverride | The method 'selectWorkgroupList()' is missing an @Override annotation. | 3 | 135–154 |
MissingOverride | The method 'checkExistWorkgroup(String)' is missing an @Override annotation. | 3 | 159–173 |
MissingOverride | The method 'isUserInWorkgroup(int, String)' is missing an @Override annotation. | 3 | 178–195 |
MissingOverride | The method 'checkUserHasWorkgroup(int)' is missing an @Override annotation. | 3 | 200–214 |
MissingOverride | The method 'getUserWorkgroups(int)' is missing an @Override annotation. | 3 | 219–235 |
MissingOverride | The method 'getUsersListForWorkgroup(String)' is missing an @Override annotation. | 3 | 240–263 |
MissingOverride | The method 'deleteAllUsersForWorkgroup(String)' is missing an @Override annotation. | 3 | 268–275 |
MissingOverride | The method 'insertUserForWorkgroup(AdminUser, String)' is missing an @Override annotation. | 3 | 280–288 |
MissingOverride | The method 'deleteUserFromWorkgroup(int, String)' is missing an @Override annotation. | 3 | 293–301 |
MissingOverride | The method 'selectWorkgroupsByFilter(AdminWorkgroupFilter)' is missing an @Override annotation. | 3 | 310–333 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UnnecessaryConstructor | Avoid unnecessary constructors - the compiler will generate these for you | 3 | 68–71 |
LinguisticNaming | Linguistics Antipattern - The setter 'setAdminWorkgroupFilter' should not return any type except void linguistically | 3 | 141–158 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 146–155 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 46–231 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 45–170 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 71–78 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 154–161 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 221 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_bServiceAvailable' could be made final; it is only initialized in the declaration or constructor. | 3 | 57 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 95–102 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 3 | 162–165 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 3 | 166–169 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 89–98 |
CyclomaticComplexity | The method 'getRemoteUser(HttpServletRequest)' has a cyclomatic complexity of 10. | 3 | 131–179 |
PreserveStackTrace | New exception is thrown in catch block, original stack trace may be lost | 3 | 205 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–1529 |
GodClass | Possible God Class (WMC=144, ATFD=173, TCC=6.410%) | 3 | 104–1529 |
CyclomaticComplexity | The class 'AdminUserService' has a total cyclomatic complexity of 144 (highest 11). | 3 | 104–1529 |
ExcessiveClassLength | Avoid really long classes. | 3 | 104–1529 |
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 105–1529 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 278–289 |
CyclomaticComplexity | The method 'getFilteredUsersInterface(Collection, HttpServletRequest, Map, UrlItem)' has a cyclomatic complexity of 10. | 3 | 307–386 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 345–354 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 356 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 397 |
CyclomaticComplexity | The method 'checkEmail(String)' has a cyclomatic complexity of 11. | 3 | 475–519 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 603–610 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'java.util.Date' due to existing import 'java.util.Date' | 4 | 1011 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'java.util.Date' due to existing import 'java.util.Date' | 4 | 1276 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 1290 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 1350 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 1358 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–473 |
FieldNamingConventions | The constant name '_attributeService' doesn't match '[A-Z][A-Z_0-9]*' | 1 | 89 |
ExcessiveMethodLength | Avoid really long methods. | 3 | 95–207 |
NcssCount | The method 'readLineOfCSVFile(String, int, Locale, String)' has a NCSS line count of 68. | 3 | 95–207 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 171 |
AvoidReassigningParameters | Avoid reassigning parameters such as 'listAttributes' | 2 | 296 |
AvoidReassigningLoopVariables | Avoid reassigning the loop control variable 'strValue' | 3 | 327 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 367 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 427 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 4 | 157–160 |
UseVarargs | Consider using varargs for methods or constructors which take an array the last parameter. | 4 | 194 |
UseVarargs | Consider using varargs for methods or constructors which take an array the last parameter. | 4 | 203 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 55–372 |
ImmutableField | Private field '_logger' could be made final; it is only initialized in the declaration or constructor. | 3 | 58 |
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 2 | 58 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 193 |
InsufficientStringBufferDeclaration | StringBuffer constructor is initialized with size 16, but has at least 180 characters appended. | 3 | 272 |
CloneThrowsCloneNotSupportedException | clone() method should throw CloneNotSupportedException | 3 | 292–295 |
CloneMethodReturnTypeMustMatchClassName | The return type of the clone() method must be the class name when implements Cloneable | 3 | 292–295 |
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 1 | 312–315 |
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 1 | 321–324 |
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 1 | 330–333 |
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 1 | 339–342 |
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 1 | 348–351 |
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 1 | 357–360 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 61–479 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 120–132 |
ShortVariable | Avoid variables with short names like cs | 3 | 207 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the getInfos method if you want a default access modifier | 3 | 244–258 |
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 244–258 |
InsufficientStringBufferDeclaration | StringBuffer constructor is initialized with size 16, but has at least 27 characters appended. | 3 | 246 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 247 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 247 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 247 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 248 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 248 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 248 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 249 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 249 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 249 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 250 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 250 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 250 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 251 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 251 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 251 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 252 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 252 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 252 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 253 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 253 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 253 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 254 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 254 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 254 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 255 |
UseUnderscoresInNumericLiterals | Number 10000 should separate every third digit with an underscore | 3 | 265 |
UseUnderscoresInNumericLiterals | Number 10000L should separate every third digit with an underscore | 3 | 267 |
UseUnderscoresInNumericLiterals | Number 10000L should separate every third digit with an underscore | 3 | 268 |
UseUnderscoresInNumericLiterals | Number 10000 should separate every third digit with an underscore | 3 | 272 |
AvoidFileStream | Avoid instantiating FileInputStream, FileOutputStream, FileReader, or FileWriter | 1 | 284 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 305 |
ShortVariable | Avoid variables with short names like cs | 3 | 317 |
ShortVariable | Avoid variables with short names like cs | 3 | 330 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'getKey(Map, int, LuteceUser)' is missing an @Override annotation. | 3 | 62–83 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 73 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 73 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 73 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 77 |
ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 3 | 79 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 79 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 79 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 80 |
MissingOverride | The method 'setAllowedParametersList(List)' is missing an @Override annotation. | 3 | 88–91 |
MissingOverride | The method 'setIgnoredParametersList(List)' is missing an @Override annotation. | 3 | 96–99 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidUncheckedExceptionsInSignatures | A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause | 3 | 56 |
AvoidUncheckedExceptionsInSignatures | A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause | 3 | 56 |
AvoidUncheckedExceptionsInSignatures | A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause | 3 | 56 |
AvoidUncheckedExceptionsInSignatures | A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause | 3 | 56 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 2 | 69 |
ImmutableField | Private field '_logger' could be made final; it is only initialized in the declaration or constructor. | 3 | 69 |
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 4 | 139–142 |
MissingOverride | The method 'parseBlockingCacheTimeoutMillis(FilterConfig)' is missing an @Override annotation. | 3 | 152–164 |
AvoidUncheckedExceptionsInSignatures | A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause | 3 | 180 |
AvoidUncheckedExceptionsInSignatures | A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause | 3 | 180 |
AvoidUncheckedExceptionsInSignatures | A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause | 3 | 180 |
AvoidUncheckedExceptionsInSignatures | A method or constructor should not explicitly declare unchecked exceptions in its 'throws' clause | 3 | 180 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the PathCacheService constructor if you want a default access modifier | 3 | 54–58 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 54–58 |
InsufficientStringBufferDeclaration | StringBuffer constructor is initialized with size 16, but has at least 21 characters appended. | 3 | 79 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 80 |
ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 3 | 80 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyFields | Too many fields | 3 | 41–465 |
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 4 | 449–453 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 80 |
CyclomaticComplexity | The method 'getPage(HttpServletRequest, int)' has a cyclomatic complexity of 11. | 3 | 190–265 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 336 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UncommentedEmptyConstructor | Document empty constructor | 3 | 50–52 |
ShortVariable | Avoid variables with short names like o | 3 | 151 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 3 | 162–165 |
ShortVariable | Avoid variables with short names like o | 3 | 190 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
GodClass | Possible God Class (WMC=67, ATFD=48, TCC=3.297%) | 3 | 64–727 |
AvoidFileStream | Avoid instantiating FileInputStream, FileOutputStream, FileReader, or FileWriter | 1 | 220 |
ExcessiveMethodLength | Avoid really long methods. | 3 | 340–572 |
NPathComplexity | The method 'readCSVFile(Reader, CSVReader, int, boolean, boolean, boolean, Locale, String)' has an NPath complexity of 233024 | 3 | 340–572 |
CyclomaticComplexity | The method 'readCSVFile(Reader, CSVReader, int, boolean, boolean, boolean, Locale, String)' has a cyclomatic complexity of 31. | 3 | 340–572 |
NcssCount | The method 'readCSVFile(Reader, CSVReader, int, boolean, boolean, boolean, Locale, String)' has a NCSS line count of 103. | 3 | 340–572 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 442–474 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 450 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 462 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 476–549 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 532 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'java.util.Date' due to existing import 'java.util.Date' | 4 | 100 |
InsufficientStringBufferDeclaration | StringBuffer constructor is initialized with size 16, but has at least 24 characters appended. | 3 | 136 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 137 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 138 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 142 |
InsufficientStringBufferDeclaration | StringBuffer constructor is initialized with size 16, but has at least 30 characters appended. | 3 | 181 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 182 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 183 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 187 |
InsufficientStringBufferDeclaration | StringBuffer constructor is initialized with size 16, but has at least 29 characters appended. | 3 | 230 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 231 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 232 |
InsufficientStringBufferDeclaration | StringBuffer constructor is initialized with size 16, but has at least 54 characters appended. | 3 | 264 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 265 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 266 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 270 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 285 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 296 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 303 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 52–385 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 58 |
FieldNamingConventions | The constant name '_mapDaemonEntries' doesn't match '[A-Z][A-Z_0-9]*' | 1 | 58 |
FieldNamingConventions | The constant name '_random' doesn't match '[A-Z][A-Z_0-9]*' | 1 | 59 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 74–120 |
UseCollectionIsEmpty | Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() | 3 | 84 |
AvoidProtectedMethodInFinalClassNotExtending | Avoid protected methods in a final class that doesnt extend anything other than Object. Change to private or package access. | 3 | 325–328 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 3 | 39 |
AvoidStringBufferField | StringBuffers can grow quite a lot, and so may become a source of memory leak (if the owning class has a long life time). | 3 | 57 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 89 |
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 1 | 146–149 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_formatterDateTime' could be made final; it is only initialized in the declaration or constructor. | 3 | 47 |
FieldNamingConventions | The final field name '_thread' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 58 |
AvoidProtectedMethodInFinalClassNotExtending | Avoid protected methods in a final class that doesnt extend anything other than Object. Change to private or package access. | 3 | 176–179 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 285 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 3 | 59 |
FieldNamingConventions | The final field name '_queue' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 63 |
FieldNamingConventions | The final field name '_executor' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 64 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 3 | 65 |
FieldNamingConventions | The final field name '_coordinatorThread' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 65 |
FieldNamingConventions | The final field name '_scheduledDaemonsTimer' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 66 |
FieldNamingConventions | The final field name '_executingDaemons' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 67 |
FieldNamingConventions | The final field name '_scheduledDaemons' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 68 |
AvoidUsingVolatile | Use of modifier volatile is not recommended. | 2 | 69 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 3 | 86 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 3 | 96 |
AvoidCatchingThrowable | A catch statement should never catch throwable since it includes errors. | 3 | 189 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 221–231 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 225 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 3 | 290 |
FieldNamingConventions | The final field name '_entry' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 293 |
AvoidUsingVolatile | Use of modifier volatile is not recommended. | 2 | 294 |
AvoidUsingVolatile | Use of modifier volatile is not recommended. | 2 | 295 |
CommentRequired | Public method and constructor comments are required | 3 | 306–309 |
FieldNamingConventions | The final field name '_entry' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 352 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 358–361 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 3 | 44 |
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 46 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the DEAMON_THREAD_BEAN_NAME field if you want a default access modifier | 3 | 46 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 3 | 85 |
AvoidCatchingThrowable | A catch statement should never catch throwable since it includes errors. | 3 | 106 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
FieldNamingConventions | The constant name '_defaultThreadFactory' doesn't match '[A-Z][A-Z_0-9]*' | 1 | 49 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 3 | 61 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 3 | 61 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 3 | 63 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 73–76 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'run()' is missing an @Override annotation. | 3 | 50–54 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 3 | 42 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 3 | 44 |
ImmutableField | Private field '_runnable' could be made final; it is only initialized in the declaration or constructor. | 3 | 44 |
ImmutableField | Private field '_strKey' could be made final; it is only initialized in the declaration or constructor. | 3 | 45 |
ImmutableField | Private field '_plugin' could be made final; it is only initialized in the declaration or constructor. | 3 | 46 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 3 | 59 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 76 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 3 | 87 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 3 | 59 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 3 | 61 |
FieldNamingConventions | The final field name '_wrapped' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 61 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 3 | 69 |
FieldDeclarationsShouldBeAtStartOfClass | Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. | 3 | 91 |
FieldDeclarationsShouldBeAtStartOfClass | Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. | 3 | 92 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 3 | 93 |
FieldDeclarationsShouldBeAtStartOfClass | Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. | 3 | 93 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 93 |
ImmutableField | Private field '_mapThreadByKey' could be made final; it is only initialized in the declaration or constructor. | 3 | 93 |
FieldDeclarationsShouldBeAtStartOfClass | Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. | 3 | 94 |
ImmutableField | Private field '_listThread' could be made final; it is only initialized in the declaration or constructor. | 3 | 94 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 3 | 94 |
AssignmentInOperand | Avoid assignments in operands | 3 | 112 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 116–150 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 3 | 118 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 120–142 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 3 | 147 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 3 | 166 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 3 | 168 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 3 | 168 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 3 | 176 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 3 | 189 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 3 | 191 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 3 | 204 |
DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 3 | 221 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 239–242 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 249–257 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 264–267 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ShortVariable | Avoid variables with short names like o | 3 | 185 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 252 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_listRegisteredListeners' could be made final; it is only initialized in the declaration or constructor. | 3 | 51 |
LinguisticNaming | Linguistics Antipattern - The getter 'getDashboardComponents' should not return void linguistically | 3 | 74–80 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
GodClass | Possible God Class (WMC=56, ATFD=45, TCC=3.268%) | 3 | 60–530 |
ShortVariable | Avoid variables with short names like dc | 3 | 136 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 291 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 433 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 495 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 41–71 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
FormalParameterNamingConventions | The method parameter name 'user_id' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 72 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AbstractClassWithoutAnyMethod | No abstract method which means that the keyword is most likely used to prevent instantiation. Use a private or protected constructor instead. | 1 | 43–45 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ShortVariable | Avoid variables with short names like dc | 3 | 136 |
CyclomaticComplexity | The method 'updateDashboardComponents(IAdminDashboardComponent, List, int)' has a cyclomatic complexity of 11. | 3 | 224–254 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 286 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 358 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ShortVariable | Avoid variables with short names like is | 3 | 82 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 87 |
LinguisticNaming | Linguistics Antipattern - The getter 'getPoolList' should not return void linguistically | 3 | 148–154 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 2 | 62 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 69–72 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 114 |
MissingOverride | The method 'getParentLogger()' is missing an @Override annotation. | 3 | 226–229 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 107–122 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassNamingConventions | The utility class name 'CoreDataKeys' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 1 | 39–49 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
FieldNamingConventions | The final field name '_prefixes' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 47 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 50–54 |
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 74–77 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the getEntityCacheKey method if you want a default access modifier | 3 | 74–77 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the getPrefixCacheKey method if you want a default access modifier | 3 | 86–91 |
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 86–91 |
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 96–99 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the removeCachedPrefixes method if you want a default access modifier | 3 | 96–99 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
GodClass | Possible God Class (WMC=52, ATFD=14, TCC=19.118%) | 3 | 51–473 |
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 57 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the VALUE_MISSING field if you want a default access modifier | 3 | 57 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 3 | 102–105 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 3 | 107–110 |
ShortVariable | Avoid variables with short names like p | 3 | 154 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 157–174 |
ShortVariable | Avoid variables with short names like sb | 3 | 354 |
ShortVariable | Avoid variables with short names like e | 3 | 448 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 466 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 40–47 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 90 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 107 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 120–132 |
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 3 | 148–155 |
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 3 | 174–197 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UnnecessaryModifier | Unnecessary modifier 'public' on method 'parseAndClean': the method is declared in an interface type | 3 | 63 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UnnecessaryConstructor | Avoid unnecessary constructors - the compiler will generate these for you | 3 | 65–68 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 83 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 10–40 |
AbstractClassWithoutAbstractMethod | This abstract class does not have any abstract methods | 3 | 10–40 |
ImmutableField | Private field '_listeners' could be made final; it is only initialized in the declaration or constructor. | 3 | 13 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 13 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 5–25 |
RedundantFieldInitializer | Avoid using redundant field initializer for '_instance' | 3 | 8 |
NonThreadSafeSingleton | Singleton is not thread safe | 3 | 16–19 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassNamingConventions | The utility class name 'ResourceEventManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 1 | 48–112 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 36–51 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 1 | 44–184 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 36–105 |
ShortVariable | Avoid variables with short names like e | 3 | 66 |
ShortVariable | Avoid variables with short names like e | 3 | 81 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UnnecessaryModifier | Unnecessary modifiers 'static final' on field 'LINK_VALIDITY_TIME': the field is declared in an interface type | 3 | 50 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UnnecessaryModifier | Unnecessary modifier 'public' on method 'checkAccessRights': the method is declared in an interface type | 3 | 60 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UnnecessaryModifier | Unnecessary modifier 'public' on method 'getName': the method is declared in an interface type | 3 | 58 |
UnnecessaryModifier | Unnecessary modifier 'public' on method 'isDefault': the method is declared in an interface type | 3 | 65 |
UnnecessaryModifier | Unnecessary modifier 'public' on method 'healthCheck': the method is declared in an interface type | 3 | 72–76 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 92 |
AvoidReassigningParameters | Avoid reassigning parameters such as 'additionnalData' | 2 | 115 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 119 |
AvoidReassigningParameters | Avoid reassigning parameters such as 'additionnalData' | 2 | 144 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 149 |
ShortVariable | Avoid variables with short names like sb | 3 | 206 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 207 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 208 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 209 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'FileService.PARAMETER_VALIDITY_TIME' due to existing static import 'fr.paris.lutece.portal.service.file.FileService.PARAMETER_VALIDITY_TIME' | 4 | 291 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UnusedPrivateField | Avoid unused private fields such as 'MESSAGE_ACCESS_DENIED_KEY'. | 3 | 49 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
FormalParameterNamingConventions | The method parameter name '_fileDownloadUrlService' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 83 |
FormalParameterNamingConventions | The method parameter name '_fileRBACService' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 83 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 228 |
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 | 266 |
CommentRequired | Public method and constructor comments are required | 3 | 300–303 |
CommentRequired | Public method and constructor comments are required | 3 | 305–308 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 50–176 |
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 1 | 50–176 |
FieldNamingConventions | The constant name '_fileStoreService' doesn't match '[A-Z][A-Z_0-9]*' | 1 | 54 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 59–62 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 70–73 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 110–132 |
MissingOverride | The method 'addImageResource(FileItem)' is missing an @Override annotation. | 3 | 144–155 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 1 | 60–170 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 78–81 |
MissingOverride | The method 'getImageResource(int)' is missing an @Override annotation. | 3 | 108–127 |
ControlStatementBraces | This statement should have braces | 3 | 111 |
MissingOverride | The method 'getResourceTypeId()' is missing an @Override annotation. | 3 | 134–137 |
MissingOverride | The method 'addImageResource(FileItem)' is missing an @Override annotation. | 3 | 158–169 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 60–72 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 71 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 48 |
ImmutableField | Private field '_mapInitParameters' could be made final; it is only initialized in the declaration or constructor. | 3 | 48 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_listFilters' could be made final; it is only initialized in the declaration or constructor. | 3 | 54 |
ShortVariable | Avoid variables with short names like f | 3 | 86 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 139 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_mapInitParameters' could be made final; it is only initialized in the declaration or constructor. | 3 | 53 |
ShortVariable | Avoid variables with short names like o | 3 | 224 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'doFilter(ServletRequest, ServletResponse)' is missing an @Override annotation. | 3 | 122–129 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_strName' could be made final; it is only initialized in the declaration or constructor. | 3 | 48 |
ImmutableField | Private field '_context' could be made final; it is only initialized in the declaration or constructor. | 3 | 49 |
ImmutableField | Private field '_mapInitParameters' could be made final; it is only initialized in the declaration or constructor. | 3 | 50 |
MissingOverride | The method 'getFilterName()' is missing an @Override annotation. | 3 | 72–75 |
MissingOverride | The method 'getServletContext()' is missing an @Override annotation. | 3 | 80–83 |
MissingOverride | The method 'getInitParameter(String)' is missing an @Override annotation. | 3 | 88–91 |
MissingOverride | The method 'getInitParameterNames()' is missing an @Override annotation. | 3 | 98–101 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'init(FilterConfig)' is missing an @Override annotation. | 3 | 58–61 |
MissingOverride | The method 'doFilter(ServletRequest, ServletResponse, FilterChain)' is missing an @Override annotation. | 3 | 66–109 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 99 |
MissingOverride | The method 'destroy()' is missing an @Override annotation. | 3 | 114–132 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 127 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the matchMapping method if you want a default access modifier | 3 | 143–146 |
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 143–146 |
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 159–202 |
NPathComplexity | The method 'matchFilterUrl(String, String)' has an NPath complexity of 240 | 3 | 159–202 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the matchFilterUrl method if you want a default access modifier | 3 | 159–202 |
CyclomaticComplexity | The method 'matchFilterUrl(String, String)' has a cyclomatic complexity of 13. | 3 | 159–202 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 171 |
SimplifyBooleanReturns | Avoid unnecessary if..then..else statements when returning booleans | 3 | 178–182 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_logger' could be made final; it is only initialized in the declaration or constructor. | 3 | 69 |
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 2 | 69 |
MissingOverride | The method 'init(FilterConfig)' is missing an @Override annotation. | 3 | 80–83 |
UncommentedEmptyMethodBody | Document empty method body | 3 | 81–83 |
MissingOverride | The method 'doFilter(ServletRequest, ServletResponse, FilterChain)' is missing an @Override annotation. | 3 | 99–109 |
CollapsibleIfStatements | These nested if statements could be combined | 3 | 153–156 |
MissingOverride | The method 'destroy()' is missing an @Override annotation. | 3 | 189–192 |
UncommentedEmptyMethodBody | Document empty method body | 3 | 190–192 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_logger' could be made final; it is only initialized in the declaration or constructor. | 3 | 64 |
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 2 | 64 |
MissingOverride | The method 'init(FilterConfig)' is missing an @Override annotation. | 3 | 74–77 |
UncommentedEmptyMethodBody | Document empty method body | 3 | 75–77 |
MissingOverride | The method 'doFilter(ServletRequest, ServletResponse, FilterChain)' is missing an @Override annotation. | 3 | 93–101 |
MissingOverride | The method 'destroy()' is missing an @Override annotation. | 3 | 128–131 |
UncommentedEmptyMethodBody | Document empty method body | 3 | 129–131 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 61–66 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 75–80 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UncommentedEmptyMethodBody | Document empty method body | 3 | 58–60 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
FieldNamingConventions | The constant name '_log' doesn't match '[A-Z][A-Z_0-9]*' | 1 | 59 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 164 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 198 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 40–76 |
FieldNamingConventions | The final field name '_override' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 42 |
FieldNamingConventions | The final field name '_defaults' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 43 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 45–49 |
CommentRequired | Public method and constructor comments are required | 3 | 45–49 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 80 |
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 | 82 |
FieldNamingConventions | The constant name '_overrideLoader' doesn't match '[A-Z][A-Z_0-9]*' | 1 | 84 |
FieldNamingConventions | The constant name '_resourceBundleCache' doesn't match '[A-Z][A-Z_0-9]*' | 1 | 85 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 85 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 117–124 |
ShortVariable | Avoid variables with short names like sb | 3 | 155 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 204 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 204–234 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 206 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 247 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 3 | 253 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 40–47 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Public method and constructor comments are required | 3 | 51–55 |
ConstructorCallsOverridableMethod | Overridable method 'setImage' called during object construction | 1 | 53 |
ConstructorCallsOverridableMethod | Overridable method 'setMimeType' called during object construction | 1 | 54 |
UncommentedEmptyConstructor | Document empty constructor | 3 | 57–60 |
CommentRequired | Public method and constructor comments are required | 3 | 57–60 |
MethodReturnsInternalArray | Returning '_strImage' may expose an internal array. | 3 | 69 |
ArrayIsStoredDirectly | The user-supplied array 'strImage' is stored directly. | 3 | 78 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassNamingConventions | The utility class name 'ImageResourceManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 1 | 47–123 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 50 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ShortVariable | Avoid variables with short names like sc | 3 | 107 |
ShortVariable | Avoid variables with short names like in | 3 | 115 |
AvoidFileStream | Avoid instantiating FileInputStream, FileOutputStream, FileReader, or FileWriter | 1 | 115 |
AssignmentInOperand | Avoid assignments in operands | 3 | 120 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 3 | 200 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 51 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 75 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassNamingConventions | The utility class name 'AppInfo' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 1 | 39–68 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the LUTECE_BANNER_VERSION field if you want a default access modifier | 3 | 43–45 |
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 43–45 |
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 47–50 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the LUTECE_BANNER_SERVER field if you want a default access modifier | 3 | 47–50 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–360 |
ExcessiveMethodLength | Avoid really long methods. | 3 | 125–245 |
InsufficientStringBufferDeclaration | StringBuffer constructor is initialized with size 16, but has at least 71 characters appended. | 3 | 227 |
ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 3 | 228 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 230 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 313 |
ShortVariable | Avoid variables with short names like p | 3 | 314 |
AvoidFileStream | Avoid instantiating FileInputStream, FileOutputStream, FileReader, or FileWriter | 1 | 316 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 320 |
AvoidFileStream | Avoid instantiating FileInputStream, FileOutputStream, FileReader, or FileWriter | 1 | 341 |
ShortVariable | Avoid variables with short names like fw | 3 | 341 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 345 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ShortVariable | Avoid variables with short names like e | 3 | 56 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassNamingConventions | The utility class name 'PostStartUpServiceManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 1 | 44–75 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 69 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassNamingConventions | The utility class name 'ShutdownServiceManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 1 | 44–75 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 69 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassNamingConventions | The utility class name 'StartUpServiceManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 1 | 47–109 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 81 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 103 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'register()' is missing an @Override annotation. | 3 | 57–70 |
ShortVariable | Avoid variables with short names like rt | 3 | 59 |
ShortVariable | Avoid variables with short names like p | 3 | 64 |
MissingOverride | The method 'getResourceIdList(Locale)' is missing an @Override annotation. | 3 | 79–89 |
MissingOverride | The method 'getTitle(String, Locale)' is missing an @Override annotation. | 3 | 100–105 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'getResourceTypeCode()' is missing an @Override annotation. | 3 | 257–260 |
MissingOverride | The method 'getResourceId()' is missing an @Override annotation. | 3 | 267–270 |
AddEmptyString | Do not add empty strings | 3 | 269 |
MissingOverride | The method 'setLocale(Locale)' is missing an @Override annotation. | 3 | 278–281 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassNamingConventions | The utility class name 'InsertServiceManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 1 | 47–137 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 53 |
ShortVariable | Avoid variables with short names like is | 3 | 71 |
ShortVariable | Avoid variables with short names like is | 3 | 83 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 2 | 50 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'getEntityManagerFactory()' is missing an @Override annotation. | 3 | 69–82 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 2 | 74 |
MissingOverride | The method 'process()' is missing an @Override annotation. | 3 | 79–159 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 84 |
ShortVariable | Avoid variables with short names like ds | 3 | 94 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 2 | 96 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 2 | 109 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 2 | 130 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 2 | 139 |
ShortVariable | Avoid variables with short names like tm | 3 | 141 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 2 | 144 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 2 | 147 |
MissingOverride | The method 'getName()' is missing an @Override annotation. | 3 | 166–169 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 51–56 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 64–76 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 60 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 53–56 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 71–79 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 4 | 243–246 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 79–142 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 92–141 |
AvoidDuplicateLiterals | The String literal "{} {} " appears 4 times in this file; the first occurrence is on line 122 | 3 | 122 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 124 |
CyclomaticComplexity | The method 'sendMail(MailItem, Transport, Session, StringBuilder)' has a cyclomatic complexity of 12. | 3 | 219–271 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 224 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 226 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 228 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 52–628 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 88 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 111–112 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 137–138 |
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 | 200–201 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 232–234 |
ExcessiveParameterList | Avoid long parameter lists. | 3 | 232–234 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 270–271 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 298–299 |
ExcessiveParameterList | Avoid long parameter lists. | 3 | 329–330 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 329–330 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 362 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 385–386 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 411–412 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 444–445 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 470–471 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 499–500 |
ShortVariable | Avoid variables with short names like sb | 3 | 595 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–707 |
GodClass | Possible God Class (WMC=47, ATFD=86, TCC=16.190%) | 3 | 82–707 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 154 |
AvoidProtectedMethodInFinalClassNotExtending | Avoid protected methods in a final class that doesnt extend anything other than Object. Change to private or package access. | 3 | 181–188 |
AvoidProtectedMethodInFinalClassNotExtending | Avoid protected methods in a final class that doesnt extend anything other than Object. Change to private or package access. | 3 | 206–216 |
AvoidProtectedMethodInFinalClassNotExtending | Avoid protected methods in a final class that doesnt extend anything other than Object. Change to private or package access. | 3 | 234–288 |
AvoidProtectedMethodInFinalClassNotExtending | Avoid protected methods in a final class that doesnt extend anything other than Object. Change to private or package access. | 3 | 306–340 |
AvoidProtectedMethodInFinalClassNotExtending | Avoid protected methods in a final class that doesnt extend anything other than Object. Change to private or package access. | 3 | 358–381 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 397–405 |
AvoidProtectedMethodInFinalClassNotExtending | Avoid protected methods in a final class that doesnt extend anything other than Object. Change to private or package access. | 3 | 420–429 |
AvoidProtectedMethodInFinalClassNotExtending | Avoid protected methods in a final class that doesnt extend anything other than Object. Change to private or package access. | 3 | 452–485 |
PreserveStackTrace | New exception is thrown in catch block, original stack trace may be lost | 3 | 465 |
AvoidProtectedMethodInFinalClassNotExtending | Avoid protected methods in a final class that doesnt extend anything other than Object. Change to private or package access. | 3 | 500–538 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 530 |
AvoidProtectedMethodInFinalClassNotExtending | Avoid protected methods in a final class that doesnt extend anything other than Object. Change to private or package access. | 3 | 549–552 |
ShortVariable | Avoid variables with short names like st | 3 | 587 |
AvoidProtectedMethodInFinalClassNotExtending | Avoid protected methods in a final class that doesnt extend anything other than Object. Change to private or package access. | 3 | 605–625 |
AssignmentInOperand | Avoid assignments in operands | 3 | 617 |
CyclomaticComplexity | The method 'convertUrlAttachmentDataSourceToByteArrayDataSource(UrlAttachment)' has a cyclomatic complexity of 11. | 3 | 634–706 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 637 |
ShortVariable | Avoid variables with short names like bo | 3 | 645 |
ShortVariable | Avoid variables with short names like o | 3 | 651 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_listMails' could be made final; it is only initialized in the declaration or constructor. | 3 | 46 |
MissingOverride | The method 'send(MailItem)' is missing an @Override annotation. | 3 | 54–60 |
MissingOverride | The method 'consume()' is missing an @Override annotation. | 3 | 67–81 |
MissingOverride | The method 'size()' is missing an @Override annotation. | 3 | 88–91 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 186–193 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 166–167 |
ArrayIsStoredDirectly | The user-supplied array 'messageArgs' is stored directly. | 3 | 166 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 242–243 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 269–270 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 333–334 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 336 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 480 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 501 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 523 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 38–63 |
ImmutableField | Private field '_strText' could be made final; it is only initialized in the declaration or constructor. | 3 | 42 |
ImmutableField | Private field '_strTitle' could be made final; it is only initialized in the declaration or constructor. | 3 | 43 |
CommentRequired | Public method and constructor comments are required | 3 | 45–50 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_strTextKey' could be made final; it is only initialized in the declaration or constructor. | 3 | 62 |
ImmutableField | Private field '_strTitleKey' could be made final; it is only initialized in the declaration or constructor. | 3 | 63 |
ImmutableField | Private field '_strUrl' could be made final; it is only initialized in the declaration or constructor. | 3 | 64 |
ImmutableField | Private field '_strTarget' could be made final; it is only initialized in the declaration or constructor. | 3 | 65 |
ImmutableField | Private field '_nType' could be made final; it is only initialized in the declaration or constructor. | 3 | 67 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 111 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 122 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 91 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 157 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 164 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseVarargs | Consider using varargs for methods or constructors which take an array the last parameter. | 4 | 242 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 267–268 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 295–296 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 325–326 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 328 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 353 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 356 |
LinguisticNaming | Linguistics Antipattern - The setter 'setSiteMessageUrl' should not return any type except void linguistically | 3 | 444–450 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 516–535 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'getName()' is missing an @Override annotation. | 3 | 56–59 |
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 68–78 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the getKey method if you want a default access modifier | 3 | 68–78 |
CloneMethodReturnTypeMustMatchClassName | The return type of the clone() method must be the class name when implements Cloneable | 3 | 144–147 |
CloneThrowsCloneNotSupportedException | clone() method should throw CloneNotSupportedException | 3 | 144–147 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_pageService' could be made final; it is only initialized in the declaration or constructor. | 3 | 53 |
MissingOverride | The method 'isInvoked(HttpServletRequest)' is missing an @Override annotation. | 3 | 67–71 |
MissingOverride | The method 'getName()' is missing an @Override annotation. | 3 | 76–79 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_page' could be made final; it is only initialized in the declaration or constructor. | 3 | 50 |
ImmutableField | Private field '_nType' could be made final; it is only initialized in the declaration or constructor. | 3 | 51 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'register()' is missing an @Override annotation. | 3 | 60–78 |
ShortVariable | Avoid variables with short names like rt | 3 | 62 |
ShortVariable | Avoid variables with short names like p | 3 | 67 |
MissingOverride | The method 'getResourceIdList(Locale)' is missing an @Override annotation. | 3 | 87–90 |
MissingOverride | The method 'getTitle(String, Locale)' is missing an @Override annotation. | 3 | 101–106 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–1157 |
UnusedImports | Avoid unused imports such as 'org.apache.commons.fileupload.FileItem' | 4 | 51 |
UnusedImports | Avoid unused imports such as 'fr.paris.lutece.portal.service.util.AppException' | 4 | 82 |
ExcessiveClassLength | Avoid really long classes. | 3 | 97–1157 |
CyclomaticComplexity | The class 'PageService' has a total cyclomatic complexity of 86 (highest 19). | 3 | 97–1157 |
GodClass | Possible God Class (WMC=86, ATFD=104, TCC=6.907%) | 3 | 97–1157 |
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 98–1157 |
PreserveStackTrace | New exception is thrown in catch block, original stack trace may be lost | 3 | 263 |
AvoidReassigningParameters | Avoid reassigning parameters such as 'strPage' | 2 | 267 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 361 |
CyclomaticComplexity | The method 'buildPageContent(String, int, HttpServletRequest)' has a cyclomatic complexity of 11. | 3 | 401–492 |
CyclomaticComplexity | The method 'getPageContent(int, int, HttpServletRequest)' has a cyclomatic complexity of 12. | 3 | 508–573 |
NPathComplexity | The method 'getPageContent(int, int, HttpServletRequest)' has an NPath complexity of 360 | 3 | 508–573 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 534 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 555 |
ShortVariable | Avoid variables with short names like t | 3 | 570 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 588 |
CyclomaticComplexity | The method 'getPortletContent(HttpServletRequest, Portlet, Map, int)' has a cyclomatic complexity of 19. | 3 | 612–710 |
NPathComplexity | The method 'getPortletContent(HttpServletRequest, Portlet, Map, int)' has an NPath complexity of 4608 | 3 | 612–710 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 643 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 650–660 |
UselessStringValueOf | No need to call String.valueOf to append to a string. | 3 | 676 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 3 | 679 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 3 | 696 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 3 | 706 |
SimplifiedTernary | Ternary operators that can be simplified with || or && | 3 | 720 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 1006 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 1032 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 1052–1066 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 1059 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'getName()' is missing an @Override annotation. | 3 | 55–58 |
MissingOverride | The method 'processPortletEvent(PortletEvent)' is missing an @Override annotation. | 3 | 63–74 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 94–108 |
ShortVariable | Avoid variables with short names like p1 | 3 | 153 |
ShortVariable | Avoid variables with short names like p2 | 3 | 153 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–1322 |
ExcessivePublicCount | This class has a bunch of public methods and attributes | 3 | 34–1322 |
ExcessiveClassLength | Avoid really long classes. | 3 | 84–1322 |
CyclomaticComplexity | The class 'Plugin' has a total cyclomatic complexity of 128 (highest 7). | 3 | 84–1322 |
TooManyFields | Too many fields | 3 | 84–1322 |
GodClass | Possible God Class (WMC=128, ATFD=75, TCC=4.023%) | 3 | 84–1322 |
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 85–1322 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 138 |
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 155–214 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the load method if you want a default access modifier | 3 | 155–214 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 190 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 192 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 210 |
ShortVariable | Avoid variables with short names like cs | 3 | 436 |
ShortVariable | Avoid variables with short names like o | 3 | 1107 |
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 1 | 1161–1164 |
UseLocaleWithCaseConversions | When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 3 | 1320 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'init()' is missing an @Override annotation. | 3 | 45–48 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_plugin' could be made final; it is only initialized in the declaration or constructor. | 3 | 46 |
ImmutableField | Private field '_nType' could be made final; it is only initialized in the declaration or constructor. | 3 | 47 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–1028 |
ExcessivePublicCount | This class has a bunch of public methods and attributes | 3 | 34–1028 |
GodClass | Possible God Class (WMC=79, ATFD=8, TCC=1.461%) | 3 | 74–1028 |
TooManyFields | Too many fields | 3 | 74–1028 |
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 75–1028 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 92 |
ImmutableField | Private field '_listCssStyleSheets' could be made final; it is only initialized in the declaration or constructor. | 3 | 92 |
ImmutableField | Private field '_listJavascriptFiles' could be made final; it is only initialized in the declaration or constructor. | 3 | 93 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 93 |
ImmutableField | Private field '_listAdminCssStyleSheets' could be made final; it is only initialized in the declaration or constructor. | 3 | 94 |
ImmutableField | Private field '_listAdminJavascriptFiles' could be made final; it is only initialized in the declaration or constructor. | 3 | 95 |
ImmutableField | Private field '_listFreemarkerMacrosFiles' could be made final; it is only initialized in the declaration or constructor. | 3 | 96 |
ImmutableField | Private field '_listRights' could be made final; it is only initialized in the declaration or constructor. | 3 | 97 |
ImmutableField | Private field '_listPortletTypes' could be made final; it is only initialized in the declaration or constructor. | 3 | 98 |
ImmutableField | Private field '_listDaemons' could be made final; it is only initialized in the declaration or constructor. | 3 | 99 |
ImmutableField | Private field '_listApplications' could be made final; it is only initialized in the declaration or constructor. | 3 | 100 |
ImmutableField | Private field '_listFilters' could be made final; it is only initialized in the declaration or constructor. | 3 | 101 |
ImmutableField | Private field '_listServlets' could be made final; it is only initialized in the declaration or constructor. | 3 | 102 |
ImmutableField | Private field '_listListeners' could be made final; it is only initialized in the declaration or constructor. | 3 | 103 |
ImmutableField | Private field '_listContentServices' could be made final; it is only initialized in the declaration or constructor. | 3 | 104 |
ImmutableField | Private field '_listSearchIndexers' could be made final; it is only initialized in the declaration or constructor. | 3 | 105 |
ImmutableField | Private field '_listInsertServices' could be made final; it is only initialized in the declaration or constructor. | 3 | 106 |
ImmutableField | Private field '_listRBACResourceTypes' could be made final; it is only initialized in the declaration or constructor. | 3 | 107 |
ImmutableField | Private field '_listPageIncludes' could be made final; it is only initialized in the declaration or constructor. | 3 | 108 |
ImmutableField | Private field '_listDashboardComponents' could be made final; it is only initialized in the declaration or constructor. | 3 | 109 |
ImmutableField | Private field '_listAdminDashboardComponents' could be made final; it is only initialized in the declaration or constructor. | 3 | 110 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 111 |
ImmutableField | Private field '_mapParams' could be made final; it is only initialized in the declaration or constructor. | 3 | 111 |
AvoidFileStream | Avoid instantiating FileInputStream, FileOutputStream, FileReader, or FileWriter | 1 | 151 |
ShortVariable | Avoid variables with short names like is | 3 | 753 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 72 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 173–214 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 206 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 237–240 |
AvoidFileStream | Avoid instantiating FileInputStream, FileOutputStream, FileReader, or FileWriter | 1 | 304 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 308 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 78–82 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 89–97 |
MissingOverride | The method 'getName()' is missing an @Override annotation. | 3 | 104–107 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 185 |
InsufficientStringBufferDeclaration | StringBuffer constructor is initialized with size 16, but has at least 19 characters appended. | 3 | 297 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–784 |
GodClass | Possible God Class (WMC=63, ATFD=111, TCC=5.238%) | 3 | 82–784 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 129 |
ShortVariable | Avoid variables with short names like cs | 3 | 167 |
CyclomaticComplexity | The method 'buildPageContent(int, PageData, int, HttpServletRequest)' has a cyclomatic complexity of 13. | 3 | 266–356 |
NPathComplexity | The method 'buildPageContent(int, PageData, int, HttpServletRequest)' has an NPath complexity of 2304 | 3 | 266–356 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 321 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 344 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 408 |
CyclomaticComplexity | The method 'getXPagePathContent(String, int, HttpServletRequest)' has a cyclomatic complexity of 10. | 3 | 428–504 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 493 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 710 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 733–741 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 313 |
PreserveStackTrace | New exception is thrown in catch block, original stack trace may be lost | 3 | 326 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'register()' is missing an @Override annotation. | 3 | 61–79 |
ShortVariable | Avoid variables with short names like rt | 3 | 63 |
ShortVariable | Avoid variables with short names like p | 3 | 68 |
MissingOverride | The method 'getResourceIdList(Locale)' is missing an @Override annotation. | 3 | 88–91 |
MissingOverride | The method 'getTitle(String, Locale)' is missing an @Override annotation. | 3 | 102–108 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 68–76 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 56–64 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UncommentedEmptyConstructor | Document empty constructor | 3 | 57–59 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassNamingConventions | The utility class name 'PrefsConstants' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 1 | 39–48 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 56–64 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UnusedImports | Avoid unused imports such as 'java.util.Arrays' | 4 | 43 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 71–79 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 88 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 142–148 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 156–162 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 290–298 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'setLocale(Locale)' is missing an @Override annotation. | 3 | 56–59 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
FieldNamingConventions | The final field name '_strResourceType' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 63 |
FieldNamingConventions | The final field name '_item' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 64 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 252 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_mapPermissions' could be made final; it is only initialized in the declaration or constructor. | 3 | 53 |
MissingOverride | The method 'setLocale(Locale)' is missing an @Override annotation. | 3 | 72–75 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassNamingConventions | The utility class name 'ResourceTypeManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 1 | 48–148 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 51 |
ShortVariable | Avoid variables with short names like rt | 3 | 69 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_bServiceAvailable' could be made final; it is only initialized in the declaration or constructor. | 3 | 54 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 78–85 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the isPatternValide method if you want a default access modifier | 3 | 103–106 |
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 103–106 |
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 115–118 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the isPatternValide method if you want a default access modifier | 3 | 115–118 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 122 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 57–60 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_listLoaders' could be made final; it is only initialized in the declaration or constructor. | 3 | 59 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 64–76 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 68–75 |
ConstructorCallsOverridableMethod | Overridable method 'initLoaders' called during object construction | 1 | 70 |
ShortVariable | Avoid variables with short names like st | 3 | 95 |
MissingOverride | The method 'getName()' is missing an @Override annotation. | 3 | 120–123 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 146 |
ShortVariable | Avoid variables with short names like i | 3 | 214 |
ShortVariable | Avoid variables with short names like i | 3 | 233 |
ShortVariable | Avoid variables with short names like j | 3 | 239 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 67–75 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–668 |
GodClass | Possible God Class (WMC=59, ATFD=82, TCC=18.182%) | 3 | 74–668 |
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 75–668 |
AvoidStringBufferField | StringBuffers can grow quite a lot, and so may become a source of memory leak (if the owning class has a long life time). | 3 | 88 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 133 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 182–261 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 186 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 229 |
AvoidDuplicateLiterals | The String literal "</strong>\r\n" appears 4 times in this file; the first occurrence is on line 281 | 3 | 281 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 287 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 322 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 373–383 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 410–418 |
ShortVariable | Avoid variables with short names like e | 3 | 469 |
ShortVariable | Avoid variables with short names like e | 3 | 485 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 3 | 488 |
ShortVariable | Avoid variables with short names like e | 3 | 502 |
ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 3 | 504 |
ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 3 | 507 |
ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 3 | 514 |
ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 3 | 522 |
ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 3 | 528 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–327 |
UseUnderscoresInNumericLiterals | Number 1000000 should separate every third digit with an underscore | 3 | 78 |
MissingOverride | The method 'getSearchResults(String, HttpServletRequest)' is missing an @Override annotation. | 3 | 95–148 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 106–128 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 110–123 |
UseVarargs | Consider using varargs for methods or constructors which take an array the last parameter. | 4 | 177 |
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 3 | 182–186 |
CyclomaticComplexity | The method 'search(String, String, Query, HttpServletRequest, boolean)' has a cyclomatic complexity of 11. | 3 | 221–291 |
ShortVariable | Avoid variables with short names like ir | 3 | 224 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 234 |
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 3 | 273–284 |
ShortVariable | Avoid variables with short names like si | 3 | 277 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 286 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 106 |
ExcessiveMethodLength | Avoid really long methods. | 3 | 196–302 |
ShortVariable | Avoid variables with short names like ft | 3 | 198 |
PreserveStackTrace | New exception is thrown in catch block, original stack trace may be lost | 3 | 241 |
ShortVariable | Avoid variables with short names like sb | 3 | 246 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 252 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 257 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 265 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 275 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 92 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_strMetadata' could be made final; it is only initialized in the declaration or constructor. | 3 | 59 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 156 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 177 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 219 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ShortVariable | Avoid variables with short names like rt | 3 | 59 |
ShortVariable | Avoid variables with short names like p | 3 | 64 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 77 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 93 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
FieldNamingConventions | The final field name '_accessLoggerList' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 67 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassNamingConventions | The utility class name 'AccessLoggerConstants' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 1 | 39–64 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
FieldNamingConventions | The final field name '_bEnableCaptcha' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 44 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UnnecessaryModifier | Unnecessary modifier 'public' on method 'info': the method is declared in an interface type | 3 | 58 |
UnnecessaryModifier | Unnecessary modifier 'public' on method 'info': the method is declared in an interface type | 3 | 72–75 |
UnnecessaryModifier | Unnecessary modifier 'public' on method 'debug': the method is declared in an interface type | 3 | 91 |
UnnecessaryModifier | Unnecessary modifier 'public' on method 'debug': the method is declared in an interface type | 3 | 105–108 |
UnnecessaryModifier | Unnecessary modifier 'public' on method 'trace': the method is declared in an interface type | 3 | 124 |
UnnecessaryModifier | Unnecessary modifier 'public' on method 'trace': the method is declared in an interface type | 3 | 138–141 |
UnnecessaryModifier | Unnecessary modifier 'public' on method 'warn': the method is declared in an interface type | 3 | 157 |
UnnecessaryModifier | Unnecessary modifier 'public' on method 'warn': the method is declared in an interface type | 3 | 171–174 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
FieldNamingConventions | The final field name '_strRedirectUrl' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 42 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 141 |
ImmutableField | Private field '_mapUserInfo' could be made final; it is only initialized in the declaration or constructor. | 3 | 141 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 161 |
ImmutableField | Private field '_workgroups' could be made final; it is only initialized in the declaration or constructor. | 3 | 161 |
MethodReturnsInternalArray | Returning '_roles' may expose an internal array. | 3 | 286 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 295 |
MethodReturnsInternalArray | Returning '_groups' may expose an internal array. | 3 | 332 |
ShortVariable | Avoid variables with short names like j | 3 | 370 |
ShortVariable | Avoid variables with short names like j | 3 | 401 |
CloneMethodReturnTypeMustMatchClassName | The return type of the clone() method must be the class name when implements Cloneable | 3 | 481–484 |
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 1 | 492–495 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 49–52 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 59–66 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UnnecessaryModifier | Unnecessary modifier 'final' on method 'encryptRsa': the method is already in a final class | 3 | 64–67 |
UnnecessaryModifier | Unnecessary modifier 'final' on method 'encryptRsa': the method is already in a final class | 3 | 76–81 |
UnnecessaryModifier | Unnecessary modifier 'final' on method 'decryptRsa': the method is already in a final class | 3 | 91–94 |
UnnecessaryModifier | Unnecessary modifier 'final' on method 'decryptRsa': the method is already in a final class | 3 | 103–109 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassNamingConventions | The utility class name 'SecurityModel' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 1 | 39–70 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 94–114 |
PositionLiteralsFirstInCaseInsensitiveComparisons | Position literals first in String comparisons for EqualsIgnoreCase | 3 | 100 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 112 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 198 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 389 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 501 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the isUsersListAvailable method if you want a default access modifier | 3 | 568–571 |
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 568–571 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 1 | 52–141 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 72–80 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
FieldNamingConventions | The final field name '_bAddHashToLogs' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 78 |
FieldNamingConventions | The final field name '_messageFormat' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 79 |
FieldNamingConventions | The final field name '_messageFormatSeparator' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 80 |
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 2 | 84 |
AvoidDuplicateLiterals | The String literal "null" appears 4 times in this file; the first occurrence is on line 97 | 3 | 97 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 97 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 115 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 133 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 151 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 167 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 198–199 |
ShortVariable | Avoid variables with short names like md | 3 | 228 |
ShortVariable | Avoid variables with short names like sb | 3 | 232 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 26–310 |
ImmutableField | Private field '_mapSecurityHeaders' could be made final; it is only initialized in the declaration or constructor. | 3 | 31 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 31 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 31 |
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 33 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the _mapActiveSecurityHeadersForFilters field if you want a default access modifier | 3 | 33 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 33 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 33 |
RedundantFieldInitializer | Avoid using redundant field initializer for '_bMapRefreshDone' | 3 | 37 |
ImmutableField | Private field '_logger' could be made final; it is only initialized in the declaration or constructor. | 3 | 39 |
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 2 | 39 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 55 |
CollapsibleIfStatements | These nested if statements could be combined | 3 | 61–64 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 294 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 295 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 302 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_strName' could be made final; it is only initialized in the declaration or constructor. | 3 | 47 |
ImmutableField | Private field '_servlet' could be made final; it is only initialized in the declaration or constructor. | 3 | 48 |
ImmutableField | Private field '_strMapping' could be made final; it is only initialized in the declaration or constructor. | 3 | 49 |
ImmutableField | Private field '_plugin' could be made final; it is only initialized in the declaration or constructor. | 3 | 50 |
ImmutableField | Private field '_mapInitParameters' could be made final; it is only initialized in the declaration or constructor. | 3 | 51 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_strName' could be made final; it is only initialized in the declaration or constructor. | 3 | 48 |
ImmutableField | Private field '_context' could be made final; it is only initialized in the declaration or constructor. | 3 | 49 |
ImmutableField | Private field '_mapInitParameters' could be made final; it is only initialized in the declaration or constructor. | 3 | 50 |
MissingOverride | The method 'getServletName()' is missing an @Override annotation. | 3 | 72–75 |
MissingOverride | The method 'getServletContext()' is missing an @Override annotation. | 3 | 80–83 |
MissingOverride | The method 'getInitParameter(String)' is missing an @Override annotation. | 3 | 88–91 |
MissingOverride | The method 'getInitParameterNames()' is missing an @Override annotation. | 3 | 98–101 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 87 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 111 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_mapInitParameters' could be made final; it is only initialized in the declaration or constructor. | 3 | 49 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 49 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_listServlets' could be made final; it is only initialized in the declaration or constructor. | 3 | 53 |
ShortVariable | Avoid variables with short names like s | 3 | 85 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 137 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ShortVariable | Avoid variables with short names like se | 3 | 49 |
MissingOverride | The method 'sessionCreated(HttpSessionEvent)' is missing an @Override annotation. | 3 | 49–55 |
ShortVariable | Avoid variables with short names like se | 3 | 60 |
MissingOverride | The method 'sessionDestroyed(HttpSessionEvent)' is missing an @Override annotation. | 3 | 60–66 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 75 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 208 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 270 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the ContextFileFilter nested class if you want a default access modifier | 3 | 392–408 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 50–101 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 3 | 57 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 3 | 65 |
CommentRequired | Protected method constructor comments are required | 3 | 100 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
NonThreadSafeSingleton | Singleton is not thread safe | 3 | 304–308 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 1 | 46–230 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 73 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 134–141 |
UseCollectionIsEmpty | Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() | 3 | 180 |
ShortVariable | Avoid variables with short names like ci | 3 | 199 |
ShortVariable | Avoid variables with short names like ci | 3 | 206 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 207–215 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 61–71 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'register()' is missing an @Override annotation. | 3 | 59–77 |
ShortVariable | Avoid variables with short names like rt | 3 | 61 |
ShortVariable | Avoid variables with short names like p | 3 | 66 |
MissingOverride | The method 'getResourceIdList(Locale)' is missing an @Override annotation. | 3 | 86–89 |
MissingOverride | The method 'getTitle(String, Locale)' is missing an @Override annotation. | 3 | 100–103 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_listRegisteredListeners' could be made final; it is only initialized in the declaration or constructor. | 3 | 54 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
FieldNamingConventions | The constant name '_attributeService' doesn't match '[A-Z][A-Z_0-9]*' | 1 | 73 |
CyclomaticComplexity | The method 'checkUserFields(HttpServletRequest, Locale)' has a cyclomatic complexity of 10. | 3 | 91–121 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 174 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 282 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 60–68 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 65–73 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 78–93 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
FieldNamingConventions | The final field name '_service' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 55 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
FieldNamingConventions | The final field name '_itemProviders' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 57 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 73–95 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 78–95 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ShortVariable | Avoid variables with short names like t | 3 | 69 |
ShortVariable | Avoid variables with short names like e | 3 | 83 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 91–94 |
ShortVariable | Avoid variables with short names like t | 3 | 108 |
ShortVariable | Avoid variables with short names like sb | 3 | 123 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 2 | 53 |
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 2 | 54 |
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 2 | 55 |
ShortVariable | Avoid variables with short names like t | 3 | 150 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
GodClass | Possible God Class (WMC=68, ATFD=40, TCC=5.846%) | 3 | 62–640 |
AvoidFileStream | Avoid instantiating FileInputStream, FileOutputStream, FileReader, or FileWriter | 1 | 187 |
PreserveStackTrace | New exception is thrown in catch block, original stack trace may be lost | 3 | 194 |
NPathComplexity | The method 'getBaseUrl(HttpServletRequest)' has an NPath complexity of 240 | 3 | 218–273 |
CyclomaticComplexity | The method 'getBaseUrl(HttpServletRequest)' has a cyclomatic complexity of 12. | 3 | 218–273 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 3 | 239–242 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 3 | 261 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 3 | 264 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 3 | 269 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 3 | 303 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 3 | 328 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 3 | 352 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UnusedImports | Avoid unused imports such as 'java.util.ArrayList' | 4 | 36 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 78 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 223 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 223 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 59 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the PROPERTY_CRYPTO_KEY field if you want a default access modifier | 3 | 59 |
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 60 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the DSKEY_CRYPTO_KEY field if you want a default access modifier | 3 | 60 |
ShortVariable | Avoid variables with short names like md | 3 | 81 |
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 3 | 224–234 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 3 | 226 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 229 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UnusedImports | Avoid unused imports such as 'org.apache.logging.log4j.Level' | 4 | 36 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingSerialVersionUID | Classes implementing Serializable should set a serialVersionUID | 3 | 41–53 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ShortVariable | Avoid variables with short names like id | 3 | 50 |
ShortVariable | Avoid variables with short names like id | 3 | 61 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_listRegisteredListeners' could be made final; it is only initialized in the declaration or constructor. | 3 | 45 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveClassLength | Avoid really long classes. | 3 | 67–1069 |
GodClass | Possible God Class (WMC=68, ATFD=37, TCC=24.878%) | 3 | 67–1069 |
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 68–1069 |
ImmutableField | Private field '_bServiceAvailable' could be made final; it is only initialized in the declaration or constructor. | 3 | 72 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 98–105 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 294 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 535 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 564 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 836 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 894 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 1047 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'register()' is missing an @Override annotation. | 3 | 62–85 |
ShortVariable | Avoid variables with short names like rt | 3 | 64 |
ShortVariable | Avoid variables with short names like p | 3 | 69 |
MissingOverride | The method 'getResourceIdList(Locale)' is missing an @Override annotation. | 3 | 94–97 |
MissingOverride | The method 'getTitle(String, Locale)' is missing an @Override annotation. | 3 | 108–124 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 116 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 123 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–583 |
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 76–583 |
UnusedPrivateField | Avoid unused private fields such as 'PROPERTY_SITE_CODE'. | 3 | 85 |
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 2 | 88 |
ImmutableField | Private field '_listErrors' could be made final; it is only initialized in the declaration or constructor. | 3 | 89 |
ImmutableField | Private field '_listInfos' could be made final; it is only initialized in the declaration or constructor. | 3 | 90 |
ImmutableField | Private field '_listWarnings' could be made final; it is only initialized in the declaration or constructor. | 3 | 91 |
ImmutableField | Private field '_controller' could be made final; it is only initialized in the declaration or constructor. | 3 | 92 |
ShortVariable | Avoid variables with short names like m | 3 | 116 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 260 |
ShortVariable | Avoid variables with short names like os | 3 | 569 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UncommentedEmptyConstructor | Document empty constructor | 3 | 52–54 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 274 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 275 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 276 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 277 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 2 | 59 |
UseVarargs | Consider using varargs for methods or constructors which take an array the last parameter. | 4 | 143 |
UseVarargs | Consider using varargs for methods or constructors which take an array the last parameter. | 4 | 174 |
UseVarargs | Consider using varargs for methods or constructors which take an array the last parameter. | 4 | 203 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–953 |
GodClass | Possible God Class (WMC=72, ATFD=72, TCC=3.949%) | 3 | 85–953 |
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 86–953 |
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 2 | 103 |
ImmutableField | Private field '_listErrors' could be made final; it is only initialized in the declaration or constructor. | 3 | 104 |
ImmutableField | Private field '_listInfos' could be made final; it is only initialized in the declaration or constructor. | 3 | 105 |
ImmutableField | Private field '_listWarnings' could be made final; it is only initialized in the declaration or constructor. | 3 | 106 |
ImmutableField | Private field '_controller' could be made final; it is only initialized in the declaration or constructor. | 3 | 108 |
CyclomaticComplexity | The method 'processController(HttpServletRequest)' has a cyclomatic complexity of 14. | 3 | 145–208 |
ShortVariable | Avoid variables with short names like m | 3 | 159 |
PreserveStackTrace | New exception is thrown in catch block, original stack trace may be lost | 3 | 199 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 229–237 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 251–259 |
ShortVariable | Avoid variables with short names like t | 3 | 293 |
ShortVariable | Avoid variables with short names like t | 3 | 329 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 344 |
ShortVariable | Avoid variables with short names like os | 3 | 800 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassNamingConventions | The utility class name 'LocalVariables' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 1 | 43–102 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–612 |
GodClass | Possible God Class (WMC=47, ATFD=95, TCC=3.922%) | 3 | 86–612 |
CyclomaticComplexity | The method 'getContent(HttpServletRequest, int)' has a cyclomatic complexity of 10. | 3 | 162–213 |
EmptyCatchBlock | Avoid empty catch blocks | 3 | 195–199 |
ShortVariable | Avoid variables with short names like cs | 3 | 203 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 205 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 240 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 3 | 367 |
LooseCoupling | Avoid using implementation types like 'HashMap'; use the interface instead | 3 | 403 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 528 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 550 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 557 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 588–589 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 85 |
ShortVariable | Avoid variables with short names like t | 3 | 100 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 164 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 240 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 245 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 110 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 115 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 120 |
ShortVariable | Avoid variables with short names like t | 3 | 126 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 3 | 204 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–632 |
GodClass | Possible God Class (WMC=57, ATFD=117, TCC=7.500%) | 3 | 88–632 |
ImmutableField | Private field '_bAdminAvatar' could be made final; it is only initialized in the declaration or constructor. | 3 | 144 |
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 2 | 145 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 156 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 197 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 201 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 224 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 401–414 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 430 |
CyclomaticComplexity | The method 'doModifyDefaultAdminUserPassword(HttpServletRequest)' has a cyclomatic complexity of 10. | 3 | 447–504 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 457 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 552–566 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 560 |
CommentRequired | Public method and constructor comments are required | 3 | 568–571 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 579–606 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 594 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 620 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 626 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 77 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–907 |
GodClass | Possible God Class (WMC=79, ATFD=183, TCC=9.357%) | 3 | 90–907 |
ShortVariable | Avoid variables with short names like cs | 3 | 198 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 203–210 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 291 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 312–320 |
LinguisticNaming | Linguistics Antipattern - The setter 'setParentPageId' should not return any type except void linguistically | 3 | 336–350 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 372 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 459–467 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 518 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 529 |
CyclomaticComplexity | The method 'getPageData(HttpServletRequest, Page)' has a cyclomatic complexity of 12. | 3 | 666–769 |
ExcessiveMethodLength | Avoid really long methods. | 3 | 666–769 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 668 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 671 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 672 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 673 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 675 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 676 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 677 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 678 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 679 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 680 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 684 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 3 | 708 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 755 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 816 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 857 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 879–888 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 891–899 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UnusedPrivateField | Avoid unused private fields such as 'JSP_DO_MODIFY_POSITION'. | 3 | 79 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 160 |
AvoidCatchingNPE | Avoid catching NullPointerException; consider removing the cause of the NPE. | 3 | 160 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 177 |
CyclomaticComplexity | The method 'doRemovePortlet(HttpServletRequest)' has a cyclomatic complexity of 10. | 3 | 215–256 |
AvoidCatchingNPE | Avoid catching NullPointerException; consider removing the cause of the NPE. | 3 | 228 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 228 |
CyclomaticComplexity | The method 'getModifyPortletStatus(HttpServletRequest)' has a cyclomatic complexity of 10. | 3 | 267–312 |
AvoidCatchingNPE | Avoid catching NullPointerException; consider removing the cause of the NPE. | 3 | 281 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 281 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 306 |
NPathComplexity | The method 'doModifyPortletStatus(HttpServletRequest)' has an NPath complexity of 216 | 3 | 323–367 |
CyclomaticComplexity | The method 'doModifyPortletStatus(HttpServletRequest)' has a cyclomatic complexity of 12. | 3 | 323–367 |
AvoidCatchingNPE | Avoid catching NullPointerException; consider removing the cause of the NPE. | 3 | 341 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 341 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 389 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 390 |
AvoidCatchingNPE | Avoid catching NullPointerException; consider removing the cause of the NPE. | 3 | 396 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 396 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassNamingConventions | The utility class name 'Markers' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 1 | 39–66 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassNamingConventions | The utility class name 'Messages' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 1 | 39–64 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassNamingConventions | The utility class name 'Parameters' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 1 | 39–139 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 111 |
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 | 287 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_service' could be made final; it is only initialized in the declaration or constructor. | 3 | 67 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 75 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingSerialVersionUID | Classes implementing Serializable should set a serialVersionUID | 3 | 57–190 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 156 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 167 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 201 |
CyclomaticComplexity | The method 'getFeatureGroupsList(AdminUser)' has a cyclomatic complexity of 16. | 3 | 218–307 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 261–304 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 56–128 |
CyclomaticComplexity | The method 'doGet(HttpServletRequest, HttpServletResponse)' has a cyclomatic complexity of 11. | 3 | 63–125 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 99 |
CommentRequired | Protected method constructor comments are required | 3 | 127 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 36–47 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 36–47 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 64 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'init(FilterConfig)' is missing an @Override annotation. | 3 | 60–65 |
MissingOverride | The method 'doFilter(ServletRequest, ServletResponse, FilterChain)' is missing an @Override annotation. | 3 | 81–94 |
AvoidReassigningParameters | Avoid reassigning parameters such as 'response' | 2 | 81 |
MissingOverride | The method 'destroy()' is missing an @Override annotation. | 3 | 99–102 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 78–94 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Public method and constructor comments are required | 3 | 97–124 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 101 |
CommentRequired | Public method and constructor comments are required | 3 | 126–140 |
CommentRequired | Public method and constructor comments are required | 3 | 142–160 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 154 |
CommentRequired | Public method and constructor comments are required | 3 | 162–171 |
CommentRequired | Public method and constructor comments are required | 3 | 173–204 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 177 |
CommentRequired | Public method and constructor comments are required | 3 | 206–234 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 82 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 130 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 111 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 111 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 193 |
ShortVariable | Avoid variables with short names like t | 3 | 198 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 221 |
ShortVariable | Avoid variables with short names like t | 3 | 226 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 245 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 246 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 249 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 249 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 249 |
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 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 289 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 289 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 289 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 340 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UnusedImports | Avoid unused imports such as 'fr.paris.lutece.portal.web.dashboard.AdminDashboardJspBean' | 4 | 51 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 88 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 109 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 165 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 169 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–357 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 129 |
ExcessiveMethodLength | Avoid really long methods. | 3 | 144–244 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 146 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 146 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 150 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 355 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'fillTemplate(Map, PageData, int, HttpServletRequest)' is missing an @Override annotation. | 3 | 101–139 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 108 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 207 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 235 |
AvoidReassigningParameters | Avoid reassigning parameters such as 'resourceURI' | 2 | 276 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 3 | 286–289 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Public method and constructor comments are required | 3 | 50–54 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 50–54 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'fillTemplate(Map, PageData, int, HttpServletRequest)' is missing an @Override annotation. | 3 | 64–83 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 75 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 76–77 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'fillTemplate(Map, PageData, int, HttpServletRequest)' is missing an @Override annotation. | 3 | 74–116 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 79–112 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 89 |
ShortVariable | Avoid variables with short names like t | 3 | 97 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'fillTemplate(Map, PageData, int, HttpServletRequest)' is missing an @Override annotation. | 3 | 64–71 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingOverride | The method 'fillTemplate(Map, PageData, int, HttpServletRequest)' is missing an @Override annotation. | 3 | 84–104 |
CyclomaticComplexity | The method 'buildTreeMenuContent(int, int, HttpServletRequest)' has a cyclomatic complexity of 10. | 3 | 117–208 |
PositionLiteralsFirstInCaseInsensitiveComparisons | Position literals first in String comparisons for EqualsIgnoreCase | 3 | 127 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 202 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 131 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 106 |
ShortVariable | Avoid variables with short names like t | 3 | 111 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 135–144 |
ShortVariable | Avoid variables with short names like is | 3 | 137 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 167 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 110–140 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 112–139 |
CollapsibleIfStatements | These nested if statements could be combined | 3 | 161–164 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 3 | 161–164 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 210–223 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–541 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 138 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 260 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 281 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 344 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 389–399 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 432 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 525 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 528 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AbstractClassWithoutAnyMethod | No abstract method which means that the keyword is most likely used to prevent instantiation. Use a private or protected constructor instead. | 1 | 42–45 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassNamingConventions | The utility class name 'PluginActionManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 1 | 57–133 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 82 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 141 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 146 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 148 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 186 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 208 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CyclomaticComplexity | The method 'setPortletCommonData(HttpServletRequest, Portlet)' has a cyclomatic complexity of 12. | 3 | 190–283 |
NPathComplexity | The method 'setPortletCommonData(HttpServletRequest, Portlet)' has an NPath complexity of 768 | 3 | 190–283 |
LinguisticNaming | Linguistics Antipattern - The setter 'setPortletCommonData' should not return any type except void linguistically | 3 | 190–283 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 192 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 196 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 201 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 202 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 203 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 204 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 205 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 206 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UselessOverridingMethod | Overriding method merely calls super | 3 | 81–84 |
MissingOverride | The method 'init(ServletConfig)' is missing an @Override annotation. | 3 | 81–84 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 125–157 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 133–157 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 145 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–1105 |
ExcessiveClassLength | Avoid really long classes. | 3 | 89–1105 |
CyclomaticComplexity | The class 'RoleManagementJspBean' has a total cyclomatic complexity of 98 (highest 16). | 3 | 89–1105 |
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 90–1105 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 240 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 261 |
CyclomaticComplexity | The method 'doCreateRole(HttpServletRequest)' has a cyclomatic complexity of 11. | 3 | 279–319 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 283 |
CyclomaticComplexity | The method 'doModifyRole(HttpServletRequest)' has a cyclomatic complexity of 16. | 3 | 331–401 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 333 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 336 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 415 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 433 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 440–462 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 491 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 519 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 569 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 652 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 707 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 707 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 708 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 709 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 709 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 710 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 711 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 711 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 712 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 713 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 713 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 714 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 715 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 715 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 716 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 717 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 717 |
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 3 | 720–726 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 722 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 724 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 735 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 735 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 736 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 737 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 737 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 738 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 739 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 739 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 740 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 741 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 741 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 742 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 743 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 743 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 744 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 745 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 745 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 781 |
CyclomaticComplexity | The method 'doSelectPermissions(HttpServletRequest)' has a cyclomatic complexity of 12. | 3 | 821–889 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 823 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 824 |
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 3 | 875–886 |
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 3 | 877–885 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 900 |
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 3 | 1015–1024 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 1103 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassNamingConventions | The utility class name 'ExtendableResourcePluginActionManager' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 1 | 52–96 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 87 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UnusedImports | Avoid unused imports such as 'fr.paris.lutece.portal.business.rbac.RBACRole' | 4 | 36 |
UnusedImports | Avoid unused imports such as 'org.apache.james.mime4j.io.LineReaderInputStreamAdaptor' | 4 | 61 |
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 117–120 |
UnnecessaryConstructor | Avoid unnecessary constructors - the compiler will generate these for you | 3 | 117–120 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 133 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 157 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 225 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 225 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 256 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 304 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–287 |
NPathComplexity | The method 'getPage(HttpServletRequest, int, Plugin)' has an NPath complexity of 672 | 3 | 131–242 |
CyclomaticComplexity | The method 'getPage(HttpServletRequest, int, Plugin)' has a cyclomatic complexity of 13. | 3 | 131–242 |
ExcessiveMethodLength | Avoid really long methods. | 3 | 131–242 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 210 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 257 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UnusedImports | Avoid unused imports such as 'fr.paris.lutece.portal.web.dashboard.AdminDashboardJspBean' | 4 | 42 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 104–111 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CyclomaticComplexity | The method 'doModifyAdvancedParameters(HttpServletRequest)' has a cyclomatic complexity of 11. | 3 | 91–146 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 108 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 167 |
CyclomaticComplexity | The method 'doModifyPageTemplate(HttpServletRequest)' has a cyclomatic complexity of 14. | 3 | 250–332 |
NPathComplexity | The method 'doModifyPageTemplate(HttpServletRequest)' has an NPath complexity of 480 | 3 | 250–332 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 255 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 256 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 259 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 262 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 266 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 360 |
AvoidFileStream | Avoid instantiating FileInputStream, FileOutputStream, FileReader, or FileWriter | 1 | 418 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 3 | 150 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 3 | 155 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 161 |
AddEmptyString | Do not add empty strings | 3 | 162 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 180 |
CyclomaticComplexity | The method 'doCreateStyle(HttpServletRequest)' has a cyclomatic complexity of 10. | 3 | 199–251 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 201 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 246 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 265 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 287 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 291 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 293 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 334 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 349 |
AvoidBranchingStatementAsLastInLoop | Avoid using a branching statement as the last in a loop. | 2 | 353–354 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 358 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 86 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–527 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 143 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 3 | 173 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 3 | 178 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 184 |
AddEmptyString | Do not add empty strings | 3 | 186 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 207 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 263 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 265 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 266 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 269 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 320 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 349 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 413 |
LinguisticNaming | Linguistics Antipattern - The method 'isValid' indicates linguistically it returns a boolean, but it returns 'String' | 3 | 462–481 |
ShortVariable | Avoid variables with short names like is | 3 | 472 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 475 |
AvoidFileStream | Avoid instantiating FileInputStream, FileOutputStream, FileReader, or FileWriter | 1 | 499 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 117–128 |
ShortVariable | Avoid variables with short names like cs | 3 | 120 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 164–174 |
ShortVariable | Avoid variables with short names like cs | 3 | 167 |
ShortVariable | Avoid variables with short names like cs | 3 | 197 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 204 |
ShortVariable | Avoid variables with short names like cs | 3 | 234 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseUnderscoresInNumericLiterals | Number 30000 should separate every third digit with an underscore | 3 | 87 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
GodClass | Possible God Class (WMC=51, ATFD=81, TCC=16.667%) | 3 | 66–512 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 117 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 158 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 191 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 212 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 255 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 309 |
CyclomaticComplexity | The method 'verifyCoreCompatibility(Plugin)' has a cyclomatic complexity of 10. | 3 | 411–457 |
UseVarargs | Consider using varargs for methods or constructors which take an array the last parameter. | 4 | 468 |
UseVarargs | Consider using varargs for methods or constructors which take an array the last parameter. | 4 | 495 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
GodClass | Possible God Class (WMC=57, ATFD=57, TCC=9.091%) | 3 | 66–627 |
LooseCoupling | Avoid using implementation types like 'HashMap'; use the interface instead | 3 | 142 |
LooseCoupling | Avoid using implementation types like 'HashMap'; use the interface instead | 3 | 175 |
LooseCoupling | Avoid using implementation types like 'HashMap'; use the interface instead | 3 | 418 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 557 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 596 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 597 |
MissingBreakInSwitch | A switch statement does not contain a break | 3 | 603–613 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ShortVariable | Avoid variables with short names like t | 3 | 69 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 132 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 171 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 191 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 203–219 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 211–218 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 239 |
AvoidFileStream | Avoid instantiating FileInputStream, FileOutputStream, FileReader, or FileWriter | 1 | 301 |
InsufficientStringBufferDeclaration | StringBuffer constructor is initialized with size 16, but has at least 55 characters appended. | 3 | 312 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 66 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
FieldNamingConventions | The static field name 'PROPERTY_DOSGUARDFILTER_MINCONTENTLENGTH' doesn't match '_[a-z][a-zA-Z0-9]*' | 1 | 61 |
FieldNamingConventions | The static field name 'PROPERTY_DOSGUARDFILTER_MININTERVAL' doesn't match '_[a-z][a-zA-Z0-9]*' | 1 | 62 |
UseUnderscoresInNumericLiterals | Number 10240 should separate every third digit with an underscore | 3 | 65 |
FieldNamingConventions | The static field name 'CONSTANT_DEFAULT_DOSGUARDFILTER_MINCONTENTLENGTH' doesn't match '_[a-z][a-zA-Z0-9]*' | 1 | 65 |
FieldNamingConventions | The static field name 'CONSTANT_DEFAULT_DOSGUARDFILTER_MININTERVAL' doesn't match '_[a-z][a-zA-Z0-9]*' | 1 | 66 |
SingularField | Perhaps '_filterConfig' could be replaced by a local variable. | 3 | 70 |
UnusedPrivateField | Avoid unused private fields such as '_filterConfig'. | 3 | 70 |
LooseCoupling | Avoid using implementation types like 'LinkedList'; use the interface instead | 3 | 83 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 92 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 93 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 135–201 |
ImmutableField | Private field '_strRemoteAddr' could be made final; it is only initialized in the declaration or constructor. | 3 | 247 |
ImmutableField | Private field '_lRequestTime' could be made final; it is only initialized in the declaration or constructor. | 3 | 248 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
FieldNamingConventions | The final field name '_multipartFiles' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 52 |
FieldNamingConventions | The final field name '_stringParameters' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 53 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 95 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_item' could be made final; it is only initialized in the declaration or constructor. | 3 | 54 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 143–170 |
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 1 | 187–190 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
FieldNamingConventions | The constant name 'objectMapper' doesn't match '[A-Z][A-Z_0-9]*' | 1 | 64 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 77 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 85 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 97–109 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–745 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 180 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 3 | 195–198 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 246 |
CommentRequired | Public method and constructor comments are required | 3 | 279–312 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 289 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 323 |
CyclomaticComplexity | The method 'doLogin(HttpServletRequest)' has a cyclomatic complexity of 11. | 3 | 392–465 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'java.util.Date' due to existing import 'java.util.Date' | 4 | 427 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 480 |
CommentRequired | Public method and constructor comments are required | 3 | 526–606 |
NPathComplexity | The method 'doResetPassword(HttpServletRequest)' has an NPath complexity of 3456 | 3 | 526–606 |
CyclomaticComplexity | The method 'doResetPassword(HttpServletRequest)' has a cyclomatic complexity of 15. | 3 | 526–606 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 3 | 528 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 620 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–2772 |
CyclomaticComplexity | The class 'AdminUserJspBean' has a total cyclomatic complexity of 282 (highest 14). | 3 | 121–2772 |
ExcessiveClassLength | Avoid really long classes. | 3 | 121–2772 |
GodClass | Possible God Class (WMC=282, ATFD=577, TCC=28.677%) | 3 | 121–2772 |
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 122–2772 |
ImmutableField | Private field '_bAdminAvatar' could be made final; it is only initialized in the declaration or constructor. | 3 | 380 |
CyclomaticComplexity | The method 'getManageAdminUsers(HttpServletRequest)' has a cyclomatic complexity of 10. | 3 | 393–492 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 403 |
AddEmptyString | Do not add empty strings | 3 | 479 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 511 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 591 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 625 |
NPathComplexity | The method 'doCreateAdminUser(HttpServletRequest)' has an NPath complexity of 408 | 3 | 659–775 |
CyclomaticComplexity | The method 'doCreateAdminUser(HttpServletRequest)' has a cyclomatic complexity of 11. | 3 | 659–775 |
NcssCount | The method 'doCreateAdminUser(HttpServletRequest)' has a NCSS line count of 64. | 3 | 659–775 |
ExcessiveMethodLength | Avoid really long methods. | 3 | 659–775 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 661 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 662 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 663 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 664 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 665 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 666 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 667 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 668 |
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 | 702 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 704 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 780 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 781 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 782 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 841 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 841 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 842 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'fr.paris.lutece.portal.service.admin.AccessDeniedException' due to existing import 'fr.paris.lutece.portal.service.admin.AccessDeniedException' | 4 | 869 |
EmptyStatementNotInLoop | An empty statement (semicolon) not part of a loop | 3 | 879 |
NcssCount | The method 'doModifyAdminUser(HttpServletRequest)' has a NCSS line count of 63. | 3 | 915–1028 |
CyclomaticComplexity | The method 'doModifyAdminUser(HttpServletRequest)' has a cyclomatic complexity of 14. | 3 | 915–1028 |
ExcessiveMethodLength | Avoid really long methods. | 3 | 915–1028 |
NPathComplexity | The method 'doModifyAdminUser(HttpServletRequest)' has an NPath complexity of 432 | 3 | 915–1028 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 918 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 919 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 920 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 921 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 922 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 923 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 924 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 925 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 1047 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 1047 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 1048 |
CyclomaticComplexity | The method 'doModifyAdminUserPassword(HttpServletRequest)' has a cyclomatic complexity of 11. | 3 | 1099–1162 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 1126 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 1129 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 1182 |
CyclomaticComplexity | The method 'doImportUsersFromFile(HttpServletRequest)' has a cyclomatic complexity of 11. | 3 | 1209–1277 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 1225 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 1296 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 1335 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 1336 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 1337 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 1338 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'fr.paris.lutece.portal.service.admin.AccessDeniedException' due to existing import 'fr.paris.lutece.portal.service.admin.AccessDeniedException' | 4 | 1433 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 1437 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'fr.paris.lutece.portal.service.admin.AccessDeniedException' due to existing import 'fr.paris.lutece.portal.service.admin.AccessDeniedException' | 4 | 1474 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'fr.paris.lutece.portal.service.admin.AccessDeniedException' due to existing import 'fr.paris.lutece.portal.service.admin.AccessDeniedException' | 4 | 1513 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'fr.paris.lutece.portal.service.admin.AccessDeniedException' due to existing import 'fr.paris.lutece.portal.service.admin.AccessDeniedException' | 4 | 1554 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 1562 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 1593 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'fr.paris.lutece.portal.service.admin.AccessDeniedException' due to existing import 'fr.paris.lutece.portal.service.admin.AccessDeniedException' | 4 | 1602 |
OptimizableToArrayCall | This call to Collection.toArray() may be optimizable | 3 | 1615 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 1620 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 1647 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 1655 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'fr.paris.lutece.portal.service.admin.AccessDeniedException' due to existing import 'fr.paris.lutece.portal.service.admin.AccessDeniedException' | 4 | 1664 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 1693 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 1726 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'fr.paris.lutece.portal.service.admin.AccessDeniedException' due to existing import 'fr.paris.lutece.portal.service.admin.AccessDeniedException' | 4 | 1785 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 1793 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 1816 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 1823 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'fr.paris.lutece.portal.service.admin.AccessDeniedException' due to existing import 'fr.paris.lutece.portal.service.admin.AccessDeniedException' | 4 | 1832 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 1862 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'fr.paris.lutece.portal.service.admin.AccessDeniedException' due to existing import 'fr.paris.lutece.portal.service.admin.AccessDeniedException' | 4 | 1897 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'fr.paris.lutece.portal.service.admin.AccessDeniedException' due to existing import 'fr.paris.lutece.portal.service.admin.AccessDeniedException' | 4 | 1941 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 2023 |
ExcessiveMethodLength | Avoid really long methods. | 3 | 2043–2147 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 2056 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 2276 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 2344 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 2441 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 2502–2517 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 2533 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 2714 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–446 |
UnusedImports | Avoid unused imports such as 'java.util.Enumeration' | 4 | 38 |
UnusedImports | Avoid unused imports such as 'fr.paris.lutece.portal.service.security.SecurityTokenService' | 4 | 63 |
UnusedImports | Avoid unused imports such as 'fr.paris.lutece.portal.web.constants.Parameters' | 4 | 71 |
ImmutableField | Private field '_logger' could be made final; it is only initialized in the declaration or constructor. | 3 | 90 |
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 2 | 90 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ShortVariable | Avoid variables with short names like t | 3 | 72 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
FieldNamingConventions | The constant name '_attributeService' doesn't match '[A-Z][A-Z_0-9]*' | 1 | 72 |
FieldNamingConventions | The constant name '_attributeTypeService' doesn't match '[A-Z][A-Z_0-9]*' | 1 | 73 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ShortVariable | Avoid variables with short names like t | 3 | 76 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
FieldNamingConventions | The constant name '_attributeService' doesn't match '[A-Z][A-Z_0-9]*' | 1 | 98 |
FieldNamingConventions | The constant name '_attributeFieldService' doesn't match '[A-Z][A-Z_0-9]*' | 1 | 99 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 118 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 194 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 220 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 266 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 286 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 287 |
CyclomaticComplexity | The method 'doMoveUpAttributeField(HttpServletRequest)' has a cyclomatic complexity of 10. | 3 | 313–356 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 322 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 325 |
ShortVariable | Avoid variables with short names like it | 3 | 336 |
CyclomaticComplexity | The method 'doMoveDownAttributeField(HttpServletRequest)' has a cyclomatic complexity of 10. | 3 | 367–410 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 376 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 379 |
ShortVariable | Avoid variables with short names like it | 3 | 389 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
FieldNamingConventions | The constant name '_attributeService' doesn't match '[A-Z][A-Z_0-9]*' | 1 | 91 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 125 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 211 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 281 |
ShortVariable | Avoid variables with short names like it | 3 | 340 |
ShortVariable | Avoid variables with short names like it | 3 | 387 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_locale' could be made final; it is only initialized in the declaration or constructor. | 3 | 58 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–637 |
AddEmptyString | Do not add empty strings | 3 | 219 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 242 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 262 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 310 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 329 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 394 |
CyclomaticComplexity | The method 'getAssignUsers(HttpServletRequest)' has a cyclomatic complexity of 10. | 3 | 421–523 |
ExcessiveMethodLength | Avoid really long methods. | 3 | 421–523 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 423 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 423 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 427 |
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 3 | 547–556 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 635 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UnnecessaryConstructor | Avoid unnecessary constructors - the compiler will generate these for you | 3 | 87–90 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 222 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 224–232 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 3 | 276 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 52–56 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_listRoles' could be made final; it is only initialized in the declaration or constructor. | 3 | 52 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–575 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 195 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 309–326 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 351 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 413 |
CyclomaticComplexity | The method 'getXslExportData(HttpServletRequest, XslExport)' has a cyclomatic complexity of 12. | 3 | 434–504 |
LinguisticNaming | Linguistics Antipattern - The method 'isValid' indicates linguistically it returns a boolean, but it returns 'String' | 3 | 513–532 |
ShortVariable | Avoid variables with short names like is | 3 | 523 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 526 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 1 | 81–84 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 139 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 6–31 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_strRootPath' could be made final; it is only initialized in the declaration or constructor. | 3 | 56 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 58 |
ImmutableField | Private field '_mapPropertiesFiles' could be made final; it is only initialized in the declaration or constructor. | 3 | 58 |
FieldNamingConventions | The final field name 'RSA_KEY_PREFIX' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 60 |
FinalFieldCouldBeStatic | This final field could be made static | 3 | 60 |
FinalFieldCouldBeStatic | This final field could be made static | 3 | 61 |
FieldNamingConventions | The final field name 'MESSAGE_CIPHERED_PROPERTY_SECURITY_EXCEPTION' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 61 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 3 | 107–112 |
AvoidFileStream | Avoid instantiating FileInputStream, FileOutputStream, FileReader, or FileWriter | 1 | 141 |
PositionLiteralsFirstInCaseInsensitiveComparisons | Position literals first in String comparisons for EqualsIgnoreCase | 3 | 293 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 145 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 184 |
UseVarargs | Consider using varargs for methods or constructors which take an array the last parameter. | 4 | 203 |
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 3 | 205–214 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassNamingConventions | The utility class name 'UniqueIDGenerator' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 1 | 40–68 |
UselessStringValueOf | No need to call String.valueOf to append to a string. | 3 | 66 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
FieldNamingConventions | The final field name '_db' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 64 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 134 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 145–152 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 171 |
ShortVariable | Avoid variables with short names like sb | 3 | 190 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MethodReturnsInternalArray | Returning 'VARIABLES_PREFIX' may expose an internal array. | 3 | 74 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AssignmentToNonFinalStatic | Possible unsafe assignment to a non-final static field in a constructor. | 3 | 52 |
ImmutableField | Private field '_interpolator' could be made final; it is only initialized in the declaration or constructor. | 3 | 53 |
ShortVariable | Avoid variables with short names like sb | 3 | 111 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_locale' could be made final; it is only initialized in the declaration or constructor. | 3 | 49 |
ImmutableField | Private field '_constraintViolation' could be made final; it is only initialized in the declaration or constructor. | 3 | 50 |
ImmutableField | Private field '_config' could be made final; it is only initialized in the declaration or constructor. | 3 | 51 |
ShortVariable | Avoid variables with short names like cv | 3 | 63 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 3 | 103–106 |
UseLocaleWithCaseConversions | When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 3 | 109 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 116 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 3 | 122 |
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 3 | 214–217 |
UseLocaleWithCaseConversions | When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 3 | 220 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 4 | 145–148 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
GodClass | Possible God Class (WMC=71, ATFD=71, TCC=15.402%) | 3 | 70–738 |
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 71–738 |
ConstructorCallsOverridableMethod | Overridable method 'setSortUrl' called during object construction | 1 | 120 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 181 |
NPathComplexity | The method 'filterSortAndPaginate(HttpServletRequest, List)' has an NPath complexity of 14832 | 3 | 259–393 |
ExcessiveMethodLength | Avoid really long methods. | 3 | 259–393 |
CyclomaticComplexity | The method 'filterSortAndPaginate(HttpServletRequest, List)' has a cyclomatic complexity of 24. | 3 | 259–393 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 329 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 371–378 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 498 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 499 |
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 4 | 519–522 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 589 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 637 |
UseLocaleWithCaseConversions | When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 3 | 703 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 711 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UncommentedEmptyConstructor | Document empty constructor | 3 | 47–49 |
BooleanGetMethodName | A getX() method which returns a boolean should be named isX() | 4 | 91–94 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
LooseCoupling | Avoid using implementation types like 'ArrayList'; use the interface instead | 3 | 53 |
ImmutableField | Private field '_listFilter' could be made final; it is only initialized in the declaration or constructor. | 3 | 53 |
UncommentedEmptyConstructor | Document empty constructor | 3 | 58–60 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseUnderscoresInNumericLiterals | Number 86400000 should separate every third digit with an underscore | 3 | 55 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 169–185 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 173–180 |
SimpleDateFormatNeedsLocale | When instantiating a SimpleDateFormat object, specify a Locale | 3 | 175 |
UnnecessaryFullyQualifiedName | Unnecessary use of fully qualified name 'java.sql.Timestamp' due to existing import 'java.sql.Timestamp' | 4 | 213 |
ShortVariable | Avoid variables with short names like df | 3 | 253 |
ShortVariable | Avoid variables with short names like df | 3 | 263 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 297–313 |
SimpleDateFormatNeedsLocale | When instantiating a SimpleDateFormat object, specify a Locale | 3 | 303 |
SimpleDateFormatNeedsLocale | When instantiating a SimpleDateFormat object, specify a Locale | 3 | 332 |
SimpleDateFormatNeedsLocale | When instantiating a SimpleDateFormat object, specify a Locale | 3 | 357 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 85 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the setMockMapEnv method if you want a default access modifier | 3 | 111–114 |
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 111–114 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 3 | 135–138 |
AssignmentInOperand | Avoid assignments in operands | 3 | 180 |
UnnecessaryModifier | Unnecessary modifier 'final' on method 'normalizeFileName': the method is already in a final class | 3 | 197–200 |
UseLocaleWithCaseConversions | When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 3 | 199 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_strName' could be made final; it is only initialized in the declaration or constructor. | 3 | 44 |
ImmutableField | Private field '_strExtension' could be made final; it is only initialized in the declaration or constructor. | 3 | 45 |
MissingOverride | The method 'accept(File, String)' is missing an @Override annotation. | 3 | 69–84 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 82 |
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 3 | 101–109 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 128 |
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 3 | 147–155 |
UseLocaleWithCaseConversions | When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 3 | 174 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AddEmptyString | Do not add empty strings | 3 | 100 |
AddEmptyString | Do not add empty strings | 3 | 113 |
AddEmptyString | Do not add empty strings | 3 | 125 |
AddEmptyString | Do not add empty strings | 3 | 148 |
AddEmptyString | Do not add empty strings | 3 | 210 |
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 1 | 262–265 |
EmptyMethodInAbstractClassShouldBeAbstract | An empty method in an abstract class should be abstract instead | 1 | 271–274 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 309 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 348–362 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 354–361 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 381 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 64–87 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_listItems' could be made final; it is only initialized in the declaration or constructor. | 3 | 52 |
ImmutableField | Private field '_strParameterName' could be made final; it is only initialized in the declaration or constructor. | 3 | 55 |
CyclomaticComplexity | The method 'setCurrentItemId(String)' has a cyclomatic complexity of 11. | 3 | 83–119 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 63–86 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 123 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 124 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 184–193 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 56–480 |
FieldNamingConventions | The public constant name '_log' doesn't match '[A-Z][A-Z_0-9]*' | 1 | 69 |
ShortVariable | Avoid variables with short names like e | 3 | 103 |
InsufficientStringBufferDeclaration | StringBuffer constructor is initialized with size 40, but has at least 44 characters appended. | 3 | 215 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 216–228 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 244–265 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 377 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 378 |
ShortVariable | Avoid variables with short names like sb | 3 | 390 |
ShortVariable | Avoid variables with short names like sb | 3 | 416 |
ShortVariable | Avoid variables with short names like sb | 3 | 442 |
ShortVariable | Avoid variables with short names like e | 3 | 447 |
ShortVariable | Avoid variables with short names like sb | 3 | 473 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 475 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 476 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 477 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassNamingConventions | The utility class name 'JPAConstants' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 1 | 39–49 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_entityClass' could be made final; it is only initialized in the declaration or constructor. | 3 | 63 |
ShortVariable | Avoid variables with short names like em | 3 | 115 |
ShortVariable | Avoid variables with short names like em | 3 | 151 |
CompareObjectsWithEquals | Use equals() to compare object references. | 3 | 153 |
CompareObjectsWithEquals | Use equals() to compare object references. | 3 | 158 |
ShortVariable | Avoid variables with short names like em | 3 | 172 |
CompareObjectsWithEquals | Use equals() to compare object references. | 3 | 180 |
CompareObjectsWithEquals | Use equals() to compare object references. | 3 | 185 |
ShortVariable | Avoid variables with short names like em | 3 | 200 |
CompareObjectsWithEquals | Use equals() to compare object references. | 3 | 201 |
CompareObjectsWithEquals | Use equals() to compare object references. | 3 | 206 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
FieldNamingConventions | The constant name '_Log' doesn't match '[A-Z][A-Z_0-9]*' | 1 | 62 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 2 | 128 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 2 | 130 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 2 | 131 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 2 | 132 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 2 | 133 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 2 | 134 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 2 | 135 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 2 | 136 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 2 | 137 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 2 | 138 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 2 | 139 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 2 | 140 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
FieldNamingConventions | The constant name '_log' doesn't match '[A-Z][A-Z_0-9]*' | 1 | 57 |
UnnecessaryConstructor | Avoid unnecessary constructors - the compiler will generate these for you | 3 | 63–66 |
MissingOverride | The method 'getTransaction(TransactionDefinition)' is missing an @Override annotation. | 3 | 71–97 |
MissingOverride | The method 'commit(TransactionStatus)' is missing an @Override annotation. | 3 | 103–129 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 114 |
MissingOverride | The method 'rollback(TransactionStatus)' is missing an @Override annotation. | 3 | 135–153 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 143 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_mainPTM' could be made final; it is only initialized in the declaration or constructor. | 3 | 48 |
MissingOverride | The method 'flush()' is missing an @Override annotation. | 3 | 97–103 |
MissingOverride | The method 'hasSavepoint()' is missing an @Override annotation. | 3 | 119–122 |
MissingOverride | The method 'isCompleted()' is missing an @Override annotation. | 3 | 128–131 |
MissingOverride | The method 'isNewTransaction()' is missing an @Override annotation. | 3 | 137–140 |
MissingOverride | The method 'isRollbackOnly()' is missing an @Override annotation. | 3 | 146–149 |
MissingOverride | The method 'setRollbackOnly()' is missing an @Override annotation. | 3 | 155–161 |
MissingOverride | The method 'createSavepoint()' is missing an @Override annotation. | 3 | 167–170 |
MissingOverride | The method 'releaseSavepoint(Object)' is missing an @Override annotation. | 3 | 176–182 |
MissingOverride | The method 'rollbackToSavepoint(Object)' is missing an @Override annotation. | 3 | 188–194 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_strStatus' could be made final; it is only initialized in the declaration or constructor. | 3 | 48 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_strErrorCode' could be made final; it is only initialized in the declaration or constructor. | 3 | 44 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_result' could be made final; it is only initialized in the declaration or constructor. | 3 | 44 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 1 | 46–78 |
FieldNamingConventions | The constant name '_mapper' doesn't match '[A-Z][A-Z_0-9]*' | 1 | 49 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 74 |
ReplaceHashtableWithMap | Consider replacing this Hashtable with the newer java.util.Map | 3 | 76 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 116 |
ReplaceHashtableWithMap | Consider replacing this Hashtable with the newer java.util.Map | 3 | 120 |
ShortVariable | Avoid variables with short names like sc | 3 | 148 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_type' could be made final; it is only initialized in the declaration or constructor. | 3 | 59 |
PreserveStackTrace | New exception is thrown in catch block, original stack trace may be lost | 3 | 80 |
ArrayIsStoredDirectly | The user-supplied array 'data' is stored directly. | 3 | 94 |
MissingOverride | The method 'getInputStream()' is missing an @Override annotation. | 3 | 109–117 |
MissingOverride | The method 'getOutputStream()' is missing an @Override annotation. | 3 | 125–128 |
MissingOverride | The method 'getContentType()' is missing an @Override annotation. | 3 | 134–137 |
MissingOverride | The method 'getName()' is missing an @Override annotation. | 3 | 143–146 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ArrayIsStoredDirectly | The user-supplied array 'data' is stored directly. | 3 | 60 |
MethodReturnsInternalArray | Returning '_data' may expose an internal array. | 3 | 73 |
ArrayIsStoredDirectly | The user-supplied array 'data' is stored directly. | 3 | 82 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_content' could be made final; it is only initialized in the declaration or constructor. | 3 | 99 |
ImmutableField | Private field '_strBaseUrl' could be made final; it is only initialized in the declaration or constructor. | 3 | 100 |
ImmutableField | Private field '_useAbsoluteUrl' could be made final; it is only initialized in the declaration or constructor. | 3 | 101 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 134 |
ImmutableField | Private field '_strTagName' could be made final; it is only initialized in the declaration or constructor. | 3 | 268 |
ImmutableField | Private field '_strAttributeName' could be made final; it is only initialized in the declaration or constructor. | 3 | 269 |
ImmutableField | Private field '_strTestedAttributeName' could be made final; it is only initialized in the declaration or constructor. | 3 | 270 |
ImmutableField | Private field '_strTestedAttributeValue' could be made final; it is only initialized in the declaration or constructor. | 3 | 271 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 94–101 |
UseLocaleWithCaseConversions | When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 3 | 130 |
CyclomaticComplexity | The method 'getPrimitiveMethod(String, A, Class)' has a cyclomatic complexity of 10. | 3 | 161–204 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveParameterList | Avoid long parameter lists. | 3 | 130–132 |
ExcessiveMethodLength | Avoid really long methods. | 3 | 130–274 |
NcssCount | The method 'processNestedTags(StringBuilder, String, String, String, String, String, String, boolean, boolean, boolean)' has a NCSS line count of 73. | 3 | 130–274 |
UseObjectForClearerAPI | Rather than using a lot of String arguments, consider using a container object for those values. | 3 | 130–132 |
NPathComplexity | The method 'processNestedTags(StringBuilder, String, String, String, String, String, String, boolean, boolean, boolean)' has an NPath complexity of 396 | 3 | 130–274 |
CyclomaticComplexity | The method 'processNestedTags(StringBuilder, String, String, String, String, String, String, boolean, boolean, boolean)' has a cyclomatic complexity of 21. | 3 | 130–274 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 3 | 149 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 181–211 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 193–211 |
ShortVariable | Avoid variables with short names like s1 | 3 | 220 |
ShortVariable | Avoid variables with short names like s2 | 3 | 221 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 237–244 |
ShortVariable | Avoid variables with short names like m | 3 | 254 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the MutableCharSequence nested class if you want a default access modifier | 3 | 281–384 |
UncommentedEmptyConstructor | Document empty constructor | 3 | 298–300 |
ShortVariable | Avoid variables with short names like sb | 3 | 375 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UnnecessaryModifier | Unnecessary modifiers 'public static final' on field 'BEAN_NAME': the field is declared in an interface type | 3 | 41 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
NPathComplexity | The method 'makePassword(int, boolean, boolean, boolean)' has an NPath complexity of 256 | 3 | 107–163 |
ShortVariable | Avoid variables with short names like r | 3 | 110 |
ShortVariable | Avoid variables with short names like c1 | 3 | 131 |
ShortVariable | Avoid variables with short names like c1 | 3 | 137 |
ShortVariable | Avoid variables with short names like c1 | 3 | 143 |
ShortVariable | Avoid variables with short names like c1 | 3 | 149 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 2 | 65 |
ImmutableField | Private field '_pools' could be made final; it is only initialized in the declaration or constructor. | 3 | 66 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 66 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 91–99 |
ShortVariable | Avoid variables with short names like is | 3 | 109 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 119 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 156 |
ReplaceHashtableWithMap | Consider replacing this Hashtable with the newer java.util.Map | 3 | 167 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 174 |
ReplaceHashtableWithMap | Consider replacing this Hashtable with the newer java.util.Map | 3 | 185 |
ShortVariable | Avoid variables with short names like cs | 3 | 186 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 196 |
ShortVariable | Avoid variables with short names like cs | 3 | 205 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 213 |
AvoidCatchingNPE | Avoid catching NullPointerException; consider removing the cause of the NPE. | 3 | 213 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 217 |
ShortVariable | Avoid variables with short names like cs | 3 | 254 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 265–271 |
AddEmptyString | Do not add empty strings | 3 | 295 |
AddEmptyString | Do not add empty strings | 3 | 296 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 2 | 68 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 104 |
CollapsibleIfStatements | These nested if statements could be combined | 3 | 129–133 |
AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 3 | 129–133 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 137 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 166 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_strUrl' could be made final; it is only initialized in the declaration or constructor. | 3 | 63 |
ImmutableField | Private field '_strUser' could be made final; it is only initialized in the declaration or constructor. | 3 | 64 |
ImmutableField | Private field '_strPassword' could be made final; it is only initialized in the declaration or constructor. | 3 | 65 |
ImmutableField | Private field '_nMaxConns' could be made final; it is only initialized in the declaration or constructor. | 3 | 66 |
ImmutableField | Private field '_nTimeOut' could be made final; it is only initialized in the declaration or constructor. | 3 | 67 |
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 2 | 68 |
ImmutableField | Private field '_logger' could be made final; it is only initialized in the declaration or constructor. | 3 | 68 |
ImmutableField | Private field '_freeConnections' could be made final; it is only initialized in the declaration or constructor. | 3 | 70 |
ImmutableField | Private field '_strCheckValidConnectionSql' could be made final; it is only initialized in the declaration or constructor. | 3 | 71 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 108–109 |
ShortVariable | Avoid variables with short names like lf | 3 | 111 |
ShortVariable | Avoid variables with short names like pc | 3 | 129 |
CloseResource | Ensure that resources like this Connection object are closed after use | 3 | 129 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 171–217 |
AssignmentInOperand | Avoid assignments in operands | 3 | 180 |
CloseResource | Ensure that resources like this Statement object are closed after use | 3 | 228 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 232–242 |
PreserveStackTrace | New exception is thrown in catch block, original stack trace may be lost | 3 | 254 |
PreserveStackTrace | New exception is thrown in catch block, original stack trace may be lost | 3 | 254 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 326–334 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 339–363 |
CloseResource | Ensure that resources like this Connection object are closed after use | 3 | 341 |
MissingOverride | The method 'getParentLogger()' is missing an @Override annotation. | 3 | 526–529 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassNamingConventions | The utility class name 'LuteceConnectionFactory' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 1 | 44–75 |
UseProperClassLoader | In J2EE, getClassLoader() might not work as expected. Use Thread.currentThread().getContextClassLoader() instead. | 3 | 72 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_pool' could be made final; it is only initialized in the declaration or constructor. | 3 | 58 |
ImmutableField | Private field '_connection' could be made final; it is only initialized in the declaration or constructor. | 3 | 59 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the LuteceConnectionProxy constructor if you want a default access modifier | 3 | 69–73 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 96 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 102 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 2 | 55 |
NPathComplexity | The method 'init(Map)' has an NPath complexity of 384 | 3 | 111–177 |
CyclomaticComplexity | The method 'init(Map)' has a cyclomatic complexity of 10. | 3 | 111–177 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 155 |
AvoidCatchingNPE | Avoid catching NullPointerException; consider removing the cause of the NPE. | 3 | 155 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 159 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 2 | 55 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 74 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 96 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 115 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 40–55 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UnusedImports | Avoid unused imports such as 'java.security.NoSuchAlgorithmException' | 4 | 40 |
CommentRequired | Header comments are required | 3 | 49–106 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UnusedImports | Avoid unused imports such as 'java.security.KeyPair' | 4 | 38 |
UnusedImports | Avoid unused imports such as 'java.security.KeyPairGenerator' | 4 | 39 |
UnusedImports | Avoid unused imports such as 'fr.paris.lutece.portal.service.datastore.DatastoreService' | 4 | 46 |
CommentRequired | Header comments are required | 3 | 48–91 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 58–70 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 76–88 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UnusedImports | Avoid unused imports such as 'java.util.List' | 4 | 39 |
CommentRequired | Header comments are required | 3 | 43–99 |
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 1 | 43–99 |
FieldNamingConventions | The static field name 'RSA_KEY_PROVIDER_BEAN_NAME' doesn't match '_[a-z][a-zA-Z0-9]*' | 1 | 46 |
CommentRequired | Public method and constructor comments are required | 3 | 55–62 |
NonThreadSafeSingleton | Singleton is not thread safe | 3 | 57–60 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_strSortedAttribute' could be made final; it is only initialized in the declaration or constructor. | 3 | 52 |
ImmutableField | Private field '_bIsASC' could be made final; it is only initialized in the declaration or constructor. | 3 | 53 |
ShortVariable | Avoid variables with short names like o2 | 3 | 91 |
ShortVariable | Avoid variables with short names like o1 | 3 | 91 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 93 |
ShortVariable | Avoid variables with short names like o1 | 3 | 120 |
ShortVariable | Avoid variables with short names like o2 | 3 | 120 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 148 |
UseLocaleWithCaseConversions | When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 3 | 178 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 186 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–3355 |
ExcessivePublicCount | This class has a bunch of public methods and attributes | 3 | 34–3355 |
CyclomaticComplexity | The class 'DAOUtil' has a total cyclomatic complexity of 429 (highest 9). | 3 | 82–3355 |
ExcessiveClassLength | Avoid really long classes. | 3 | 82–3355 |
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 83–3355 |
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 2 | 117 |
AvoidStringBufferField | StringBuffers can grow quite a lot, and so may become a source of memory leak (if the owning class has a long life time). | 3 | 118 |
ImmutableField | Private field '_sbLogs' could be made final; it is only initialized in the declaration or constructor. | 3 | 118 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 235–260 |
ShortVariable | Avoid variables with short names like ds | 3 | 247 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 273–299 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 275–282 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 285–299 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 287–294 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 304–313 |
ShortVariable | Avoid variables with short names like e | 3 | 328 |
InsufficientStringBufferDeclaration | StringBuffer constructor is initialized with size 32, but has at least 47 characters appended. | 3 | 330 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 331 |
ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 3 | 332 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 332 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 333 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 444 |
ShortVariable | Avoid variables with short names like ts | 3 | 973 |
ShortVariable | Avoid variables with short names like ts | 3 | 999 |
AvoidDuplicateLiterals | The String literal "null" appears 5 times in this file; the first occurrence is on line 1,046 | 3 | 1046 |
AvoidUsingShortType | Do not use the short type | 1 | 1724 |
UseVarargs | Consider using varargs for methods or constructors which take an array the last parameter. | 4 | 1918 |
ShortVariable | Avoid variables with short names like x | 3 | 1922 |
AvoidUsingShortType | Do not use the short type | 1 | 3029 |
AvoidUsingShortType | Do not use the short type | 1 | 3052 |
AvoidUsingShortType | Do not use the short type | 1 | 3074 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the clearBatch method if you want a default access modifier | 3 | 3274–3286 |
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 3274–3286 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CloseResource | Ensure that resources like this Connection object are closed after use | 3 | 140 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 141–148 |
ShortVariable | Avoid variables with short names like e | 3 | 175 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 53–392 |
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 2 | 87 |
ConstructorCallsOverridableMethod | Overridable method 'beginTransaction' called during object construction | 1 | 108 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 183–190 |
ShortVariable | Avoid variables with short names like e | 3 | 253 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 262–270 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 310–319 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 373 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 3 | 157 |
ShortVariable | Avoid variables with short names like e | 3 | 190 |
ShortVariable | Avoid variables with short names like e | 3 | 222 |
UseCollectionIsEmpty | Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() | 3 | 226 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 246 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 1 | 43–71 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UnusedImports | Avoid unused imports such as 'java.io.BufferedReader' | 4 | 39 |
UnusedImports | Avoid unused imports such as 'java.io.InputStreamReader' | 4 | 43 |
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 54–416 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 137–146 |
UseVarargs | Consider using varargs for methods or constructors which take an array the last parameter. | 4 | 157 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 157–171 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 182–191 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 198–224 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 233–236 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 247–252 |
UseVarargs | Consider using varargs for methods or constructors which take an array the last parameter. | 4 | 247 |
UseVarargs | Consider using varargs for methods or constructors which take an array the last parameter. | 4 | 263 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 263–295 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 310–313 |
MethodReturnsInternalArray | Returning 'CONSTANT_UTF8' may expose an internal array. | 3 | 367 |
ShortVariable | Avoid variables with short names like b | 3 | 407 |
AssignmentInOperand | Avoid assignments in operands | 3 | 409 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_strRoot' could be made final; it is only initialized in the declaration or constructor. | 3 | 52 |
ImmutableField | Private field '_listParameters' could be made final; it is only initialized in the declaration or constructor. | 3 | 55 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_strName' could be made final; it is only initialized in the declaration or constructor. | 3 | 45 |
ImmutableField | Private field '_strValue' could be made final; it is only initialized in the declaration or constructor. | 3 | 48 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
FieldNamingConventions | The constant name 'transformersPoolList' doesn't match '[A-Z][A-Z_0-9]*' | 1 | 68 |
CyclomaticComplexity | The method 'getTemplates(Source, String)' has a cyclomatic complexity of 10. | 3 | 90–132 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 3 | 120 |
PreserveStackTrace | New exception is thrown in catch block, original stack trace may be lost | 3 | 123 |
ShortVariable | Avoid variables with short names like sw | 3 | 238 |
UseStringBufferForStringAppends | Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings | 3 | 251 |
PreserveStackTrace | New exception is thrown in catch block, original stack trace may be lost | 3 | 254 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 90 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 91 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 92 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 92 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 93 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 94 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 95 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 111 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 145 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 157 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 157 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 158 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 159 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 160 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 196 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 197 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 198 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 199 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 200 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 201 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 224 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 236 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 237 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 238 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 239 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 269 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 294 |
ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 295 |