Inspectopedia Help

Cast

Cast to 'float' can be 'float' literal  

Reports double literal expressions that are immediately cast to float.

Cast to 'long' can be 'long' literal  

Reports int literal expressions that are immediately cast to long.

Integer multiplication or shift implicitly cast to 'long'  

Reports integer multiplications and left shifts that are implicitly cast to long.

Numeric cast that loses precision  

Reports cast operations between primitive numeric types that may result in precision loss.

Unnecessary explicit numeric cast  

Reports primitive numeric casts that would be inserted implicitly by the compiler.

Last modified: 29 April 2024