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/captcha/modules/jcaptcha/service/sound/AudioConcat.java

Rule Violation Ligne
ClassNamingConventions The utility class name 'AudioConcat' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 53127

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/sound/filter/EchoFilter.java

Rule Violation Ligne
AvoidUsingShortType Do not use the short type 116
AvoidUsingShortType Do not use the short type 117
AvoidUsingShortType Do not use the short type 135
AvoidUsingShortType Do not use the short type 136

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/sound/filter/SoundFilter.java

Rule Violation Ligne
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 5457
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 6568
AvoidUsingShortType Do not use the short type 93
AvoidUsingShortType Do not use the short type 109
AvoidUsingShortType Do not use the short type 125
AvoidUsingShortType Do not use the short type 141

Priority 2

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/JCaptchaEngineService.java

Rule Violation Ligne
GuardLogStatement Logger calls should be surrounded by log level guards. 70

Priority 3

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/JCaptchaEngineService.java

Rule Violation Ligne
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 80

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/QuartzBufferedManageableCaptchaService.java

Rule Violation Ligne
MissingOverride The method 'generateAndStoreCaptcha(Locale, String)' is missing an @Override annotation. 7783

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/SimpleBufferedManageableCaptchaService.java

Rule Violation Ligne
MissingOverride The method 'generateAndStoreCaptcha(Locale, String)' is missing an @Override annotation. 7783

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/engine/image/imagedeformation/LuteceImageDeformationByFilters.java

Rule Violation Ligne
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 55

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/image/ImageCaptchaFilter.java

Rule Violation Ligne
MissingOverride The method 'init(FilterConfig)' is missing an @Override annotation. 7782
MissingOverride The method 'doFilter(ServletRequest, ServletResponse, FilterChain)' is missing an @Override annotation. 98156
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 105
MissingOverride The method 'destroy()' is missing an @Override annotation. 161164

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/image/LuteceGimpyImage.java

Rule Violation Ligne
ImmutableField Private field '_response' could be made final; it is only initialized in the declaration or constructor. 60
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the LuteceGimpyImage constructor if you want a default access modifier 7175
MissingOverride The method 'validateResponse(Object)' is missing an @Override annotation. 8588

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/image/LuteceGimpyImageFactory.java

Rule Violation Ligne
ImmutableField Private field '_myRandom' could be made final; it is only initialized in the declaration or constructor. 55
ImmutableField Private field '_wordToImage' could be made final; it is only initialized in the declaration or constructor. 56
ImmutableField Private field '_wordGenerator' could be made final; it is only initialized in the declaration or constructor. 57
CallSuperInConstructor It is a good practice to call super() in a constructor 6680
MissingOverride The method 'getImageCaptcha()' is missing an @Override annotation. 8790
MissingOverride The method 'getImageCaptcha(Locale)' is missing an @Override annotation. 118139
AvoidCatchingThrowable A catch statement should never catch throwable since it includes errors. 131
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 136
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'captcha' 138
ConfusingTernary Avoid if (x != y) ..; else ..; 149

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/sound/AudioConcat.java

Rule Violation Ligne
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 72
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 82

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/sound/LuteceBackgroundSoundMixerConfigurator.java

Rule Violation Ligne
ImmutableField Private field '_attenuationValue' could be made final; it is only initialized in the declaration or constructor. 53
ImmutableField Private field '_backgroundSoundFiles' could be made final; it is only initialized in the declaration or constructor. 54
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 68
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 7179

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/sound/LuteceGimpySoundFactory.java

Rule Violation Ligne
ImmutableField Private field '_wordGenerator' could be made final; it is only initialized in the declaration or constructor. 63
ImmutableField Private field '_word2Sound' could be made final; it is only initialized in the declaration or constructor. 64
ImmutableField Private field '_myRandom' could be made final; it is only initialized in the declaration or constructor. 65
CallSuperInConstructor It is a good practice to call super() in a constructor 7589
CallSuperInConstructor It is a good practice to call super() in a constructor 101120
MissingOverride The method 'getSoundCaptcha()' is missing an @Override annotation. 143150
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 145
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'soundCaptcha' 149
MissingOverride The method 'getSoundCaptcha(Locale)' is missing an @Override annotation. 157164
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 159
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'soundCaptcha' 163
ConfusingTernary Avoid if (x != y) ..; else ..; 185

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/sound/LuteceSoundConfigurator.java

Rule Violation Ligne
DataClass The class 'LuteceSoundConfigurator' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=5, WMC=6) 43109
ImmutableField Private field '_location' could be made final; it is only initialized in the declaration or constructor. 46
ImmutableField Private field '_name' could be made final; it is only initialized in the declaration or constructor. 47
ImmutableField Private field '_pitch' could be made final; it is only initialized in the declaration or constructor. 48
ImmutableField Private field '_rate' could be made final; it is only initialized in the declaration or constructor. 49
ImmutableField Private field '_volume' could be made final; it is only initialized in the declaration or constructor. 50
MissingOverride The method 'getLocation()' is missing an @Override annotation. 7376
MissingOverride The method 'getName()' is missing an @Override annotation. 8184
MissingOverride The method 'getPitch()' is missing an @Override annotation. 8992
MissingOverride The method 'getRate()' is missing an @Override annotation. 97100
MissingOverride The method 'getVolume()' is missing an @Override annotation. 105108

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/sound/LuteceWordToSound.java

Rule Violation Ligne
UseUnderscoresInNumericLiterals Number 22050 should separate every third digit with an underscore 62
ImmutableField Private field '_minAcceptedWordLength' could be made final; it is only initialized in the declaration or constructor. 63
ImmutableField Private field '_maxAcceptedWordLength' could be made final; it is only initialized in the declaration or constructor. 64
ImmutableField Private field '_minWhiteSoundNumber' could be made final; it is only initialized in the declaration or constructor. 65
ImmutableField Private field '_maxWhiteSoundNumber' could be made final; it is only initialized in the declaration or constructor. 66
ImmutableField Private field '_backgroundSoundMixerConfigurator' could be made final; it is only initialized in the declaration or constructor. 67
ImmutableField Private field '_filters' could be made final; it is only initialized in the declaration or constructor. 68
ArrayIsStoredDirectly The user-supplied array 'filters' is stored directly. 88
MissingOverride The method 'getSound(String)' is missing an @Override annotation. 104107
MissingOverride The method 'getSound(String, Locale)' is missing an @Override annotation. 116170
ConfusingTernary Avoid if (x != y) ..; else ..; 128135
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 164
MissingOverride The method 'getMaxAcceptedWordLenght()' is missing an @Override annotation. 175178
MissingOverride The method 'getMaxAcceptedWordLength()' is missing an @Override annotation. 183186
MissingOverride The method 'getMinAcceptedWordLenght()' is missing an @Override annotation. 191194
MissingOverride The method 'getMinAcceptedWordLength()' is missing an @Override annotation. 199202
MissingOverride The method 'addEffects(AudioInputStream)' is missing an @Override annotation. 209249
ShortVariable Avoid variables with short names like is 213
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 230
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 242
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 264

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/sound/MixingFloatAudioInputStream.java

Rule Violation Ligne
ImmutableField Private field '_audioInputStreamArray' could be made final; it is only initialized in the declaration or constructor. 53
ImmutableField Private field '_attenuationPerStream' could be made final; it is only initialized in the declaration or constructor. 59
ImmutableField Private field '_attenuationFactor' could be made final; it is only initialized in the declaration or constructor. 65
ImmutableField Private field '_mixBuffer' could be made final; it is only initialized in the declaration or constructor. 67
ImmutableField Private field '_readBuffer' could be made final; it is only initialized in the declaration or constructor. 68
MissingOverride The method 'getFrameLength()' is missing an @Override annotation. 123142
MissingOverride The method 'read()' is missing an @Override annotation. 149160
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 154
CyclomaticComplexity The method 'read(byte, int, int)' has a cyclomatic complexity of 12. 174275
ExcessiveMethodLength Avoid really long methods. 174275
MissingOverride The method 'read(byte, int, int)' is missing an @Override annotation. 174275
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 238
MissingOverride The method 'skip(long)' is missing an @Override annotation. 287295
CheckSkipResult Check the value returned by the skip() method of an InputStream to see if the requested number of bytes has been skipped. 291
MissingOverride The method 'available()' is missing an @Override annotation. 304314
MissingOverride The method 'close()' is missing an @Override annotation. 320323
MissingOverride The method 'mark(int)' is missing an @Override annotation. 331337
MissingOverride The method 'reset()' is missing an @Override annotation. 345351
MissingOverride The method 'markSupported()' is missing an @Override annotation. 358369

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/sound/SequenceAudioInputStream.java

Rule Violation Ligne
ImmutableField Private field '_audioInputStreamList' could be made final; it is only initialized in the declaration or constructor. 54
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 67
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'bAnotherStreamAvailable' 90
MissingOverride The method 'getFrameLength()' is missing an @Override annotation. 96117
MissingOverride The method 'read()' is missing an @Override annotation. 124158
MissingOverride The method 'read(byte, int, int)' is missing an @Override annotation. 171205
MissingOverride The method 'available()' is missing an @Override annotation. 212215

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/sound/SoundCaptchaFilter.java

Rule Violation Ligne
MissingOverride The method 'init(FilterConfig)' is missing an @Override annotation. 8183
UncommentedEmptyMethodBody Document empty method body 8283
MissingOverride The method 'doFilter(ServletRequest, ServletResponse, FilterChain)' is missing an @Override annotation. 99149
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 106
AddEmptyString Do not add empty strings 140
MissingOverride The method 'destroy()' is missing an @Override annotation. 154157

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/sound/filter/EchoFilter.java

Rule Violation Ligne
ImmutableField Private field '_decay' could be made final; it is only initialized in the declaration or constructor. 45
CallSuperInConstructor It is a good practice to call super() in a constructor 5964
MissingOverride The method 'getRemainingSize()' is missing an @Override annotation. 7281
MissingOverride The method 'reset()' is missing an @Override annotation. 8694
MissingOverride The method 'filter(byte, int, int, int)' is missing an @Override annotation. 109148

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/sound/filter/FilteredSoundStream.java

Rule Violation Ligne
ImmutableField Private field '_soundFilter' could be made final; it is only initialized in the declaration or constructor. 49
ImmutableField Private field '_sampleSizeInBits' could be made final; it is only initialized in the declaration or constructor. 51
ShortVariable Avoid variables with short names like in 61
MissingOverride The method 'read(byte, int, int)' is missing an @Override annotation. 82127

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/sound/filter/PitchFilter.java

Rule Violation Ligne
DataClass The class 'PitchFilter' is suspected to be a Data Class (WOC=28.571%, NOPA=0, NOAM=4, WMC=7) 43136
CallSuperInConstructor It is a good practice to call super() in a constructor 5761
MissingOverride The method 'filter(byte, int, int, int)' is missing an @Override annotation. 7578
MissingOverride The method 'getAudioFormat(AudioInputStream)' is missing an @Override annotation. 8795

Fichiers

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/JCaptchaEngineService.java

Rule Violation Priority Ligne
GuardLogStatement Logger calls should be surrounded by log level guards. 2 70
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 80

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/QuartzBufferedManageableCaptchaService.java

Rule Violation Priority Ligne
MissingOverride The method 'generateAndStoreCaptcha(Locale, String)' is missing an @Override annotation. 3 7783

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/SimpleBufferedManageableCaptchaService.java

Rule Violation Priority Ligne
MissingOverride The method 'generateAndStoreCaptcha(Locale, String)' is missing an @Override annotation. 3 7783

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/engine/image/imagedeformation/LuteceImageDeformationByFilters.java

Rule Violation Priority Ligne
OptimizableToArrayCall This call to Collection.toArray() may be optimizable 3 55

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/image/ImageCaptchaFilter.java

Rule Violation Priority Ligne
MissingOverride The method 'init(FilterConfig)' is missing an @Override annotation. 3 7782
MissingOverride The method 'doFilter(ServletRequest, ServletResponse, FilterChain)' is missing an @Override annotation. 3 98156
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 105
MissingOverride The method 'destroy()' is missing an @Override annotation. 3 161164

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/image/LuteceGimpyImage.java

Rule Violation Priority Ligne
ImmutableField Private field '_response' could be made final; it is only initialized in the declaration or constructor. 3 60
CommentDefaultAccessModifier To avoid mistakes add a comment at the beginning of the LuteceGimpyImage constructor if you want a default access modifier 3 7175
MissingOverride The method 'validateResponse(Object)' is missing an @Override annotation. 3 8588

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/image/LuteceGimpyImageFactory.java

Rule Violation Priority Ligne
ImmutableField Private field '_myRandom' could be made final; it is only initialized in the declaration or constructor. 3 55
ImmutableField Private field '_wordToImage' could be made final; it is only initialized in the declaration or constructor. 3 56
ImmutableField Private field '_wordGenerator' could be made final; it is only initialized in the declaration or constructor. 3 57
CallSuperInConstructor It is a good practice to call super() in a constructor 3 6680
MissingOverride The method 'getImageCaptcha()' is missing an @Override annotation. 3 8790
MissingOverride The method 'getImageCaptcha(Locale)' is missing an @Override annotation. 3 118139
AvoidCatchingThrowable A catch statement should never catch throwable since it includes errors. 3 131
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 136
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'captcha' 3 138
ConfusingTernary Avoid if (x != y) ..; else ..; 3 149

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/sound/AudioConcat.java

Rule Violation Priority Ligne
ClassNamingConventions The utility class name 'AudioConcat' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 1 53127
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 72
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 82

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/sound/LuteceBackgroundSoundMixerConfigurator.java

Rule Violation Priority Ligne
ImmutableField Private field '_attenuationValue' could be made final; it is only initialized in the declaration or constructor. 3 53
ImmutableField Private field '_backgroundSoundFiles' could be made final; it is only initialized in the declaration or constructor. 3 54
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 68
ForLoopCanBeForeach This for loop can be replaced by a foreach loop 3 7179

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/sound/LuteceGimpySoundFactory.java

Rule Violation Priority Ligne
ImmutableField Private field '_wordGenerator' could be made final; it is only initialized in the declaration or constructor. 3 63
ImmutableField Private field '_word2Sound' could be made final; it is only initialized in the declaration or constructor. 3 64
ImmutableField Private field '_myRandom' could be made final; it is only initialized in the declaration or constructor. 3 65
CallSuperInConstructor It is a good practice to call super() in a constructor 3 7589
CallSuperInConstructor It is a good practice to call super() in a constructor 3 101120
MissingOverride The method 'getSoundCaptcha()' is missing an @Override annotation. 3 143150
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 145
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'soundCaptcha' 3 149
MissingOverride The method 'getSoundCaptcha(Locale)' is missing an @Override annotation. 3 157164
UseLocaleWithCaseConversions When doing a String.toLowerCase()/toUpperCase() call, use a Locale 3 159
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'soundCaptcha' 3 163
ConfusingTernary Avoid if (x != y) ..; else ..; 3 185

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/sound/LuteceSoundConfigurator.java

Rule Violation Priority Ligne
DataClass The class 'LuteceSoundConfigurator' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=5, WMC=6) 3 43109
ImmutableField Private field '_location' could be made final; it is only initialized in the declaration or constructor. 3 46
ImmutableField Private field '_name' could be made final; it is only initialized in the declaration or constructor. 3 47
ImmutableField Private field '_pitch' could be made final; it is only initialized in the declaration or constructor. 3 48
ImmutableField Private field '_rate' could be made final; it is only initialized in the declaration or constructor. 3 49
ImmutableField Private field '_volume' could be made final; it is only initialized in the declaration or constructor. 3 50
MissingOverride The method 'getLocation()' is missing an @Override annotation. 3 7376
MissingOverride The method 'getName()' is missing an @Override annotation. 3 8184
MissingOverride The method 'getPitch()' is missing an @Override annotation. 3 8992
MissingOverride The method 'getRate()' is missing an @Override annotation. 3 97100
MissingOverride The method 'getVolume()' is missing an @Override annotation. 3 105108

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/sound/LuteceWordToSound.java

Rule Violation Priority Ligne
UseUnderscoresInNumericLiterals Number 22050 should separate every third digit with an underscore 3 62
ImmutableField Private field '_minAcceptedWordLength' could be made final; it is only initialized in the declaration or constructor. 3 63
ImmutableField Private field '_maxAcceptedWordLength' could be made final; it is only initialized in the declaration or constructor. 3 64
ImmutableField Private field '_minWhiteSoundNumber' could be made final; it is only initialized in the declaration or constructor. 3 65
ImmutableField Private field '_maxWhiteSoundNumber' could be made final; it is only initialized in the declaration or constructor. 3 66
ImmutableField Private field '_backgroundSoundMixerConfigurator' could be made final; it is only initialized in the declaration or constructor. 3 67
ImmutableField Private field '_filters' could be made final; it is only initialized in the declaration or constructor. 3 68
ArrayIsStoredDirectly The user-supplied array 'filters' is stored directly. 3 88
MissingOverride The method 'getSound(String)' is missing an @Override annotation. 3 104107
MissingOverride The method 'getSound(String, Locale)' is missing an @Override annotation. 3 116170
ConfusingTernary Avoid if (x != y) ..; else ..; 3 128135
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 164
MissingOverride The method 'getMaxAcceptedWordLenght()' is missing an @Override annotation. 3 175178
MissingOverride The method 'getMaxAcceptedWordLength()' is missing an @Override annotation. 3 183186
MissingOverride The method 'getMinAcceptedWordLenght()' is missing an @Override annotation. 3 191194
MissingOverride The method 'getMinAcceptedWordLength()' is missing an @Override annotation. 3 199202
MissingOverride The method 'addEffects(AudioInputStream)' is missing an @Override annotation. 3 209249
ShortVariable Avoid variables with short names like is 3 213
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 230
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 242
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 264

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/sound/MixingFloatAudioInputStream.java

Rule Violation Priority Ligne
ImmutableField Private field '_audioInputStreamArray' could be made final; it is only initialized in the declaration or constructor. 3 53
ImmutableField Private field '_attenuationPerStream' could be made final; it is only initialized in the declaration or constructor. 3 59
ImmutableField Private field '_attenuationFactor' could be made final; it is only initialized in the declaration or constructor. 3 65
ImmutableField Private field '_mixBuffer' could be made final; it is only initialized in the declaration or constructor. 3 67
ImmutableField Private field '_readBuffer' could be made final; it is only initialized in the declaration or constructor. 3 68
MissingOverride The method 'getFrameLength()' is missing an @Override annotation. 3 123142
MissingOverride The method 'read()' is missing an @Override annotation. 3 149160
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 154
CyclomaticComplexity The method 'read(byte, int, int)' has a cyclomatic complexity of 12. 3 174275
ExcessiveMethodLength Avoid really long methods. 3 174275
MissingOverride The method 'read(byte, int, int)' is missing an @Override annotation. 3 174275
AvoidLiteralsInIfCondition Avoid using Literals in Conditional Statements 3 238
MissingOverride The method 'skip(long)' is missing an @Override annotation. 3 287295
CheckSkipResult Check the value returned by the skip() method of an InputStream to see if the requested number of bytes has been skipped. 3 291
MissingOverride The method 'available()' is missing an @Override annotation. 3 304314
MissingOverride The method 'close()' is missing an @Override annotation. 3 320323
MissingOverride The method 'mark(int)' is missing an @Override annotation. 3 331337
MissingOverride The method 'reset()' is missing an @Override annotation. 3 345351
MissingOverride The method 'markSupported()' is missing an @Override annotation. 3 358369

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/sound/SequenceAudioInputStream.java

Rule Violation Priority Ligne
ImmutableField Private field '_audioInputStreamList' could be made final; it is only initialized in the declaration or constructor. 3 54
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 67
UnnecessaryLocalBeforeReturn Consider simply returning the value vs storing it in local variable 'bAnotherStreamAvailable' 3 90
MissingOverride The method 'getFrameLength()' is missing an @Override annotation. 3 96117
MissingOverride The method 'read()' is missing an @Override annotation. 3 124158
MissingOverride The method 'read(byte, int, int)' is missing an @Override annotation. 3 171205
MissingOverride The method 'available()' is missing an @Override annotation. 3 212215

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/sound/SoundCaptchaFilter.java

Rule Violation Priority Ligne
MissingOverride The method 'init(FilterConfig)' is missing an @Override annotation. 3 8183
UncommentedEmptyMethodBody Document empty method body 3 8283
MissingOverride The method 'doFilter(ServletRequest, ServletResponse, FilterChain)' is missing an @Override annotation. 3 99149
PrematureDeclaration Avoid declaring a variable if it is unreferenced before a possible exit point. 3 106
AddEmptyString Do not add empty strings 3 140
MissingOverride The method 'destroy()' is missing an @Override annotation. 3 154157

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/sound/filter/EchoFilter.java

Rule Violation Priority Ligne
ImmutableField Private field '_decay' could be made final; it is only initialized in the declaration or constructor. 3 45
CallSuperInConstructor It is a good practice to call super() in a constructor 3 5964
MissingOverride The method 'getRemainingSize()' is missing an @Override annotation. 3 7281
MissingOverride The method 'reset()' is missing an @Override annotation. 3 8694
MissingOverride The method 'filter(byte, int, int, int)' is missing an @Override annotation. 3 109148
AvoidUsingShortType Do not use the short type 1 116
AvoidUsingShortType Do not use the short type 1 117
AvoidUsingShortType Do not use the short type 1 135
AvoidUsingShortType Do not use the short type 1 136

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/sound/filter/FilteredSoundStream.java

Rule Violation Priority Ligne
ImmutableField Private field '_soundFilter' could be made final; it is only initialized in the declaration or constructor. 3 49
ImmutableField Private field '_sampleSizeInBits' could be made final; it is only initialized in the declaration or constructor. 3 51
ShortVariable Avoid variables with short names like in 3 61
MissingOverride The method 'read(byte, int, int)' is missing an @Override annotation. 3 82127

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/sound/filter/PitchFilter.java

Rule Violation Priority Ligne
DataClass The class 'PitchFilter' is suspected to be a Data Class (WOC=28.571%, NOPA=0, NOAM=4, WMC=7) 3 43136
CallSuperInConstructor It is a good practice to call super() in a constructor 3 5761
MissingOverride The method 'filter(byte, int, int, int)' is missing an @Override annotation. 3 7578
MissingOverride The method 'getAudioFormat(AudioInputStream)' is missing an @Override annotation. 3 8795

fr/paris/lutece/plugins/captcha/modules/jcaptcha/service/sound/filter/SoundFilter.java

Rule Violation Priority Ligne
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 1 5457
EmptyMethodInAbstractClassShouldBeAbstract An empty method in an abstract class should be abstract instead 1 6568
AvoidUsingShortType Do not use the short type 1 93
AvoidUsingShortType Do not use the short type 1 109
AvoidUsingShortType Do not use the short type 1 125
AvoidUsingShortType Do not use the short type 1 141