Report default annotation parameters in more cases

This commit is contained in:
Bas Leijdekkers
2016-11-21 16:11:00 +01:00
parent b578f8484c
commit eae8f18550
3 changed files with 24 additions and 24 deletions

View File

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

View File

@@ -0,0 +1,11 @@
// "Remove redundant parameter" "true"
@interface Anno {
String foo() default "hello world";
}
@Anno(foo = "hello " +<caret>
"world")
class Foo {
}