mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
Cleanup (test data formatting)
This commit is contained in:
+1
-2
@@ -1,8 +1,7 @@
|
||||
// "Replace 'var' with explicit type" "true"
|
||||
class Main {
|
||||
|
||||
{
|
||||
String b = java.util.Arrays.asList("", "").get(0);
|
||||
final int i = b.compareTo("");
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-2
@@ -5,5 +5,4 @@ final class Example {
|
||||
void m() {
|
||||
BiFunction<Integer, ? extends String, Integer> graph = (Integer x1, String x) -> x1*2;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
+1
-2
@@ -3,9 +3,8 @@ import java.util.List;
|
||||
|
||||
// "Replace 'var' with explicit type" "true"
|
||||
class Main {
|
||||
|
||||
{
|
||||
List<Serializable> b = java.util.Arrays.asList("", 2);
|
||||
final Object o = b.get(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-2
@@ -1,7 +1,6 @@
|
||||
// "Replace 'var' with explicit type" "true"
|
||||
class Main {
|
||||
|
||||
{
|
||||
int b = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-2
@@ -1,7 +1,6 @@
|
||||
// "Replace 'var' with explicit type" "true"
|
||||
class Main {
|
||||
|
||||
void m(java.util.List<? extends String> args){
|
||||
String s = args.get(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-2
@@ -1,8 +1,7 @@
|
||||
// "Replace 'var' with explicit type" "true"
|
||||
class Main {
|
||||
|
||||
{
|
||||
<caret>var b = java.util.Arrays.asList("", "").get(0);
|
||||
final int i = b.compareTo("");
|
||||
}
|
||||
}
|
||||
}
|
||||
+2
-3
@@ -1,6 +1,5 @@
|
||||
// "Replace 'var' with explicit type" "false"
|
||||
final class Example<J, T> {
|
||||
|
||||
interface I<A, B> {
|
||||
void m(A a, B b);
|
||||
}
|
||||
@@ -8,6 +7,6 @@ final class Example<J, T> {
|
||||
void m(I<T, J> i) {}
|
||||
|
||||
void m(Example<? super String, Integer> e) {
|
||||
e.m((var a, v<caret>ar b) -> {});
|
||||
e.m((var a, <caret>var b) -> {});
|
||||
}
|
||||
}
|
||||
}
|
||||
+2
-3
@@ -3,7 +3,6 @@ import java.util.function.BiFunction;
|
||||
|
||||
final class Example {
|
||||
void m() {
|
||||
BiFunction<Integer, ? extends String, Integer> graph = (var x1, v<caret>ar x) -> x1*2;
|
||||
BiFunction<Integer, ? extends String, Integer> graph = (var x1, <caret>var x) -> x1*2;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
+1
-2
@@ -1,9 +1,8 @@
|
||||
// "Replace 'var' with explicit type" "false"
|
||||
class Main {
|
||||
|
||||
{
|
||||
<caret>var b = java.util.Arrays.asList("", 2);
|
||||
final int i = b.get(0).compareTo("");
|
||||
java.io.Serializable s = b.get(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-2
@@ -1,8 +1,7 @@
|
||||
// "Replace 'var' with explicit type" "false"
|
||||
class Main {
|
||||
|
||||
{
|
||||
<caret>var b = java.util.Arrays.asList("", 2);
|
||||
final Object o = b.get(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-2
@@ -1,7 +1,6 @@
|
||||
// "Replace 'var' with explicit type" "true"
|
||||
class Main {
|
||||
|
||||
{
|
||||
<caret>var b = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-2
@@ -1,8 +1,7 @@
|
||||
// "Replace 'var' with explicit type" "false"
|
||||
class Main {
|
||||
|
||||
{
|
||||
<caret>var b = java.util.Arrays.asList("", 2).get(0);
|
||||
final int i = b.compareTo("");
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-2
@@ -1,7 +1,6 @@
|
||||
// "Replace 'var' with explicit type" "true"
|
||||
class Main {
|
||||
|
||||
void m(java.util.List<? extends String> args){
|
||||
<caret>var s = args.get(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user