Synopsis: | Deeply nested if..then statements are hard to read |
Language: | Java |
Severity Level: | 2 |
Category: | Design |
Description: |
Deeply nested if..then statements are hard to read.public class Foo { public void bar(int x, int y, int z) { if (x>y) { if (y>z) { if (z==x) { // whew, too deep } } } } } |