Checkstyle Results

The following document contains the results of Checkstyle.

Summary

FilesInfosWarningsErrors
3000388

Files

FilesIWE
himock/HiMock.java 001
himock/HiMock.java 0076
himock/core/ClassMockObjectMaker.java 0042
himock/core/IMockObjectMaker.java 001
himock/core/IMockObjectMaker.java 003
himock/core/InterfaceMockObjectMaker.java 0021
himock/core/MockBehavior.java 001
himock/core/MockBehavior.java 0053
himock/core/exception/CannotMockInnerOrAnonymousClassException.java 008
himock/core/exception/ExpertedInvocationException.java 0035
himock/core/exception/MethodReturnTypeMismatchException.java 0024
himock/core/exception/MockClassNeedCglibException.java 005
himock/core/exception/MockedClassNeedDefaultConstructorException.java 0018
himock/core/exception/NotImplementedMethodException.java 001
himock/core/exception/NotImplementedMethodException.java 008
himock/core/exception/package.html 001
himock/core/package.html 001
himock/package.html 001
himock/util/ClassUtil.java 001
himock/util/ClassUtil.java 0068
himock/util/NoSuchMethodRuntimeException.java 0018
himock/util/package.html 001

himock/HiMock.java

ErrorLine
Error File does not end with a newline. 0

himock/HiMock.java

ErrorLine
Error Line does not match expected header line of 'chen56'. 1
Error First sentence should end with a period. 16
Error Line has trailing spaces. 18
Error Line has trailing spaces. 21
Error Missing a Javadoc comment. 22
Error '=' is not preceded with whitespace. 22
Error Line has trailing spaces. 23
Error Missing a Javadoc comment. 24
Error '{' is not followed by whitespace. 24
Error '}' is not preceded with whitespace. 24
Error Line has trailing spaces. 25
Error Method 'mock' is not designed for extension - needs to be abstract, final or empty. 26
Error Missing a Javadoc comment. 26
Error Parameter mockedType should be final. 26
Error Parameter mocker should be final. 26
Error Line contains a tab character. 27
Error Line has trailing spaces. 28
Error Line contains a tab character. 28
Error Line contains a tab character. 29
Error ',' is not followed by whitespace. 29
Error Line contains a tab character. 30
Error 'if' is not followed by whitespace. 31
Error '{' is not preceded with whitespace. 31
Error Line contains a tab character. 32
Error Line has trailing spaces. 34
Error Line has trailing spaces. 36
Error Line contains a tab character. 37
Error Missing a Javadoc comment. 39
Error Parameter mockedType should be final. 39
Error Parameter mocker should be final. 39
Error 'if' construct must use '{}'s. 40
Error 'if' is not followed by whitespace. 40
Error '==' is not preceded with whitespace. 40
Error '==' is not followed by whitespace. 40
Error Line contains a tab character. 41
Error 'if' construct must use '{}'s. 42
Error Line contains a tab character. 42
Error 'if' is not followed by whitespace. 42
Error '==' is not preceded with whitespace. 42
Error '==' is not followed by whitespace. 42
Error Line contains a tab character. 43
Error Missing a Javadoc comment. 45
Error Line has trailing spaces. 46
Error Line contains a tab character. 46
Error 'try' is not followed by whitespace. 46
Error '{' is not preceded with whitespace. 46
Error Line has trailing spaces. 47
Error Line contains a tab character. 47
Error Line contains a tab character. 48
Error 'catch' is not preceded with whitespace. 48
Error '}' is not followed by whitespace. 48
Error 'catch' is not followed by whitespace. 48
Error '{' is not preceded with whitespace. 48
Error Line is longer than 80 characters. 49
Error Line contains a tab character. 49
Error ',' is not followed by whitespace. 49
Error Line contains a tab character. 50
Error Line contains a tab character. 51
Error Line has trailing spaces. 52
Error Method 'verify' is not designed for extension - needs to be abstract, final or empty. 53
Error Missing a Javadoc comment. 53
Error '{' is not preceded with whitespace. 53
Error ',' is not followed by whitespace. 55
Error '>' is not preceded with whitespace. 55
Error '>' is not followed by whitespace. 55
Error Line has trailing spaces. 56
Error 'for' construct must use '{}'s. 57
Error 'for' is not followed by whitespace. 57
Error '=' is not preceded with whitespace. 57
Error '=' is not followed by whitespace. 57
Error ';' is not followed by whitespace. 57
Error '<' is not preceded with whitespace. 57
Error '<' is not followed by whitespace. 57
Error ';' is not followed by whitespace. 57
Error Line contains a tab character. 58
Error 'cast' is not followed by whitespace. 58

himock/core/ClassMockObjectMaker.java

ErrorLine
Error Line does not match expected header line of 'chen56'. 1
Error '{' is not preceded with whitespace. 17
Error Missing a Javadoc comment. 18
Error Line contains a tab character. 19
Error Missing a Javadoc comment. 19
Error Parameter mockInvocationer should be final. 19
Error Line contains a tab character. 20
Error Line has trailing spaces. 21
Error Line contains a tab character. 21
Error Line contains a tab character. 22
Error Line has trailing spaces. 23
Error Line contains a tab character. 23
Error Line contains a tab character. 24
Error 'if' is not followed by whitespace. 24
Error '{' is not preceded with whitespace. 24
Error Line contains a tab character. 25
Error Line contains a tab character. 26
Error Line has trailing spaces. 27
Error Line has trailing spaces. 28
Error Line contains a tab character. 28
Error Line has trailing spaces. 29
Error Line contains a tab character. 29
Error 'if' construct must use '{}'s. 30
Error Line contains a tab character. 30
Error 'if' is not followed by whitespace. 30
Error Line contains a tab character. 31
Error Line has trailing spaces. 32
Error Line contains a tab character. 32
Error '=' is not preceded with whitespace. 33
Error '=' is not followed by whitespace. 33
Error Line has trailing spaces. 34
Error Line contains a tab character. 34
Error Method 'mock' is not designed for extension - needs to be abstract, final or empty. 36
Error Missing a Javadoc comment. 36
Error Line is longer than 80 characters. 37
Error Missing a Javadoc comment. 39
Error Missing a Javadoc comment. 40
Error Parameter obj should be final. 40
Error Parameter method should be final. 40
Error Parameter args should be final. 41
Error Parameter proxy should be final. 41
Error '{' is not preceded with whitespace. 41

himock/core/IMockObjectMaker.java

ErrorLine
Error File does not end with a newline. 0

himock/core/IMockObjectMaker.java

ErrorLine
Error Line does not match expected header line of 'chen56'. 1
Error First sentence should end with a period. 10
Error Expected an @return tag. 13

himock/core/InterfaceMockObjectMaker.java

ErrorLine
Error Line does not match expected header line of 'chen56'. 1
Error '{' is not preceded with whitespace. 13
Error Missing a Javadoc comment. 14
Error Line contains a tab character. 15
Error Missing a Javadoc comment. 15
Error Parameter mockInvocationer should be final. 15
Error Line contains a tab character. 16
Error '=' is not preceded with whitespace. 16
Error '=' is not followed by whitespace. 16
Error Line has trailing spaces. 17
Error Line contains a tab character. 17
Error Method 'mock' is not designed for extension - needs to be abstract, final or empty. 18
Error Missing a Javadoc comment. 18
Error Missing a Javadoc comment. 23
Error '{' is not preceded with whitespace. 23
Error Line is longer than 80 characters. 25
Error Line is longer than 80 characters. 27
Error Missing a Javadoc comment. 27
Error Parameter proxy should be final. 27
Error Parameter method should be final. 27
Error Parameter args should be final. 27

himock/core/MockBehavior.java

ErrorLine
Error File does not end with a newline. 0

himock/core/MockBehavior.java

ErrorLine
Error Line does not match expected header line of 'chen56'. 1
Error Line contains a tab character. 19
Error Missing a Javadoc comment. 19
Error Variable 'fMockedType' must be private and have accessor methods. 19
Error Missing a Javadoc comment. 20
Error Missing a Javadoc comment. 21
Error Line has trailing spaces. 22
Error Missing a Javadoc comment. 23
Error Parameter mockedType should be final. 23
Error Parameter mocker should be final. 23
Error '{' is not preceded with whitespace. 23
Error '=' is not preceded with whitespace. 24
Error '=' is not followed by whitespace. 24
Error '=' is not preceded with whitespace. 25
Error '=' is not followed by whitespace. 25
Error Line is longer than 80 characters. 26
Error Line contains a tab character. 26
Error Method 'invoke' is not designed for extension - needs to be abstract, final or empty. 28
Error Missing a Javadoc comment. 28
Error Parameter mockedMethod should be final. 28
Error ',' is not followed by whitespace. 28
Error Parameter args should be final. 28
Error '{' is not preceded with whitespace. 28
Error Line has trailing spaces. 30
Error Line is longer than 80 characters. 31
Error ',' is not followed by whitespace. 31
Error Line contains a tab character. 33
Error Line contains a tab character. 34
Error Line is longer than 80 characters. 37
Error Missing a Javadoc comment. 37
Error Parameter mockedMethod should be final. 37
Error Redundant throws: 'NotImplementedMethodException' is unchecked exception. 37
Error 'if' construct must use '{}'s. 38
Error Line is longer than 80 characters. 38
Error 'if' is not followed by whitespace. 38
Error ',' is not followed by whitespace. 38
Error Line is longer than 80 characters. 40
Error ',' is not followed by whitespace. 40
Error 'if' construct must use '{}'s. 41
Error 'if' is not followed by whitespace. 41
Error ')' is preceded with whitespace. 41
Error ',' is not followed by whitespace. 42
Error ')' is preceded with whitespace. 42
Error Line contains a tab character. 45
Error Method 'verify' is not designed for extension - needs to be abstract, final or empty. 45
Error Missing a Javadoc comment. 45
Error 'if' construct must use '{}'s. 46
Error Line contains a tab character. 46
Error 'if' is not followed by whitespace. 46
Error Line is longer than 80 characters. 47
Error Line contains a tab character. 47
Error 'cast' is not followed by whitespace. 47
Error Line contains a tab character. 48

himock/core/exception/CannotMockInnerOrAnonymousClassException.java

ErrorLine
Error Line does not match expected header line of 'chen56'. 1
Error Missing a Javadoc comment. 10
Error Variable 'fMockedClass' must be private and have accessor methods. 10
Error Line is longer than 80 characters. 12
Error Missing a Javadoc comment. 12
Error Parameter mockedInnerOrAnonymousClass should be final. 12
Error Line has trailing spaces. 17
Error Line has trailing spaces. 18

himock/core/exception/ExpertedInvocationException.java

ErrorLine
Error Line does not match expected header line of 'chen56'. 1
Error Line contains a tab character. 12
Error Missing a Javadoc comment. 12
Error Variable 'fUninvokedMethods' must be private and have accessor methods. 12
Error Line contains a tab character. 14
Error Missing a Javadoc comment. 14
Error Parameter fUninvokedMethods should be final. 14
Error 'fUninvokedMethods' hides a field. 14
Error Line is longer than 80 characters. 15
Error Line contains a tab character. 15
Error '+' is not preceded with whitespace. 15
Error '+' is not followed by whitespace. 15
Error Line contains a tab character. 16
Error '=' is not preceded with whitespace. 16
Error '=' is not followed by whitespace. 16
Error Line contains a tab character. 17
Error Line contains a tab character. 18
Error Missing a Javadoc comment. 18
Error Parameter methods should be final. 18
Error '{' is not preceded with whitespace. 18
Error Line contains a tab character. 19
Error Line contains a tab character. 20
Error 'for' is not followed by whitespace. 20
Error '=' is not preceded with whitespace. 20
Error '=' is not followed by whitespace. 20
Error ';' is not followed by whitespace. 20
Error '<' is not preceded with whitespace. 20
Error '<' is not followed by whitespace. 20
Error ';' is not followed by whitespace. 20
Error '{' is not preceded with whitespace. 20
Error Line contains a tab character. 21
Error Line contains a tab character. 22
Error Line contains a tab character. 23
Error Line contains a tab character. 24
Error Line contains a tab character. 25

himock/core/exception/MethodReturnTypeMismatchException.java

ErrorLine
Error Line does not match expected header line of 'chen56'. 1
Error Line contains a tab character. 12
Error Missing a Javadoc comment. 12
Error Variable 'fMockedMethod' must be private and have accessor methods. 12
Error Line contains a tab character. 13
Error Missing a Javadoc comment. 13
Error Variable 'fMethodOfmocker' must be private and have accessor methods. 13
Error Line is longer than 80 characters. 17
Error Parameter mockedMethod should be final. 17
Error Expected @param tag for 'mockedMethod'. 17
Error Parameter methodOfmocker should be final. 17
Error Expected @param tag for 'methodOfmocker'. 17
Error Line is longer than 80 characters. 18
Error '+' is not preceded with whitespace. 18
Error '+' is not followed by whitespace. 18
Error '+' is not followed by whitespace. 19
Error '+' is not preceded with whitespace. 19
Error '+' is not followed by whitespace. 19
Error Line contains a tab character. 20
Error '=' is not preceded with whitespace. 20
Error '=' is not followed by whitespace. 20
Error Line contains a tab character. 21
Error '=' is not preceded with whitespace. 21
Error '=' is not followed by whitespace. 21

himock/core/exception/MockClassNeedCglibException.java

ErrorLine
Error Line does not match expected header line of 'chen56'. 1
Error Parameter message should be final. 14
Error Expected @param tag for 'message'. 14
Error Parameter cause should be final. 14
Error Expected @param tag for 'cause'. 14

himock/core/exception/MockedClassNeedDefaultConstructorException.java

ErrorLine
Error Line does not match expected header line of 'chen56'. 1
Error Line is longer than 80 characters. 9
Error Line contains a tab character. 10
Error Missing a Javadoc comment. 10
Error Variable 'fMockedClazz' must be private and have accessor methods. 10
Error Line contains a tab character. 11
Error Line contains a tab character. 12
Error Line contains a tab character. 13
Error Line contains a tab character. 14
Error Parameter mockedClazz should be final. 14
Error Expected @param tag for 'mockedClazz'. 14
Error Line contains a tab character. 15
Error '+' is not preceded with whitespace. 15
Error '+' is not followed by whitespace. 15
Error Line contains a tab character. 16
Error '=' is not preceded with whitespace. 16
Error '=' is not followed by whitespace. 16
Error Line contains a tab character. 17

himock/core/exception/NotImplementedMethodException.java

ErrorLine
Error File does not end with a newline. 0

himock/core/exception/NotImplementedMethodException.java

ErrorLine
Error Line does not match expected header line of 'chen56'. 1
Error Line contains a tab character. 12
Error Missing a Javadoc comment. 12
Error Variable 'fMockedMethod' must be private and have accessor methods. 12
Error Missing a Javadoc comment. 13
Error Parameter mockedMethod should be final. 13
Error '=' is not preceded with whitespace. 15
Error '=' is not followed by whitespace. 15

himock/core/exception/package.html

ErrorLine
Error Missing package documentation file.0

himock/core/package.html

ErrorLine
Error Missing package documentation file.0

himock/package.html

ErrorLine
Error Missing package documentation file.0

himock/util/ClassUtil.java

ErrorLine
Error File does not end with a newline. 0

himock/util/ClassUtil.java

ErrorLine
Error Line does not match expected header line of 'chen56'. 1
Error Utility classes should not have a public or default constructor. 12
Error Missing a Javadoc comment. 13
Error Missing a Javadoc comment. 15
Error Parameter clazz should be final. 15
Error Parameter method should be final. 16
Error Line is longer than 80 characters. 18
Error Line is longer than 80 characters. 25
Error Missing a Javadoc comment. 25
Error Parameter clazz should be final. 25
Error Parameter method should be final. 25
Error Line is longer than 80 characters. 27
Error ',' is not followed by whitespace. 27
Error ',' is not followed by whitespace. 29
Error ',' is not followed by whitespace. 31
Error ',' is not followed by whitespace. 31
Error Missing a Javadoc comment. 35
Error Parameter a should be final. 35
Error Parameter b should be final. 35
Error 'if' construct must use '{}'s. 36
Error 'if' is not followed by whitespace. 36
Error '(' is followed by whitespace. 36
Error '(' is followed by whitespace. 36
Error ')' is preceded with whitespace. 36
Error ')' is preceded with whitespace. 36
Error Line has trailing spaces. 38
Error Line has trailing spaces. 41
Error 'if' construct must use '{}'s. 42
Error 'if' is not followed by whitespace. 42
Error '!=' is not preceded with whitespace. 42
Error '!=' is not followed by whitespace. 42
Error Line has trailing spaces. 44
Error 'for' is not followed by whitespace. 45
Error '=' is not preceded with whitespace. 45
Error '=' is not followed by whitespace. 45
Error ';' is not followed by whitespace. 45
Error '<' is not preceded with whitespace. 45
Error '<' is not followed by whitespace. 45
Error ';' is not followed by whitespace. 45
Error '{' is not preceded with whitespace. 45
Error 'if' construct must use '{}'s. 46
Error 'if' is not followed by whitespace. 46
Error Missing a Javadoc comment. 52
Error 'public' modifier out of order with the JLS suggestions. 52
Error Parameter cls should be final. 52
Error Missing a Javadoc comment. 56
Error Parameter clazz should be final. 56
Error '{' is not preceded with whitespace. 56
Error 'if' construct must use '{}'s. 57
Error Line contains a tab character. 57
Error 'if' is not followed by whitespace. 57
Error Line contains a tab character. 58
Error '+' is not preceded with whitespace. 58
Error '+' is not followed by whitespace. 58
Error 'if' construct must use '{}'s. 59
Error Line contains a tab character. 59
Error 'if' is not followed by whitespace. 59
Error Line is longer than 80 characters. 60
Error Line contains a tab character. 60
Error '+' is not preceded with whitespace. 60
Error '+' is not followed by whitespace. 60
Error Line contains a tab character. 61
Error Line contains a tab character. 62
Error Line contains a tab character. 63
Error Line contains a tab character. 64
Error Line contains a tab character. 65
Error Line contains a tab character. 66
Error Line contains a tab character. 67

himock/util/NoSuchMethodRuntimeException.java

ErrorLine
Error Line does not match expected header line of 'chen56'. 1
Error Line contains a tab character. 12
Error Missing a Javadoc comment. 12
Error Variable 'fClazz' must be private and have accessor methods. 12
Error Line contains a tab character. 13
Error Missing a Javadoc comment. 13
Error Variable 'fMethod' must be private and have accessor methods. 13
Error Line is longer than 80 characters. 15
Error Missing a Javadoc comment. 15
Error Parameter clazz should be final. 15
Error Parameter method should be final. 15
Error Parameter cause should be final. 15
Error '+' is not preceded with whitespace. 16
Error '+' is not followed by whitespace. 16
Error '+' is not preceded with whitespace. 16
Error '+' is not followed by whitespace. 16
Error '=' is not preceded with whitespace. 18
Error '=' is not followed by whitespace. 18

himock/util/package.html

ErrorLine
Error Missing package documentation file.0