AvoidDeeplyNestedIfStmts
Deeply nested if..then statements are hard to read
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.
Deeply nested if..then statements are hard to read
These nested if statements could be combined
This final field could be made static
Possible God Class
Private field could be made final; it is only initialized in the declaration or constructor.
Use opposite operator instead of the logic complement operator.
Ternary operators that can be simplified with || or &&
Avoid unnecessary comparisons in boolean expressions
Avoid unnecessary if..then..else statements when returning booleans
No need to check for null before an instanceof
A high ratio of statements to labels in a switch statement. Consider refactoring.
We use cookies to improve your site experience, including analytics cookies to understand how you use our product and design better experiences. Please read our Cookie Policy.