java: replace explicit type with var: disable if TYPE_USE annotated (IDEA-259100)

GitOrigin-RevId: 4096a327d8c8f9f569fd82c2d6684f7f3d2090fe
This commit is contained in:
Anna Kozlova
2021-01-08 15:38:51 +01:00
committed by intellij-monorepo-bot
parent c53d717005
commit 7793b16164
5 changed files with 56 additions and 17 deletions

View File

@@ -1,6 +1,9 @@
// "Replace explicit type with 'var'" "true"
class Main {
{
<caret>int i = 0;
@I <caret>int i = 0;
}
}
}
@java.lang.annotation.Target({java.lang.annotation.ElementType.TYPE_USE, java.lang.annotation.ElementType.LOCAL_VARIABLE})
@interface I {}