-
Sub-task
-
Resolution: Delivered
-
P4
-
20
-
b16
New lint option `lossy-conversions` has been added to `javac` to warn about type casts in compound assignments with possible lossy conversions.
If the type of the right-hand operand of a compound assignment is not assignment compatible with the type of the variable, a cast is implied and possible lossy conversion may occur.
The new warnings can be suppressed using `@SuppressWarnings("lossy-conversions")`.
If the type of the right-hand operand of a compound assignment is not assignment compatible with the type of the variable, a cast is implied and possible lossy conversion may occur.
The new warnings can be suppressed using `@SuppressWarnings("lossy-conversions")`.