Cleanup (test data formatting)

This commit is contained in:
Roman Shevchenko
2018-06-25 14:44:25 +03:00
parent 60c1e7d526
commit 002f0ea6c3
14 changed files with 15 additions and 29 deletions
@@ -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("");
}
}
}
@@ -5,5 +5,4 @@ final class Example {
void m() {
BiFunction<Integer, ? extends String, Integer> graph = (Integer x1, String x) -> x1*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,7 +1,6 @@
// "Replace 'var' with explicit type" "true"
class Main {
{
int b = 0;
}
}
}
@@ -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,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("");
}
}
}
@@ -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) -> {});
}
}
}
@@ -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,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,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,7 +1,6 @@
// "Replace 'var' with explicit type" "true"
class Main {
{
<caret>var b = 0;
}
}
}
@@ -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,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);
}
}
}