Inspectopedia Help

Cast

Cast to 'float' can be 'float' literal   New in this release

Reports double literal expressions that are immediately cast to float.

Cast to 'long' can be 'long' literal   New in this release

Reports int literal expressions that are immediately cast to long.

Integer multiplication or shift implicitly cast to 'long'   New in this release

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

Numeric cast that loses precision   New in this release

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

Unnecessary explicit numeric cast   New in this release

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

Last modified: 11 September 2024