Potential IG issue
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
fixed into:
PrintStream out = System.out;
which is a little too much for the fix (where is the "java.lang."
prefix?)
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" ?
Thanks,
Vince.
Please sign in to leave a comment.
"Redundant cast" is a built-in inspection, not IG. Definitely file a JIRA item for it. I'll look into the "Unnecessary fully qualified name" issue, although filing a JIRA item for that will help ensure it doesn't get lost.
--Dave Griffith
Another one:
Renaming parameters according parameter name in interface start refactoring with searching in comments and other files (XML for instance). It must use Rename settings.
Done
core:
http://www.jetbrains.net/jira/browse/IDEA-1177
IG:
http://www.jetbrains.net/jira/browse/IDEA-1178
http://www.jetbrains.net/jira/browse/IDEA-1179
Thanks,
Vince.
Yeah, I've seen that, but please post to JIRA anyway.
--Dave Griffith
This one:
http://www.jetbrains.net/jira/browse/IDEA-1180