mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
keep annotations for explicit to var fixes (IDEA-193876)
This commit is contained in:
+3
-2
@@ -1,6 +1,7 @@
|
||||
// "Replace explicit type with 'var'" "true"
|
||||
class Main {
|
||||
void m(String[] args) {
|
||||
for (var arg : args) ;
|
||||
for (@Anno var arg : args) ;
|
||||
}
|
||||
}
|
||||
}
|
||||
@interface Anno {}
|
||||
+3
-2
@@ -1,6 +1,7 @@
|
||||
// "Replace explicit type with 'var'" "true"
|
||||
class Main {
|
||||
{
|
||||
var args = new String[42];
|
||||
@Anno var args = new String[42];
|
||||
}
|
||||
}
|
||||
}
|
||||
@interface Anno {}
|
||||
+3
-2
@@ -1,6 +1,7 @@
|
||||
// "Replace explicit type with 'var'" "true"
|
||||
class Main {
|
||||
void m(String[] args) {
|
||||
for (<caret>String arg : args) ;
|
||||
for (@Anno <caret>String arg : args) ;
|
||||
}
|
||||
}
|
||||
}
|
||||
@interface Anno {}
|
||||
+3
-2
@@ -1,6 +1,7 @@
|
||||
// "Replace explicit type with 'var'" "true"
|
||||
class Main {
|
||||
{
|
||||
<caret>String[] args = new String[42];
|
||||
@Anno <caret>String[] args = new String[42];
|
||||
}
|
||||
}
|
||||
}
|
||||
@interface Anno {}
|
||||
Reference in New Issue
Block a user