Inspectopedia Help

Control flow issues

Name

Language

'break' statement  

Java

'break' statement with label  

Java

'continue' statement  

Java

'continue' statement with label  

Java

'default' not last case in 'switch'  

Java

'for' loop may be replaced by 'while' loop  

Java

'for' loop with missing components  

Java

'if' statement with identical branches  

Java

'if' statement with negated condition  

Java

'if' statement with too many branches  

Java

'switch' statement  

Java

'switch' statement with too low of a branch density  

Java

'switch' statement without 'default' branch  

Java

Assertion can be replaced with 'if' statement  

Java

Boolean expression could be replaced with conditional expression  

Java

Common subexpression can be extracted from 'switch'  

Java

Conditional break inside loop  

Java

Conditional can be pushed inside branch expression  

Java

Conditional expression  

Java

Conditional expression with identical branches  

Java

Conditional expression with negated condition  

Java

Constant conditional expression  

Java

Double negation  

Java

Duplicate condition  

Java

Enum 'switch' statement that misses case  

Java

Expression can be factorized  

Java

Fallthrough in 'switch' statement  

Java

Idempotent loop body  

Java

Infinite loop statement  

Java

Labeled statement  

Java

Local variable used and declared in different 'switch' branches  

Java

Loop statement that does not loop  

Java

Loop variable not updated inside loop  

Java

Loop with implicit termination condition  

Java

Maximum 'switch' branches  

Java

Minimum 'switch' branches  

Java

Negated conditional expression  

Java

Negated equality expression  

Java

Nested 'switch' statement  

Java

Nested conditional expression  

Java

Overly complex boolean expression  

Java

Pointless 'indexOf()' comparison  

Java

Pointless boolean expression  

Java

Redundant 'else'  

Java

Redundant 'if' statement  

Java

Simplifiable boolean expression  

Java

Simplifiable conditional expression  

Java

Statement can be replaced with 'assert' or 'Objects.requireNonNull'  

Java

Unnecessary 'null' check before method call  

Java

Last modified: 13 July 2023