mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 06:11:42 +07:00
[java] fixes formatting around soft keywords
This commit is contained in:
+2
-4
@@ -1,8 +1,6 @@
|
||||
// "Replace explicit type with 'var'" "true"
|
||||
class Main {
|
||||
void m(String[] args){
|
||||
for ( var arg : args) {
|
||||
|
||||
void m(String[] args) {
|
||||
for (var arg : args) ;
|
||||
}
|
||||
}
|
||||
}
|
||||
+3
-3
@@ -1,7 +1,7 @@
|
||||
// "Replace explicit type with 'var'" "true"
|
||||
import java.io.*;
|
||||
class Main {
|
||||
void m(InputStream s){
|
||||
try ( var in = s) {}
|
||||
}
|
||||
void m(InputStream s) {
|
||||
try (var in = s) {}
|
||||
}
|
||||
}
|
||||
+2
-4
@@ -1,8 +1,6 @@
|
||||
// "Replace explicit type with 'var'" "true"
|
||||
class Main {
|
||||
void m(String[] args){
|
||||
for (<caret>String arg : args) {
|
||||
|
||||
void m(String[] args) {
|
||||
for (<caret>String arg : args) ;
|
||||
}
|
||||
}
|
||||
}
|
||||
+3
-3
@@ -1,7 +1,7 @@
|
||||
// "Replace explicit type with 'var'" "true"
|
||||
import java.io.*;
|
||||
class Main {
|
||||
void m(InputStream s){
|
||||
try (<caret>InputStream in = s) {}
|
||||
}
|
||||
void m(InputStream s) {
|
||||
try (<caret>InputStream in = s) {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user