PMD Results

The following document contains the results of PMD 7.7.0.

Violations By Priority

Priority 3

com/student_loan/service/LoanService.java

Rule Violation Line
CollapsibleIfStatements This if statement could be combined with its parent 186–188

Priority 4

com/student_loan/DataInitializer.java

Rule Violation Line
UselessParentheses Useless parentheses. 275

com/student_loan/controller/LoanController.java

Rule Violation Line
UnnecessaryImport Unused import 'java.util.Objects' 19

com/student_loan/controller/UserController.java

Rule Violation Line
UnnecessaryImport Unused import 'com.student_loan.model.Item' 10

com/student_loan/security/JwtUtil.java

Rule Violation Line
UnnecessaryImport Unused import 'javax.crypto.SecretKey' 9

com/student_loan/service/LoanService.java

Rule Violation Line
UnnecessaryImport Duplicate import 'com.student_loan.model.Item' 14
UnnecessaryImport Unused import 'java.time.LocalDate' 22
UnnecessaryImport Unused import 'java.time.ZoneId' 23

com/student_loan/service/UserService.java

Rule Violation Line
UnnecessaryImport Unused import 'com.student_loan.model.User.DegreeType' 7

Files

com/student_loan/DataInitializer.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 275

com/student_loan/controller/LoanController.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'java.util.Objects' 4 19

com/student_loan/controller/UserController.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'com.student_loan.model.Item' 4 10

com/student_loan/security/JwtUtil.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'javax.crypto.SecretKey' 4 9

com/student_loan/service/LoanService.java

Rule Violation Priority Line
UnnecessaryImport Duplicate import 'com.student_loan.model.Item' 4 14
UnnecessaryImport Unused import 'java.time.LocalDate' 4 22
UnnecessaryImport Unused import 'java.time.ZoneId' 4 23
CollapsibleIfStatements This if statement could be combined with its parent 3 186–188

com/student_loan/service/UserService.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'com.student_loan.model.User.DegreeType' 4 7