IDEA-160207 Redundant default parameter value assignment doesn’t catch unnecessary array assignments

This commit is contained in:
Dmitry Avdeev
2016-08-25 12:10:53 +03:00
parent c6d7c4eda0
commit 03d53cc1d5
3 changed files with 43 additions and 2 deletions

View File

@@ -0,0 +1,10 @@
// "Remove redundant parameter" "true"
@interface Anno {
String[] foo() default {"One", "Two"};
}
@Anno()
class Foo {
}

View File

@@ -0,0 +1,10 @@
// "Remove redundant parameter" "true"
@interface Anno {
String[] foo() default {"One", "Two"};
}
@Anno(foo = {"One", <caret>"Two"})
class Foo {
}