Fork me on GitHub

Résultats PMD

Le document suivant contient les résultats de PMD 6.13.0.

Violations By Priority

Priority 1

fr/paris/lutece/plugins/quicklinks/business/EntryUrlDisplayProperties.java

Rule Violation Ligne
FieldNamingConventions The final field name '_nValue' doesn't match '[a-z][a-zA-Z0-9]*' 47
FieldNamingConventions The final field name '_strI18nKey' doesn't match '[a-z][a-zA-Z0-9]*' 48

fr/paris/lutece/plugins/quicklinks/business/EntryUrlLinkProperties.java

Rule Violation Ligne
FieldNamingConventions The final field name '_nValue' doesn't match '[a-z][a-zA-Z0-9]*' 47
FieldNamingConventions The final field name '_strI18nKey' doesn't match '[a-z][a-zA-Z0-9]*' 48

fr/paris/lutece/plugins/quicklinks/business/QuicklinksHome.java

Rule Violation Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 46161

fr/paris/lutece/plugins/quicklinks/business/QuicklinksType.java

Rule Violation Ligne
FieldNamingConventions The final field name '_nValue' doesn't match '[a-z][a-zA-Z0-9]*' 46
FieldNamingConventions The final field name '_strI18nKey' doesn't match '[a-z][a-zA-Z0-9]*' 47

fr/paris/lutece/plugins/quicklinks/business/insertservice/InternalLinkInsertServiceDAO.java

Rule Violation Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 45107
FieldNamingConventions The constant name '_dao' doesn't match '[A-Z][A-Z_0-9]*' 50

fr/paris/lutece/plugins/quicklinks/business/insertservice/InternalLinkInsertServiceHome.java

Rule Violation Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 4265

Priority 2

fr/paris/lutece/plugins/quicklinks/business/EntryDAO.java

Rule Violation Ligne
GuardLogStatement Logger calls should be surrounded by log level guards. 269
GuardLogStatement Logger calls should be surrounded by log level guards. 277
GuardLogStatement Logger calls should be surrounded by log level guards. 284
GuardLogStatement Logger calls should be surrounded by log level guards. 291
GuardLogStatement Logger calls should be surrounded by log level guards. 298
GuardLogStatement Logger calls should be surrounded by log level guards. 305

fr/paris/lutece/plugins/quicklinks/business/EntryInternalLink.java

Rule Violation Ligne
ProperCloneImplementation Object clone() should be implemented with super.clone() 73

fr/paris/lutece/plugins/quicklinks/business/EntrySelect.java

Rule Violation Ligne
ProperCloneImplementation Object clone() should be implemented with super.clone() 90

fr/paris/lutece/plugins/quicklinks/business/EntrySelectOption.java

Rule Violation Ligne
ProperCloneImplementation Object clone() should be implemented with super.clone() 72

fr/paris/lutece/plugins/quicklinks/business/EntryText.java

Rule Violation Ligne
ProperCloneImplementation Object clone() should be implemented with super.clone() 83

fr/paris/lutece/plugins/quicklinks/business/EntryUrl.java

Rule Violation Ligne
ProperCloneImplementation Object clone() should be implemented with super.clone() 201

fr/paris/lutece/plugins/quicklinks/business/Quicklinks.java

Rule Violation Ligne
ProperCloneImplementation Object clone() should be implemented with super.clone() 294

fr/paris/lutece/plugins/quicklinks/business/QuicklinksDAO.java

Rule Violation Ligne
GuardLogStatement Logger calls should be surrounded by log level guards. 305
GuardLogStatement Logger calls should be surrounded by log level guards. 315
GuardLogStatement Logger calls should be surrounded by log level guards. 323324
GuardLogStatement Logger calls should be surrounded by log level guards. 331
GuardLogStatement Logger calls should be surrounded by log level guards. 338

Priority 3

fr/paris/lutece/plugins/quicklinks/business/Entry.java

Rule Violation Ligne
CommentRequired Header comments are required 46333
MissingOverride The method 'getIdParent()' is missing an @Override annotation. 5861
MissingOverride The method 'setIdParent(int)' is missing an @Override annotation. 6770
CommentRequired Public method and constructor comments are required 7780
MissingOverride The method 'getIdQuicklinks()' is missing an @Override annotation. 7780
MissingOverride The method 'setIdQuicklinks(int)' is missing an @Override annotation. 8790
CommentRequired Public method and constructor comments are required 8790
MissingOverride The method 'getId()' is missing an @Override annotation. 97100
CommentRequired Public method and constructor comments are required 97100
CommentRequired Public method and constructor comments are required 107110
MissingOverride The method 'setId(int)' is missing an @Override annotation. 107110
MissingOverride The method 'getIdOrder()' is missing an @Override annotation. 117120
CommentRequired Public method and constructor comments are required 117120
CommentRequired Public method and constructor comments are required 127130
MissingOverride The method 'setIdOrder(int)' is missing an @Override annotation. 127130
MissingOverride The method 'getEntryType()' is missing an @Override annotation. 137140
MissingOverride The method 'setEntryType(EntryType)' is missing an @Override annotation. 147150
MissingOverride The method 'getTitle()' is missing an @Override annotation. 159162
CommentRequired Public method and constructor comments are required 159162
MissingOverride The method 'setTitle(String)' is missing an @Override annotation. 169171
CommentRequired Public method and constructor comments are required 169171
UncommentedEmptyMethodBody Document empty method body 170171
MissingOverride The method 'clone()' is missing an @Override annotation. 176179
CloneMethodReturnTypeMustMatchClassName The return type of the clone() method must be the class name when implements Cloneable 176179
MissingOverride The method 'copy(int, Plugin)' is missing an @Override annotation. 190193
MissingOverride The method 'copy(int, Plugin, String)' is missing an @Override annotation. 206236
CommentRequired Public method and constructor comments are required 243246
MissingOverride The method 'getHtml(Plugin, Locale)' is missing an @Override annotation. 243246
CommentRequired Public method and constructor comments are required 253256
MissingOverride The method 'getChilds(Plugin)' is missing an @Override annotation. 253256
MissingOverride The method 'getParent(Plugin)' is missing an @Override annotation. 263266
CommentRequired Public method and constructor comments are required 263266
MissingOverride The method 'setSpecificParameters(HttpServletRequest)' is missing an @Override annotation. 275278
LinguisticNaming Linguistics Antipattern - The setter 'setSpecificParameters' should not return any type except void linguistically 275278
LinguisticNaming Linguistics Antipattern - The getter 'getSpecificParameters' should not return void linguistically 290292
MissingOverride The method 'getSpecificParameters(HttpServletRequest, Map, Plugin)' is missing an @Override annotation. 290292
UncommentedEmptyMethodBody Document empty method body 291292
MissingOverride The method 'loadSpecificParameters(Plugin)' is missing an @Override annotation. 300302
UncommentedEmptyMethodBody Document empty method body 301302
MissingOverride The method 'createSpecificParameters(Plugin)' is missing an @Override annotation. 310312
UncommentedEmptyMethodBody Document empty method body 311312
MissingOverride The method 'removeSpecificParameters(Plugin)' is missing an @Override annotation. 320322
UncommentedEmptyMethodBody Document empty method body 321322
MissingOverride The method 'updateSpecificParameters(Plugin)' is missing an @Override annotation. 330332
UncommentedEmptyMethodBody Document empty method body 331332

fr/paris/lutece/plugins/quicklinks/business/EntryDAO.java

Rule Violation Ligne
MissingOverride The method 'load(int, Plugin)' is missing an @Override annotation. 102124
MissingOverride The method 'delete(int, Plugin)' is missing an @Override annotation. 132140
MissingOverride The method 'insert(IEntry, Plugin)' is missing an @Override annotation. 148163
MissingOverride The method 'store(IEntry, Plugin)' is missing an @Override annotation. 171184
MissingOverride The method 'findByFilter(EntryFilter, Plugin)' is missing an @Override annotation. 193218
NPathComplexity The method 'getDaoFromFilter(String, EntryFilter, Plugin)' has an NPath complexity of 15552 227308
CyclomaticComplexity The method 'getDaoFromFilter(String, EntryFilter, Plugin)' has a cyclomatic complexity of 17. 227308
ConfusingTernary Avoid if (x != y) ..; else ..; 234
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 234
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 240
ConfusingTernary Avoid if (x != y) ..; else ..; 240
ConfusingTernary Avoid if (x != y) ..; else ..; 246
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 246
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 252
ConfusingTernary Avoid if (x != y) ..; else ..; 252
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 258
ConfusingTernary Avoid if (x != y) ..; else ..; 258
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 267

fr/paris/lutece/plugins/quicklinks/business/EntryHome.java

Rule Violation Ligne
TooManyMethods This class has too many methods, consider refactoring it. 50486
AvoidProtectedFieldInFinalClass Avoid protected fields in a final class. Change to private or package access. 53
LinguisticNaming Linguistics Antipattern - The setter 'setSpecificEntry' should not return any type except void linguistically 314339
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 361

fr/paris/lutece/plugins/quicklinks/business/EntryInternalLinkDAO.java

Rule Violation Ligne
MissingOverride The method 'load(IEntry, Plugin)' is missing an @Override annotation. 6193
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 63
MissingOverride The method 'delete(int, Plugin)' is missing an @Override annotation. 101109
MissingOverride The method 'insert(IEntry, Plugin)' is missing an @Override annotation. 118147
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 120
MissingOverride The method 'store(IEntry, Plugin)' is missing an @Override annotation. 155183
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 157

fr/paris/lutece/plugins/quicklinks/business/EntrySelectDAO.java

Rule Violation Ligne
MissingOverride The method 'load(IEntry, Plugin)' is missing an @Override annotation. 5890
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 60
MissingOverride The method 'delete(int, Plugin)' is missing an @Override annotation. 98106
MissingOverride The method 'insert(IEntry, Plugin)' is missing an @Override annotation. 115144
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 117
MissingOverride The method 'store(IEntry, Plugin)' is missing an @Override annotation. 152179
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 154

fr/paris/lutece/plugins/quicklinks/business/EntrySelectOption.java

Rule Violation Ligne
CloneMethodMustImplementCloneable clone() method should be implemented only if implementing Cloneable interface 7281
CloneMethodMustBePublic clone() method must be public if the class implements Cloneable 7281

fr/paris/lutece/plugins/quicklinks/business/EntrySelectOptionDAO.java

Rule Violation Ligne
MissingOverride The method 'load(int, int, Plugin)' is missing an @Override annotation. 95116
MissingOverride The method 'delete(int, int, Plugin)' is missing an @Override annotation. 126135
MissingOverride The method 'insert(EntrySelectOption, Plugin)' is missing an @Override annotation. 144160
MissingOverride The method 'store(EntrySelectOption, Plugin)' is missing an @Override annotation. 168181
MissingOverride The method 'select(Plugin)' is missing an @Override annotation. 189210
MissingOverride The method 'selectByEntry(int, Plugin)' is missing an @Override annotation. 219239

fr/paris/lutece/plugins/quicklinks/business/EntrySelectOptionHome.java

Rule Violation Ligne
AvoidProtectedFieldInFinalClass Avoid protected fields in a final class. Change to private or package access. 50

fr/paris/lutece/plugins/quicklinks/business/EntryTextDAO.java

Rule Violation Ligne
MissingOverride The method 'load(IEntry, Plugin)' is missing an @Override annotation. 6193
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 63
MissingOverride The method 'delete(int, Plugin)' is missing an @Override annotation. 101109
MissingOverride The method 'insert(IEntry, Plugin)' is missing an @Override annotation. 118147
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 120
MissingOverride The method 'store(IEntry, Plugin)' is missing an @Override annotation. 155183
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 157

fr/paris/lutece/plugins/quicklinks/business/EntryTypeDAO.java

Rule Violation Ligne
MissingOverride The method 'load(int, Plugin)' is missing an @Override annotation. 6180
MissingOverride The method 'select(Plugin)' is missing an @Override annotation. 88109

fr/paris/lutece/plugins/quicklinks/business/EntryUrl.java

Rule Violation Ligne
MethodReturnsInternalArray Returning '_bytesImage' may expose an internal array. 137
ArrayIsStoredDirectly The user-supplied array 'image' is stored directly. 144
NPathComplexity The method 'setSpecificParameters(HttpServletRequest)' has an NPath complexity of 240 265329
CyclomaticComplexity The method 'setSpecificParameters(HttpServletRequest)' has a cyclomatic complexity of 11. 265329
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 276

fr/paris/lutece/plugins/quicklinks/business/EntryUrlDAO.java

Rule Violation Ligne
MissingOverride The method 'load(IEntry, Plugin)' is missing an @Override annotation. 6199
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 63
MissingOverride The method 'delete(int, Plugin)' is missing an @Override annotation. 107115
MissingOverride The method 'insert(IEntry, Plugin)' is missing an @Override annotation. 124159
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 126
MissingOverride The method 'store(IEntry, Plugin)' is missing an @Override annotation. 167201
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 169

fr/paris/lutece/plugins/quicklinks/business/EntryUrlDisplayProperties.java

Rule Violation Ligne
UnnecessaryModifier Unnecessary modifier 'private' on constructor 'EntryUrlDisplayProperties(int, String)': enum constructors are implicitly private 5660

fr/paris/lutece/plugins/quicklinks/business/EntryUrlLinkProperties.java

Rule Violation Ligne
UnnecessaryModifier Unnecessary modifier 'private' on constructor 'EntryUrlLinkProperties(int, String)': enum constructors are implicitly private 5660

fr/paris/lutece/plugins/quicklinks/business/IEntry.java

Rule Violation Ligne
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'getIdQuicklinks': the method is declared in an interface type 53
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'setIdQuicklinks': the method is declared in an interface type 59
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'getId': the method is declared in an interface type 64
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'setId': the method is declared in an interface type 70
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'getIdOrder': the method is declared in an interface type 75
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'setIdOrder': the method is declared in an interface type 81
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'getIdParent': the method is declared in an interface type 86
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'setIdParent': the method is declared in an interface type 92
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'getParent': the method is declared in an interface type 99
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'getChilds': the method is declared in an interface type 108
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'getEntryType': the method is declared in an interface type 113
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'setEntryType': the method is declared in an interface type 119
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'getTitle': the method is declared in an interface type 124
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'setTitle': the method is declared in an interface type 130
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'getHtml': the method is declared in an interface type 141
LinguisticNaming Linguistics Antipattern - The getter 'getSpecificParameters' should not return void linguistically 153
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'getSpecificParameters': the method is declared in an interface type 153
LinguisticNaming Linguistics Antipattern - The setter 'setSpecificParameters' should not return any type except void linguistically 162
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'setSpecificParameters': the method is declared in an interface type 162
CloneMethodMustImplementCloneable clone() method should be implemented only if implementing Cloneable interface 169
UnnecessaryModifier Unnecessary modifier 'public' on method 'clone': the method is declared in an interface type 169
UnnecessaryModifier Unnecessary modifier 'public' on method 'copy': the method is declared in an interface type 180
UnnecessaryModifier Unnecessary modifier 'public' on method 'copy': the method is declared in an interface type 193
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'loadSpecificParameters': the method is declared in an interface type 201
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'createSpecificParameters': the method is declared in an interface type 209
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'removeSpecificParameters': the method is declared in an interface type 217
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'updateSpecificParameters': the method is declared in an interface type 225

fr/paris/lutece/plugins/quicklinks/business/Quicklinks.java

Rule Violation Ligne
NonThreadSafeSingleton Singleton is not thread safe 99103
MissingOverride The method 'getWorkgroup()' is missing an @Override annotation. 203206
MissingOverride The method 'getResourceId()' is missing an @Override annotation. 211214
MissingOverride The method 'getResourceTypeCode()' is missing an @Override annotation. 219222
LinguisticNaming Linguistics Antipattern - The getter 'getEntryXml' should not return void linguistically 270286
CloneMethodMustBePublic clone() method must be public if the class implements Cloneable 294304

fr/paris/lutece/plugins/quicklinks/business/QuicklinksAction.java

Rule Violation Ligne
MissingOverride The method 'getPermission()' is missing an @Override annotation. 186189
MissingOverride The method 'setLocale(Locale)' is missing an @Override annotation. 208211

fr/paris/lutece/plugins/quicklinks/business/QuicklinksActionDAO.java

Rule Violation Ligne
MissingOverride The method 'selectActionsByQuicklinksState(boolean, Plugin)' is missing an @Override annotation. 5881

fr/paris/lutece/plugins/quicklinks/business/QuicklinksDAO.java

Rule Violation Ligne
MissingOverride The method 'newPrimaryKey(Plugin)' is missing an @Override annotation. 7993
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 102120
MissingOverride The method 'insert(Quicklinks, Plugin)' is missing an @Override annotation. 102120
MissingOverride The method 'delete(int, Plugin)' is missing an @Override annotation. 128136
MissingOverride The method 'store(Quicklinks, Plugin)' is missing an @Override annotation. 144159
MissingOverride The method 'load(int, Plugin)' is missing an @Override annotation. 168191
MissingOverride The method 'findAll(Plugin)' is missing an @Override annotation. 199223
MissingOverride The method 'findbyFilter(QuicklinksFilter, Plugin)' is missing an @Override annotation. 232257
NPathComplexity The method 'getDaoFromFilter(String, QuicklinksFilter, Plugin)' has an NPath complexity of 2048 266342
CyclomaticComplexity The method 'getDaoFromFilter(String, QuicklinksFilter, Plugin)' has a cyclomatic complexity of 14. 266342
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 302

fr/paris/lutece/plugins/quicklinks/business/QuicklinksFilter.java

Rule Violation Ligne
MethodReturnsInternalArray Returning '_arrayRoleKey' may expose an internal array. 52
ArrayIsStoredDirectly The user-supplied array 'arrayRoleKey' is stored directly. 62

fr/paris/lutece/plugins/quicklinks/business/QuicklinksType.java

Rule Violation Ligne
UnnecessaryModifier Unnecessary modifier 'private' on constructor 'QuicklinksType(int, String)': enum constructors are implicitly private 5559

fr/paris/lutece/plugins/quicklinks/business/QuicklinksWorkgroupRemovalListener.java

Rule Violation Ligne
MissingOverride The method 'canBeRemoved(String)' is missing an @Override annotation. 6073
MissingOverride The method 'getRemovalRefusedMessage(String, Locale)' is missing an @Override annotation. 8488

fr/paris/lutece/plugins/quicklinks/business/insertservice/InternalLinkInsertServiceDAO.java

Rule Violation Ligne
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getInstance method if you want a default access modifier 6467
DefaultPackage Use explicit scoping instead of the default package private level 6467
DefaultPackage Use explicit scoping instead of the default package private level 76106
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the selectPageListbyName method if you want a default access modifier 76106

fr/paris/lutece/plugins/quicklinks/business/portlet/IQuicklinksPortletDAO.java

Rule Violation Ligne
MissingOverride The method 'delete(int)' is missing an @Override annotation. 51
MissingOverride The method 'insert(Portlet)' is missing an @Override annotation. 60
MissingOverride The method 'load(int)' is missing an @Override annotation. 70
MissingOverride The method 'store(Portlet)' is missing an @Override annotation. 88

fr/paris/lutece/plugins/quicklinks/business/portlet/QuicklinksPortlet.java

Rule Violation Ligne
MissingOverride The method 'getXml(HttpServletRequest)' is missing an @Override annotation. 7299
ConfusingTernary Avoid if (x != y) ..; else ..; 7784
MissingOverride The method 'getXmlDocument(HttpServletRequest)' is missing an @Override annotation. 108111
MissingOverride The method 'remove()' is missing an @Override annotation. 124127

fr/paris/lutece/plugins/quicklinks/business/portlet/QuicklinksPortletDAO.java

Rule Violation Ligne
MissingOverride The method 'insert(Portlet)' is missing an @Override annotation. 6071
ShortVariable Avoid variables with short names like p 62
MissingOverride The method 'delete(int)' is missing an @Override annotation. 7986
MissingOverride The method 'load(int)' is missing an @Override annotation. 96111
MissingOverride The method 'selectCountPortletByIdQuicklinks(int)' is missing an @Override annotation. 119135
MissingOverride The method 'store(Portlet)' is missing an @Override annotation. 143153
ShortVariable Avoid variables with short names like p 145

fr/paris/lutece/plugins/quicklinks/business/portlet/QuicklinksPortletHome.java

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 5763
NonThreadSafeSingleton Singleton is not thread safe 7275
MissingOverride The method 'getPortletTypeId()' is missing an @Override annotation. 8589
MissingOverride The method 'getDAO()' is missing an @Override annotation. 9699

fr/paris/lutece/plugins/quicklinks/service/EntryUrlService.java

Rule Violation Ligne
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the EntryUrlService constructor if you want a default access modifier 5962
MissingOverride The method 'getImageResource(int)' is missing an @Override annotation. 8194
MissingOverride The method 'getResourceTypeId()' is missing an @Override annotation. 101104

fr/paris/lutece/plugins/quicklinks/service/QuicklinksResourceIdService.java

Rule Violation Ligne
CallSuperInConstructor It is a good practice to call super() in a constructor 7780
MissingOverride The method 'register()' is missing an @Override annotation. 85119
ShortVariable Avoid variables with short names like rt 87
ShortVariable Avoid variables with short names like p 93
MissingOverride The method 'getResourceIdList(Locale)' is missing an @Override annotation. 128131
MissingOverride The method 'getTitle(String, Locale)' is missing an @Override annotation. 142158

fr/paris/lutece/plugins/quicklinks/service/QuicklinksService.java

Rule Violation Ligne
CommentRequired Header comments are required 3860

fr/paris/lutece/plugins/quicklinks/web/InternalLinkInsertServiceJspBean.java

Rule Violation Ligne
ImmutableField Private field '_pageService' could be made final; it is only initialized in the declaration or constructor. 107
MissingOverride The method 'getInsertServiceSelectorUI(HttpServletRequest)' is missing an @Override annotation. 118158
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
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 207
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 208
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 210
LooseCoupling Avoid using implementation types like 'HashMap'; use the interface instead 239

fr/paris/lutece/plugins/quicklinks/web/QuicklinksEntrySelectJspBean.java

Rule Violation Ligne
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 128
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. 245
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 332

fr/paris/lutece/plugins/quicklinks/web/QuicklinksInclude.java

Rule Violation Ligne
MissingOverride The method 'fillTemplate(Map, PageData, int, HttpServletRequest)' is missing an @Override annotation. 99113
UselessStringValueOf No need to call String.valueOf to append to a string. 111
ShortVariable Avoid variables with short names like in 141
ConfusingTernary Avoid if (x != y) ..; else ..; 171178

fr/paris/lutece/plugins/quicklinks/web/QuicklinksJspBean.java

Rule Violation Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 341165
CyclomaticComplexity The class 'QuicklinksJspBean' has a total cyclomatic complexity of 113 (highest 13). 831165
ExcessiveClassLength Avoid really long classes. 831165
TooManyMethods This class has too many methods, consider refactoring it. 841165
UselessStringValueOf No need to call String.valueOf to append to a string. 216
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 250
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 306
CyclomaticComplexity The method 'doModifyQuicklinks(HttpServletRequest)' has a cyclomatic complexity of 13. 409478
NPathComplexity The method 'doModifyQuicklinks(HttpServletRequest)' has an NPath complexity of 384 409478
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 416
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 422
ConfusingTernary Avoid if (x != y) ..; else ..; 467475
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 685
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 686
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 688
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 734
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 735
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 737
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 739
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 809
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 856
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 858
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 907
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 946
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 987
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1026
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1075
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 1133

fr/paris/lutece/plugins/quicklinks/web/portlet/QuicklinksPortletJspBean.java

Rule Violation Ligne
MissingOverride The method 'getCreate(HttpServletRequest)' is missing an @Override annotation. 89117
MissingOverride The method 'getModify(HttpServletRequest)' is missing an @Override annotation. 126167
MissingOverride The method 'doCreate(HttpServletRequest)' is missing an @Override annotation. 176215
MissingOverride The method 'doModify(HttpServletRequest)' is missing an @Override annotation. 224263

Priority 4

fr/paris/lutece/plugins/quicklinks/business/EntrySelect.java

Rule Violation Ligne
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.web.constants.Messages' 47

fr/paris/lutece/plugins/quicklinks/business/QuicklinksFilter.java

Rule Violation Ligne
UseVarargs Consider using varargs for methods or constructors which take an array the last parameter. 62

Fichiers

fr/paris/lutece/plugins/quicklinks/business/Entry.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 46333
MissingOverride The method 'getIdParent()' is missing an @Override annotation. 3 5861
MissingOverride The method 'setIdParent(int)' is missing an @Override annotation. 3 6770
CommentRequired Public method and constructor comments are required 3 7780
MissingOverride The method 'getIdQuicklinks()' is missing an @Override annotation. 3 7780
MissingOverride The method 'setIdQuicklinks(int)' is missing an @Override annotation. 3 8790
CommentRequired Public method and constructor comments are required 3 8790
MissingOverride The method 'getId()' is missing an @Override annotation. 3 97100
CommentRequired Public method and constructor comments are required 3 97100
CommentRequired Public method and constructor comments are required 3 107110
MissingOverride The method 'setId(int)' is missing an @Override annotation. 3 107110
MissingOverride The method 'getIdOrder()' is missing an @Override annotation. 3 117120
CommentRequired Public method and constructor comments are required 3 117120
CommentRequired Public method and constructor comments are required 3 127130
MissingOverride The method 'setIdOrder(int)' is missing an @Override annotation. 3 127130
MissingOverride The method 'getEntryType()' is missing an @Override annotation. 3 137140
MissingOverride The method 'setEntryType(EntryType)' is missing an @Override annotation. 3 147150
MissingOverride The method 'getTitle()' is missing an @Override annotation. 3 159162
CommentRequired Public method and constructor comments are required 3 159162
MissingOverride The method 'setTitle(String)' is missing an @Override annotation. 3 169171
CommentRequired Public method and constructor comments are required 3 169171
UncommentedEmptyMethodBody Document empty method body 3 170171
MissingOverride The method 'clone()' is missing an @Override annotation. 3 176179
CloneMethodReturnTypeMustMatchClassName The return type of the clone() method must be the class name when implements Cloneable 3 176179
MissingOverride The method 'copy(int, Plugin)' is missing an @Override annotation. 3 190193
MissingOverride The method 'copy(int, Plugin, String)' is missing an @Override annotation. 3 206236
CommentRequired Public method and constructor comments are required 3 243246
MissingOverride The method 'getHtml(Plugin, Locale)' is missing an @Override annotation. 3 243246
CommentRequired Public method and constructor comments are required 3 253256
MissingOverride The method 'getChilds(Plugin)' is missing an @Override annotation. 3 253256
MissingOverride The method 'getParent(Plugin)' is missing an @Override annotation. 3 263266
CommentRequired Public method and constructor comments are required 3 263266
MissingOverride The method 'setSpecificParameters(HttpServletRequest)' is missing an @Override annotation. 3 275278
LinguisticNaming Linguistics Antipattern - The setter 'setSpecificParameters' should not return any type except void linguistically 3 275278
LinguisticNaming Linguistics Antipattern - The getter 'getSpecificParameters' should not return void linguistically 3 290292
MissingOverride The method 'getSpecificParameters(HttpServletRequest, Map, Plugin)' is missing an @Override annotation. 3 290292
UncommentedEmptyMethodBody Document empty method body 3 291292
MissingOverride The method 'loadSpecificParameters(Plugin)' is missing an @Override annotation. 3 300302
UncommentedEmptyMethodBody Document empty method body 3 301302
MissingOverride The method 'createSpecificParameters(Plugin)' is missing an @Override annotation. 3 310312
UncommentedEmptyMethodBody Document empty method body 3 311312
MissingOverride The method 'removeSpecificParameters(Plugin)' is missing an @Override annotation. 3 320322
UncommentedEmptyMethodBody Document empty method body 3 321322
MissingOverride The method 'updateSpecificParameters(Plugin)' is missing an @Override annotation. 3 330332
UncommentedEmptyMethodBody Document empty method body 3 331332

fr/paris/lutece/plugins/quicklinks/business/EntryDAO.java

Rule Violation Priority Ligne
MissingOverride The method 'load(int, Plugin)' is missing an @Override annotation. 3 102124
MissingOverride The method 'delete(int, Plugin)' is missing an @Override annotation. 3 132140
MissingOverride The method 'insert(IEntry, Plugin)' is missing an @Override annotation. 3 148163
MissingOverride The method 'store(IEntry, Plugin)' is missing an @Override annotation. 3 171184
MissingOverride The method 'findByFilter(EntryFilter, Plugin)' is missing an @Override annotation. 3 193218
NPathComplexity The method 'getDaoFromFilter(String, EntryFilter, Plugin)' has an NPath complexity of 15552 3 227308
CyclomaticComplexity The method 'getDaoFromFilter(String, EntryFilter, Plugin)' has a cyclomatic complexity of 17. 3 227308
ConfusingTernary Avoid if (x != y) ..; else ..; 3 234
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 234
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 240
ConfusingTernary Avoid if (x != y) ..; else ..; 3 240
ConfusingTernary Avoid if (x != y) ..; else ..; 3 246
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 246
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 252
ConfusingTernary Avoid if (x != y) ..; else ..; 3 252
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 258
ConfusingTernary Avoid if (x != y) ..; else ..; 3 258
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 267
GuardLogStatement Logger calls should be surrounded by log level guards. 2 269
GuardLogStatement Logger calls should be surrounded by log level guards. 2 277
GuardLogStatement Logger calls should be surrounded by log level guards. 2 284
GuardLogStatement Logger calls should be surrounded by log level guards. 2 291
GuardLogStatement Logger calls should be surrounded by log level guards. 2 298
GuardLogStatement Logger calls should be surrounded by log level guards. 2 305

fr/paris/lutece/plugins/quicklinks/business/EntryHome.java

Rule Violation Priority Ligne
TooManyMethods This class has too many methods, consider refactoring it. 3 50486
AvoidProtectedFieldInFinalClass Avoid protected fields in a final class. Change to private or package access. 3 53
LinguisticNaming Linguistics Antipattern - The setter 'setSpecificEntry' should not return any type except void linguistically 3 314339
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 361

fr/paris/lutece/plugins/quicklinks/business/EntryInternalLink.java

Rule Violation Priority Ligne
ProperCloneImplementation Object clone() should be implemented with super.clone() 2 73

fr/paris/lutece/plugins/quicklinks/business/EntryInternalLinkDAO.java

Rule Violation Priority Ligne
MissingOverride The method 'load(IEntry, Plugin)' is missing an @Override annotation. 3 6193
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 63
MissingOverride The method 'delete(int, Plugin)' is missing an @Override annotation. 3 101109
MissingOverride The method 'insert(IEntry, Plugin)' is missing an @Override annotation. 3 118147
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 120
MissingOverride The method 'store(IEntry, Plugin)' is missing an @Override annotation. 3 155183
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 157

fr/paris/lutece/plugins/quicklinks/business/EntrySelect.java

Rule Violation Priority Ligne
UnusedImports Avoid unused imports such as 'fr.paris.lutece.portal.web.constants.Messages' 4 47
ProperCloneImplementation Object clone() should be implemented with super.clone() 2 90

fr/paris/lutece/plugins/quicklinks/business/EntrySelectDAO.java

Rule Violation Priority Ligne
MissingOverride The method 'load(IEntry, Plugin)' is missing an @Override annotation. 3 5890
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 60
MissingOverride The method 'delete(int, Plugin)' is missing an @Override annotation. 3 98106
MissingOverride The method 'insert(IEntry, Plugin)' is missing an @Override annotation. 3 115144
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 117
MissingOverride The method 'store(IEntry, Plugin)' is missing an @Override annotation. 3 152179
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 154

fr/paris/lutece/plugins/quicklinks/business/EntrySelectOption.java

Rule Violation Priority Ligne
ProperCloneImplementation Object clone() should be implemented with super.clone() 2 72
CloneMethodMustImplementCloneable clone() method should be implemented only if implementing Cloneable interface 3 7281
CloneMethodMustBePublic clone() method must be public if the class implements Cloneable 3 7281

fr/paris/lutece/plugins/quicklinks/business/EntrySelectOptionDAO.java

Rule Violation Priority Ligne
MissingOverride The method 'load(int, int, Plugin)' is missing an @Override annotation. 3 95116
MissingOverride The method 'delete(int, int, Plugin)' is missing an @Override annotation. 3 126135
MissingOverride The method 'insert(EntrySelectOption, Plugin)' is missing an @Override annotation. 3 144160
MissingOverride The method 'store(EntrySelectOption, Plugin)' is missing an @Override annotation. 3 168181
MissingOverride The method 'select(Plugin)' is missing an @Override annotation. 3 189210
MissingOverride The method 'selectByEntry(int, Plugin)' is missing an @Override annotation. 3 219239

fr/paris/lutece/plugins/quicklinks/business/EntrySelectOptionHome.java

Rule Violation Priority Ligne
AvoidProtectedFieldInFinalClass Avoid protected fields in a final class. Change to private or package access. 3 50

fr/paris/lutece/plugins/quicklinks/business/EntryText.java

Rule Violation Priority Ligne
ProperCloneImplementation Object clone() should be implemented with super.clone() 2 83

fr/paris/lutece/plugins/quicklinks/business/EntryTextDAO.java

Rule Violation Priority Ligne
MissingOverride The method 'load(IEntry, Plugin)' is missing an @Override annotation. 3 6193
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 63
MissingOverride The method 'delete(int, Plugin)' is missing an @Override annotation. 3 101109
MissingOverride The method 'insert(IEntry, Plugin)' is missing an @Override annotation. 3 118147
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 120
MissingOverride The method 'store(IEntry, Plugin)' is missing an @Override annotation. 3 155183
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 157

fr/paris/lutece/plugins/quicklinks/business/EntryTypeDAO.java

Rule Violation Priority Ligne
MissingOverride The method 'load(int, Plugin)' is missing an @Override annotation. 3 6180
MissingOverride The method 'select(Plugin)' is missing an @Override annotation. 3 88109

fr/paris/lutece/plugins/quicklinks/business/EntryUrl.java

Rule Violation Priority Ligne
MethodReturnsInternalArray Returning '_bytesImage' may expose an internal array. 3 137
ArrayIsStoredDirectly The user-supplied array 'image' is stored directly. 3 144
ProperCloneImplementation Object clone() should be implemented with super.clone() 2 201
NPathComplexity The method 'setSpecificParameters(HttpServletRequest)' has an NPath complexity of 240 3 265329
CyclomaticComplexity The method 'setSpecificParameters(HttpServletRequest)' has a cyclomatic complexity of 11. 3 265329
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 276

fr/paris/lutece/plugins/quicklinks/business/EntryUrlDAO.java

Rule Violation Priority Ligne
MissingOverride The method 'load(IEntry, Plugin)' is missing an @Override annotation. 3 6199
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 63
MissingOverride The method 'delete(int, Plugin)' is missing an @Override annotation. 3 107115
MissingOverride The method 'insert(IEntry, Plugin)' is missing an @Override annotation. 3 124159
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 126
MissingOverride The method 'store(IEntry, Plugin)' is missing an @Override annotation. 3 167201
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 169

fr/paris/lutece/plugins/quicklinks/business/EntryUrlDisplayProperties.java

Rule Violation Priority Ligne
FieldNamingConventions The final field name '_nValue' doesn't match '[a-z][a-zA-Z0-9]*' 1 47
FieldNamingConventions The final field name '_strI18nKey' doesn't match '[a-z][a-zA-Z0-9]*' 1 48
UnnecessaryModifier Unnecessary modifier 'private' on constructor 'EntryUrlDisplayProperties(int, String)': enum constructors are implicitly private 3 5660

fr/paris/lutece/plugins/quicklinks/business/EntryUrlLinkProperties.java

Rule Violation Priority Ligne
FieldNamingConventions The final field name '_nValue' doesn't match '[a-z][a-zA-Z0-9]*' 1 47
FieldNamingConventions The final field name '_strI18nKey' doesn't match '[a-z][a-zA-Z0-9]*' 1 48
UnnecessaryModifier Unnecessary modifier 'private' on constructor 'EntryUrlLinkProperties(int, String)': enum constructors are implicitly private 3 5660

fr/paris/lutece/plugins/quicklinks/business/IEntry.java

Rule Violation Priority Ligne
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'getIdQuicklinks': the method is declared in an interface type 3 53
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'setIdQuicklinks': the method is declared in an interface type 3 59
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'getId': the method is declared in an interface type 3 64
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'setId': the method is declared in an interface type 3 70
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'getIdOrder': the method is declared in an interface type 3 75
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'setIdOrder': the method is declared in an interface type 3 81
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'getIdParent': the method is declared in an interface type 3 86
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'setIdParent': the method is declared in an interface type 3 92
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'getParent': the method is declared in an interface type 3 99
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'getChilds': the method is declared in an interface type 3 108
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'getEntryType': the method is declared in an interface type 3 113
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'setEntryType': the method is declared in an interface type 3 119
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'getTitle': the method is declared in an interface type 3 124
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'setTitle': the method is declared in an interface type 3 130
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'getHtml': the method is declared in an interface type 3 141
LinguisticNaming Linguistics Antipattern - The getter 'getSpecificParameters' should not return void linguistically 3 153
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'getSpecificParameters': the method is declared in an interface type 3 153
LinguisticNaming Linguistics Antipattern - The setter 'setSpecificParameters' should not return any type except void linguistically 3 162
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'setSpecificParameters': the method is declared in an interface type 3 162
CloneMethodMustImplementCloneable clone() method should be implemented only if implementing Cloneable interface 3 169
UnnecessaryModifier Unnecessary modifier 'public' on method 'clone': the method is declared in an interface type 3 169
UnnecessaryModifier Unnecessary modifier 'public' on method 'copy': the method is declared in an interface type 3 180
UnnecessaryModifier Unnecessary modifier 'public' on method 'copy': the method is declared in an interface type 3 193
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'loadSpecificParameters': the method is declared in an interface type 3 201
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'createSpecificParameters': the method is declared in an interface type 3 209
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'removeSpecificParameters': the method is declared in an interface type 3 217
UnnecessaryModifier Unnecessary modifiers 'public abstract' on method 'updateSpecificParameters': the method is declared in an interface type 3 225

fr/paris/lutece/plugins/quicklinks/business/Quicklinks.java

Rule Violation Priority Ligne
NonThreadSafeSingleton Singleton is not thread safe 3 99103
MissingOverride The method 'getWorkgroup()' is missing an @Override annotation. 3 203206
MissingOverride The method 'getResourceId()' is missing an @Override annotation. 3 211214
MissingOverride The method 'getResourceTypeCode()' is missing an @Override annotation. 3 219222
LinguisticNaming Linguistics Antipattern - The getter 'getEntryXml' should not return void linguistically 3 270286
ProperCloneImplementation Object clone() should be implemented with super.clone() 2 294
CloneMethodMustBePublic clone() method must be public if the class implements Cloneable 3 294304

fr/paris/lutece/plugins/quicklinks/business/QuicklinksAction.java

Rule Violation Priority Ligne
MissingOverride The method 'getPermission()' is missing an @Override annotation. 3 186189
MissingOverride The method 'setLocale(Locale)' is missing an @Override annotation. 3 208211

fr/paris/lutece/plugins/quicklinks/business/QuicklinksActionDAO.java

Rule Violation Priority Ligne
MissingOverride The method 'selectActionsByQuicklinksState(boolean, Plugin)' is missing an @Override annotation. 3 5881

fr/paris/lutece/plugins/quicklinks/business/QuicklinksDAO.java

Rule Violation Priority Ligne
MissingOverride The method 'newPrimaryKey(Plugin)' is missing an @Override annotation. 3 7993
AvoidSynchronizedAtMethodLevel Use block level rather than method level synchronization 3 102120
MissingOverride The method 'insert(Quicklinks, Plugin)' is missing an @Override annotation. 3 102120
MissingOverride The method 'delete(int, Plugin)' is missing an @Override annotation. 3 128136
MissingOverride The method 'store(Quicklinks, Plugin)' is missing an @Override annotation. 3 144159
MissingOverride The method 'load(int, Plugin)' is missing an @Override annotation. 3 168191
MissingOverride The method 'findAll(Plugin)' is missing an @Override annotation. 3 199223
MissingOverride The method 'findbyFilter(QuicklinksFilter, Plugin)' is missing an @Override annotation. 3 232257
NPathComplexity The method 'getDaoFromFilter(String, QuicklinksFilter, Plugin)' has an NPath complexity of 2048 3 266342
CyclomaticComplexity The method 'getDaoFromFilter(String, QuicklinksFilter, Plugin)' has a cyclomatic complexity of 14. 3 266342
UseStringBufferForStringAppends Prefer StringBuilder (non-synchronized) or StringBuffer (synchronized) over += for concatenating strings 3 302
GuardLogStatement Logger calls should be surrounded by log level guards. 2 305
GuardLogStatement Logger calls should be surrounded by log level guards. 2 315
GuardLogStatement Logger calls should be surrounded by log level guards. 2 323324
GuardLogStatement Logger calls should be surrounded by log level guards. 2 331
GuardLogStatement Logger calls should be surrounded by log level guards. 2 338

fr/paris/lutece/plugins/quicklinks/business/QuicklinksFilter.java

Rule Violation Priority Ligne
MethodReturnsInternalArray Returning '_arrayRoleKey' may expose an internal array. 3 52
ArrayIsStoredDirectly The user-supplied array 'arrayRoleKey' is stored directly. 3 62
UseVarargs Consider using varargs for methods or constructors which take an array the last parameter. 4 62

fr/paris/lutece/plugins/quicklinks/business/QuicklinksHome.java

Rule Violation Priority Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 46161

fr/paris/lutece/plugins/quicklinks/business/QuicklinksType.java

Rule Violation Priority Ligne
FieldNamingConventions The final field name '_nValue' doesn't match '[a-z][a-zA-Z0-9]*' 1 46
FieldNamingConventions The final field name '_strI18nKey' doesn't match '[a-z][a-zA-Z0-9]*' 1 47
UnnecessaryModifier Unnecessary modifier 'private' on constructor 'QuicklinksType(int, String)': enum constructors are implicitly private 3 5559

fr/paris/lutece/plugins/quicklinks/business/QuicklinksWorkgroupRemovalListener.java

Rule Violation Priority Ligne
MissingOverride The method 'canBeRemoved(String)' is missing an @Override annotation. 3 6073
MissingOverride The method 'getRemovalRefusedMessage(String, Locale)' is missing an @Override annotation. 3 8488

fr/paris/lutece/plugins/quicklinks/business/insertservice/InternalLinkInsertServiceDAO.java

Rule Violation Priority Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 45107
FieldNamingConventions The constant name '_dao' doesn't match '[A-Z][A-Z_0-9]*' 1 50
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the getInstance method if you want a default access modifier 3 6467
DefaultPackage Use explicit scoping instead of the default package private level 3 6467
DefaultPackage Use explicit scoping instead of the default package private level 3 76106
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the selectPageListbyName method if you want a default access modifier 3 76106

fr/paris/lutece/plugins/quicklinks/business/insertservice/InternalLinkInsertServiceHome.java

Rule Violation Priority Ligne
ClassWithOnlyPrivateConstructorsShouldBeFinal A class which only has private constructors should be final 1 4265

fr/paris/lutece/plugins/quicklinks/business/portlet/IQuicklinksPortletDAO.java

Rule Violation Priority Ligne
MissingOverride The method 'delete(int)' is missing an @Override annotation. 3 51
MissingOverride The method 'insert(Portlet)' is missing an @Override annotation. 3 60
MissingOverride The method 'load(int)' is missing an @Override annotation. 3 70
MissingOverride The method 'store(Portlet)' is missing an @Override annotation. 3 88

fr/paris/lutece/plugins/quicklinks/business/portlet/QuicklinksPortlet.java

Rule Violation Priority Ligne
MissingOverride The method 'getXml(HttpServletRequest)' is missing an @Override annotation. 3 7299
ConfusingTernary Avoid if (x != y) ..; else ..; 3 7784
MissingOverride The method 'getXmlDocument(HttpServletRequest)' is missing an @Override annotation. 3 108111
MissingOverride The method 'remove()' is missing an @Override annotation. 3 124127

fr/paris/lutece/plugins/quicklinks/business/portlet/QuicklinksPortletDAO.java

Rule Violation Priority Ligne
MissingOverride The method 'insert(Portlet)' is missing an @Override annotation. 3 6071
ShortVariable Avoid variables with short names like p 3 62
MissingOverride The method 'delete(int)' is missing an @Override annotation. 3 7986
MissingOverride The method 'load(int)' is missing an @Override annotation. 3 96111
MissingOverride The method 'selectCountPortletByIdQuicklinks(int)' is missing an @Override annotation. 3 119135
MissingOverride The method 'store(Portlet)' is missing an @Override annotation. 3 143153
ShortVariable Avoid variables with short names like p 3 145

fr/paris/lutece/plugins/quicklinks/business/portlet/QuicklinksPortletHome.java

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 5763
NonThreadSafeSingleton Singleton is not thread safe 3 7275
MissingOverride The method 'getPortletTypeId()' is missing an @Override annotation. 3 8589
MissingOverride The method 'getDAO()' is missing an @Override annotation. 3 9699

fr/paris/lutece/plugins/quicklinks/service/EntryUrlService.java

Rule Violation Priority Ligne
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the EntryUrlService constructor if you want a default access modifier 3 5962
MissingOverride The method 'getImageResource(int)' is missing an @Override annotation. 3 8194
MissingOverride The method 'getResourceTypeId()' is missing an @Override annotation. 3 101104

fr/paris/lutece/plugins/quicklinks/service/QuicklinksResourceIdService.java

Rule Violation Priority Ligne
CallSuperInConstructor It is a good practice to call super() in a constructor 3 7780
MissingOverride The method 'register()' is missing an @Override annotation. 3 85119
ShortVariable Avoid variables with short names like rt 3 87
ShortVariable Avoid variables with short names like p 3 93
MissingOverride The method 'getResourceIdList(Locale)' is missing an @Override annotation. 3 128131
MissingOverride The method 'getTitle(String, Locale)' is missing an @Override annotation. 3 142158

fr/paris/lutece/plugins/quicklinks/service/QuicklinksService.java

Rule Violation Priority Ligne
CommentRequired Header comments are required 3 3860

fr/paris/lutece/plugins/quicklinks/web/InternalLinkInsertServiceJspBean.java

Rule Violation Priority Ligne
ImmutableField Private field '_pageService' could be made final; it is only initialized in the declaration or constructor. 3 107
MissingOverride The method 'getInsertServiceSelectorUI(HttpServletRequest)' is missing an @Override annotation. 3 118158
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
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 207
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 208
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 210
LooseCoupling Avoid using implementation types like 'HashMap'; use the interface instead 3 239

fr/paris/lutece/plugins/quicklinks/web/QuicklinksEntrySelectJspBean.java

Rule Violation Priority Ligne
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 128
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 245
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 332

fr/paris/lutece/plugins/quicklinks/web/QuicklinksInclude.java

Rule Violation Priority Ligne
MissingOverride The method 'fillTemplate(Map, PageData, int, HttpServletRequest)' is missing an @Override annotation. 3 99113
UselessStringValueOf No need to call String.valueOf to append to a string. 3 111
ShortVariable Avoid variables with short names like in 3 141
ConfusingTernary Avoid if (x != y) ..; else ..; 3 171178

fr/paris/lutece/plugins/quicklinks/web/QuicklinksJspBean.java

Rule Violation Priority Ligne
ExcessiveImports A high number of imports can indicate a high degree of coupling within an object. 3 341165
CyclomaticComplexity The class 'QuicklinksJspBean' has a total cyclomatic complexity of 113 (highest 13). 3 831165
ExcessiveClassLength Avoid really long classes. 3 831165
TooManyMethods This class has too many methods, consider refactoring it. 3 841165
UselessStringValueOf No need to call String.valueOf to append to a string. 3 216
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 250
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 306
CyclomaticComplexity The method 'doModifyQuicklinks(HttpServletRequest)' has a cyclomatic complexity of 13. 3 409478
NPathComplexity The method 'doModifyQuicklinks(HttpServletRequest)' has an NPath complexity of 384 3 409478
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 416
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 422
ConfusingTernary Avoid if (x != y) ..; else ..; 3 467475
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 685
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 686
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 688
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 734
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 735
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 737
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 739
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 809
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 856
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 858
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 907
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 946
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 987
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1026
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1075
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 1133

fr/paris/lutece/plugins/quicklinks/web/portlet/QuicklinksPortletJspBean.java

Rule Violation Priority Ligne
MissingOverride The method 'getCreate(HttpServletRequest)' is missing an @Override annotation. 3 89117
MissingOverride The method 'getModify(HttpServletRequest)' is missing an @Override annotation. 3 126167
MissingOverride The method 'doCreate(HttpServletRequest)' is missing an @Override annotation. 3 176215
MissingOverride The method 'doModify(HttpServletRequest)' is missing an @Override annotation. 3 224263