AvoidProtectedFieldInFinalClass
Code style
Warning
Avoid protected fields in a final class. Change to private or package access.
The Codiga Code Analysis engine supports hundreds of rules for Java, checking that your code is safe and secure. Start using Codiga today to check your code and automate your code reviews to find issues in every pull request and merge with confidence.
Avoid protected fields in a final class. Change to private or package access.
Avoid protected methods in a final class that doesnt extend anything other than Object. Change to private or package access.
Avoid if (x != y) ..; else ..;
Fields should be declared at the top of the class
This for loop could be simplified to a while loop
Consider simply returning the value vs storing it in local variable