I have two inspections turned on (among others):
- Redundant cast
- Unnecessary fully qualified name
I see two weird things going on:
1. I would have expected the following to trigger the second inspection,
but it doesn't:
PrintStream out = java.lang.System.out;
2. With the following code:
PrintStream out = (PrintStream) java.lang.System.out;
if I use the "Remove redundant cast(s)" quickfix, the line gets
PrintStream out = System.out;
which is a little too much for the fix (where is the "java.lang."
Are those behaviors expected?
Also, would it make sense for the inspections "Redundant type arguments" and
"Redundant type cast" to move from "Local Code Analysis" to "Verbose or
redundant code constructs" ?