Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ public void refactoring() {
class Test {
public static void main(String[] args) {
{
var unused = new Object();
Object unused = new Object();
}
var bar = new Object();
Object bar = new Object();
bar = null;
Function<String, Integer> f = unused -> 1;
f = (String unused) -> 1;
Expand All @@ -69,9 +69,9 @@ public static void main(String[] args) {
class Test {
public static void main(String[] args) {
{
var _ = new Object();
Object _ = new Object();
}
var bar = new Object();
Object bar = new Object();
bar = null;
Function<String, Integer> f = _ -> 1;
f = (String _) -> 1;
Expand Down Expand Up @@ -168,7 +168,7 @@ public void tryWithResources() {
"""
class Test {
void f(AutoCloseable a) throws Exception {
try (var c = a) {}
try (AutoCloseable c = a) {}
}
}
""")
Expand All @@ -177,7 +177,7 @@ void f(AutoCloseable a) throws Exception {
"""
class Test {
void f(AutoCloseable a) throws Exception {
try (var _ = a) {}
try (AutoCloseable _ = a) {}
}
}
""")
Expand All @@ -194,7 +194,7 @@ public void forLoop() {

class Test {
void f(List<Integer> xs) {
for (var x : xs) {}
for (Integer x : xs) {}
}
}
""")
Expand All @@ -205,7 +205,7 @@ void f(List<Integer> xs) {

class Test {
void f(List<Integer> xs) {
for (var _ : xs) {}
for (Integer _ : xs) {}
}
}
""")
Expand Down
Loading