PMD 5.2.3 Report: Demo Utilities. Generated on 2016-11-14 - 20:24:41


Summary

Files Total
Priority 1: ShowStopper
Priority 2:Critical
Priority 3:Important/Urgent
Priority 4:Low - Change recommended
Priority 5:Low - Change Optional
10 120 0 1 2 5 112

Rules

Rule Violations Severity
[Comments] CommentRequired 56
5
[Comments] CommentSize 49
5
[Design] UseUtilityClass 5
4
[Unnecessary] UselessParentheses 4
5
[Empty Code] EmptyFinallyBlock 2
5
[Design] PreserveStackTrace 1
2
[Code Size] NPathComplexity 1
3
[Empty Code] EmptyCatchBlock 1
5
[Design] SimpleDateFormatNeedsLocale 1
3

Files

File
5
4
3
2
1
com\edurekademo\utilities\GenericComparator.java 37 0 0 0 0
com\edurekademo\tutorial\addressbook\backend\Contact.java 21 0 0 1 0
com\edurekademo\utilities\StringUtilities.java 14 1 1 0 0
com\edurekademo\utilities\CaseInsensitiveComparator.java 13 0 0 0 0
com\edurekademo\utilities\PropertyLoader.java 9 1 1 0 0
com\edurekademo\utilities\PropertyHelper.java 9 1 0 0 0
com\edurekademo\utilities\LoggerStackTraceUtil.java 4 0 0 0 0
com\edurekademo\helper\GenericResourceBundle.java 2 1 0 0 0
com\edurekademo\utilities\HexAsciiConvertor.java 1 1 0 0 0
com\edurekademo\utilities\PrepareTargetMethod.java 2 0 0 0 0

File com\edurekademo\helper\GenericResourceBundle.java

Violation Error Description Line
4
[Design.UseUtilityClass] - All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 6 - 22
5
[Comments.CommentRequired] - headerCommentRequirement Required 6 - 22
5
[Comments.CommentRequired] - publicMethodCommentRequirement Required 7 - 20
Back to top

File com\edurekademo\tutorial\addressbook\backend\Contact.java

Violation Error Description Line
5
[Comments.CommentSize] - Comment is too large: Line too long 12 - 12
5
[Comments.CommentRequired] - fieldCommentRequirement Required 18 - 18
5
[Comments.CommentRequired] - fieldCommentRequirement Required 20 - 20
5
[Comments.CommentRequired] - fieldCommentRequirement Required 21 - 21
5
[Comments.CommentRequired] - fieldCommentRequirement Required 22 - 22
5
[Comments.CommentRequired] - fieldCommentRequirement Required 23 - 23
5
[Comments.CommentRequired] - fieldCommentRequirement Required 24 - 24
5
[Comments.CommentRequired] - publicMethodCommentRequirement Required 26 - 28
5
[Comments.CommentRequired] - publicMethodCommentRequirement Required 30 - 32
5
[Comments.CommentRequired] - publicMethodCommentRequirement Required 34 - 36
5
[Comments.CommentRequired] - publicMethodCommentRequirement Required 38 - 40
5
[Comments.CommentRequired] - publicMethodCommentRequirement Required 42 - 44
5
[Comments.CommentRequired] - publicMethodCommentRequirement Required 46 - 48
5
[Comments.CommentRequired] - publicMethodCommentRequirement Required 50 - 52
5
[Comments.CommentRequired] - publicMethodCommentRequirement Required 54 - 56
5
[Comments.CommentRequired] - publicMethodCommentRequirement Required 58 - 60
5
[Comments.CommentRequired] - publicMethodCommentRequirement Required 62 - 64
5
[Comments.CommentRequired] - publicMethodCommentRequirement Required 66 - 68
5
[Comments.CommentRequired] - publicMethodCommentRequirement Required 70 - 72
5
[Comments.CommentRequired] - publicMethodCommentRequirement Required 75 - 81
2
[Design.PreserveStackTrace] - New exception is thrown in catch block, original stack trace may be lost 79 - 79
5
[Comments.CommentRequired] - publicMethodCommentRequirement Required 84 - 88
Back to top

File com\edurekademo\utilities\CaseInsensitiveComparator.java

Violation Error Description Line
5
[Comments.CommentRequired] - headerCommentRequirement Required 9 - 99
5
[Comments.CommentRequired] - fieldCommentRequirement Required 11 - 11
5
[Comments.CommentRequired] - fieldCommentRequirement Required 12 - 12
5
[Comments.CommentSize] - Comment is too large: Line too long 15 - 15
5
[Comments.CommentRequired] - publicMethodCommentRequirement Required 19 - 23
5
[Comments.CommentSize] - Comment is too large: Line too long 25 - 25
5
[Comments.CommentRequired] - publicMethodCommentRequirement Required 27 - 31
5
[Comments.CommentSize] - Comment is too large: Line too long 33 - 33
5
[Comments.CommentRequired] - publicMethodCommentRequirement Required 37 - 41
5
[Comments.CommentSize] - Comment is too large: Line too long 45 - 45
5
[Comments.CommentRequired] - publicMethodCommentRequirement Required 47 - 72
5
[Comments.CommentSize] - Comment is too large: Line too long 75 - 75
5
[Comments.CommentRequired] - protectedMethodCommentRequirement Required 77 - 97
Back to top

File com\edurekademo\utilities\GenericComparator.java

Violation Error Description Line
5
[Comments.CommentSize] - Comment is too large: Too many lines 8 - 17
5
[Comments.CommentSize] - Comment is too large: Line too long 15 - 15
5
[Comments.CommentRequired] - fieldCommentRequirement Required 21 - 21
5
[Comments.CommentRequired] - fieldCommentRequirement Required 22 - 22
5
[Comments.CommentRequired] - fieldCommentRequirement Required 23 - 23
5
[Comments.CommentRequired] - fieldCommentRequirement Required 24 - 24
5
[Comments.CommentRequired] - fieldCommentRequirement Required 25 - 25
5
[Comments.CommentRequired] - fieldCommentRequirement Required 26 - 26
5
[Comments.CommentRequired] - fieldCommentRequirement Required 27 - 27
5
[Comments.CommentRequired] - fieldCommentRequirement Required 28 - 28
5
[Comments.CommentRequired] - fieldCommentRequirement Required 29 - 29
5
[Comments.CommentRequired] - fieldCommentRequirement Required 30 - 30
5
[Comments.CommentRequired] - fieldCommentRequirement Required 31 - 31
5
[Comments.CommentRequired] - fieldCommentRequirement Required 32 - 32
5
[Comments.CommentRequired] - enumCommentRequirement Required 34 - 34
5
[Comments.CommentRequired] - fieldCommentRequirement Required 36 - 36
5
[Comments.CommentRequired] - fieldCommentRequirement Required 37 - 37
5
[Comments.CommentSize] - Comment is too large: Too many lines 39 - 49
5
[Comments.CommentSize] - Comment is too large: Line too long 48 - 48
5
[Comments.CommentSize] - Comment is too large: Too many lines 57 - 75
5
[Comments.CommentSize] - Comment is too large: Line too long 58 - 58
5
[Comments.CommentSize] - Comment is too large: Line too long 67 - 67
5
[Comments.CommentSize] - Comment is too large: Line too long 68 - 68
5
[Comments.CommentSize] - Comment is too large: Line too long 74 - 74
5
[Comments.CommentSize] - Comment is too large: Too many lines 82 - 100
5
[Comments.CommentSize] - Comment is too large: Line too long 83 - 83
5
[Comments.CommentSize] - Comment is too large: Line too long 92 - 92
5
[Comments.CommentSize] - Comment is too large: Line too long 93 - 93
5
[Comments.CommentSize] - Comment is too large: Line too long 98 - 98
5
[Comments.CommentSize] - Comment is too large: Line too long 99 - 99
5
[Comments.CommentSize] - Comment is too large: Line too long 134 - 134
5
[Comments.CommentSize] - Comment is too large: Line too long 146 - 146
5
[Comments.CommentSize] - Comment is too large: Line too long 148 - 148
5
[Comments.CommentSize] - Comment is too large: Line too long 150 - 150
5
[Comments.CommentSize] - Comment is too large: Too many lines 224 - 232
5
[Comments.CommentSize] - Comment is too large: Too many lines 237 - 245
5
[Comments.CommentSize] - Comment is too large: Line too long 254 - 254
Back to top

File com\edurekademo\utilities\HexAsciiConvertor.java

Violation Error Description Line
4
[Design.UseUtilityClass] - All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 3 - 59
5
[Comments.CommentRequired] - headerCommentRequirement Required 3 - 59
Back to top

File com\edurekademo\utilities\LoggerStackTraceUtil.java

Violation Error Description Line
5
[Comments.CommentRequired] - headerCommentRequirement Required 7 - 59
5
[Comments.CommentRequired] - fieldCommentRequirement Required 9 - 9
5
[Comments.CommentRequired] - fieldCommentRequirement Required 10 - 10
5
[Comments.CommentRequired] - publicMethodCommentRequirement Required 34 - 57
Back to top

File com\edurekademo\utilities\PrepareTargetMethod.java

Violation Error Description Line
5
[Comments.CommentRequired] - headerCommentRequirement Required 3 - 17
5
[Comments.CommentRequired] - fieldCommentRequirement Required 5 - 5
Back to top

File com\edurekademo\utilities\PropertyHelper.java

Violation Error Description Line
5
[Comments.CommentSize] - Comment is too large: Too many lines 8 - 18
5
[Comments.CommentSize] - Comment is too large: Line too long 9 - 9
5
[Comments.CommentSize] - Comment is too large: Line too long 11 - 11
5
[Comments.CommentSize] - Comment is too large: Line too long 12 - 12
5
[Comments.CommentSize] - Comment is too large: Line too long 14 - 14
4
[Design.UseUtilityClass] - All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 20 - 96
5
[Comments.CommentSize] - Comment is too large: Line too long 23 - 23
5
[Empty Code.EmptyFinallyBlock] - Avoid empty finally blocks 57 - 58
5
[Comments.CommentSize] - Comment is too large: Line too long 65 - 65
5
[Empty Code.EmptyFinallyBlock] - Avoid empty finally blocks 82 - 83
Back to top

File com\edurekademo\utilities\PropertyLoader.java

Violation Error Description Line
5
[Comments.CommentSize] - Comment is too large: Too many lines 11 - 27
4
[Design.UseUtilityClass] - All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 30 - 107
5
[Comments.CommentRequired] - fieldCommentRequirement Required 32 - 32
5
[Comments.CommentRequired] - fieldCommentRequirement Required 33 - 33
5
[Comments.CommentRequired] - fieldCommentRequirement Required 34 - 34
3
[Code Size.NPathComplexity] - The method loadProperties() has an NPath complexity of 576. Recommended to have it less than 150 51 - 105
5
[Comments.CommentRequired] - publicMethodCommentRequirement Required 51 - 105
5
[Empty Code.EmptyCatchBlock] - Avoid empty catch blocks 96 - 96
5
[Unnecessary.UselessParentheses] - Useless parentheses. 98 - 98
5
[Comments.CommentSize] - Comment is too large: Line too long 100 - 100
5
[Comments.CommentSize] - Comment is too large: Line too long 101 - 101
Back to top

File com\edurekademo\utilities\StringUtilities.java

Violation Error Description Line
5
[Comments.CommentSize] - Comment is too large: Line too long 17 - 17
4
[Design.UseUtilityClass] - All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 23 - 194
5
[Comments.CommentSize] - Comment is too large: Line too long 36 - 36
5
[Comments.CommentSize] - Comment is too large: Line too long 40 - 40
5
[Comments.CommentSize] - Comment is too large: Line too long 45 - 45
5
[Comments.CommentSize] - Comment is too large: Line too long 82 - 82
5
[Comments.CommentSize] - Comment is too large: Line too long 99 - 99
5
[Comments.CommentSize] - Comment is too large: Line too long 100 - 100
5
[Comments.CommentSize] - Comment is too large: Line too long 101 - 101
5
[Comments.CommentSize] - Comment is too large: Line too long 102 - 102
5
[Comments.CommentSize] - Comment is too large: Line too long 130 - 130
5
[Unnecessary.UselessParentheses] - Useless parentheses. 136 - 136
5
[Comments.CommentSize] - Comment is too large: Line too long 182 - 182
5
[Unnecessary.UselessParentheses] - Useless parentheses. 183 - 183
5
[Unnecessary.UselessParentheses] - Useless parentheses. 184 - 184
3
[Design.SimpleDateFormatNeedsLocale] - When instantiating a SimpleDateFormat object, specify a Locale 185 - 185
Back to top