History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-16977
Type: Bug Bug
Status: Open Open
Assignee: Alexey Kudravtsev
Reporter: Esko Luontola
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Bad code is green: "Redundant array creation for calling varargs method" does not work when the array creation does not use a "<?>" type parameter wildcard

Created: 25 Jan 08 23:28   Updated: 29 Jan 08 12:52
Component/s: Code Analysis. Inspection

Build: 7,656
Severity: Medium


 Description  « Hide
In the following code, the "Redundant array creation for calling varargs method" inspection does not warn about the first line. It only warns about the second line. Expected: Both lines should give a warning.
String.class.getConstructor(new Class[]{String.class});
        String.class.getConstructor(new Class<?>[]{String.class});


 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.