LVTI: explicit variable type is redundant (IDEA-179177)

This commit is contained in:
Anna Kozlova
2017-09-25 10:12:02 +03:00
parent 1aa739139c
commit 776b8f9474
23 changed files with 272 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
// "Replace explicit type with 'var'" "true"
class Main {
{
<caret>String str = m("hello, world");
}
static <T> T m(T t) {return t;}
}