java: add fix to expand 'var' type when type annotation is used (IDEA-248364)

GitOrigin-RevId: 826f1e07587dc4d85214f5d0cafd5776d3448a95
This commit is contained in:
Anna Kozlova
2020-08-18 11:11:09 +00:00
committed by intellij-monorepo-bot
parent 0ef97dc482
commit 8fc89fc6f5
5 changed files with 117 additions and 47 deletions
@@ -0,0 +1,10 @@
// "Replace 'var' with explicit type" "true"
import java.lang.annotation.*;
class Main {
{
@Anno String b = "hello";
}
}
@Target(ElementType.TYPE_USE)
@interface Anno {}
@@ -0,0 +1,10 @@
// "Replace 'var' with explicit type" "true"
import java.lang.annotation.*;
class Main {
{
@An<caret>no var b = "hello";
}
}
@Target(ElementType.TYPE_USE)
@interface Anno {}