mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java] More tests for preview; minor fixes
GitOrigin-RevId: 7f72c5f68ab821e728eb0d5152f0910f48035046
This commit is contained in:
committed by
intellij-monorepo-bot
parent
7a1f179f41
commit
9c6aeba5b4
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
enum E {
|
||||
A(() -> {});
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
|
||||
import java.util.function.Supplier;
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
interface InOut {
|
||||
void run() throws IOException;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
Runnable a = () -> {};
|
||||
Runnable r = () -> a.run();
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
interface InOut {
|
||||
void run() throws IOException;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
{
|
||||
Object r = b ? (Runnable) () -> {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
{
|
||||
Runnable r = b ? () -> {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
{
|
||||
Runnable r = b ? (IRunnable) () -> {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
{
|
||||
((Runnable) () -> {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class A {
|
||||
{
|
||||
bar((ThrowableComputable<String, Exception>) () -> foo());
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
import java.util.Collection;
|
||||
import java.util.function.Function;
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
|
||||
class Test {
|
||||
//comment inside new expression
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
{
|
||||
Comparable<String> c = o -> 0;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
{
|
||||
String o = "";
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
public class MyNameConflict {
|
||||
|
||||
{
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
{
|
||||
Comparable<String> c = o -> {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class X1 {
|
||||
Runnable m() {
|
||||
String s;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class X1 {
|
||||
|
||||
public void testLambdaConversionBug() {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
static class SetSubThreadReadPacket {
|
||||
private String getPostId() {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test2 {
|
||||
|
||||
void foo(final List<PatchLogger> loggers) {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
|
||||
import java.util.function.Function;
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
Integer s;
|
||||
private void m() {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class HelloLambda {
|
||||
final int x;
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
import java.util.*;
|
||||
class Test2 {
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class HelloLambda {
|
||||
private final Runnable r = () -> System.out.println(x);
|
||||
private static int x = 0;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
import java.util.List;
|
||||
import java.util.function.Predicate;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
|
||||
class MyTest {
|
||||
void addEventListener(EventListener<? extends Event> listener) { }
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
import java.util.function.*;
|
||||
class Test {
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class HelloLambda {
|
||||
public HelloLambda() {
|
||||
Runnable r = () -> System.out.println(x);
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
{
|
||||
Comparable<String> c = o -> {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test2 {
|
||||
|
||||
void foo(final List<PatchLogger> loggers) {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
|
||||
import java.util.function.Consumer;
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
interface I {
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
|
||||
import java.util.*;
|
||||
import java.util.function.Function;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
|
||||
import java.util.*;
|
||||
import java.util.function.Function;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
import java.util.function.Function;
|
||||
|
||||
class Test {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test2 {
|
||||
|
||||
void f(Runnable... rs){}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.function.Function;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
private void doSomething() {
|
||||
((Runnable) () -> System.out.println()).run();
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
interface Eff<A, B> {
|
||||
B f(A a);
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class DbTableBinder {
|
||||
|
||||
public Binder build() {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
{
|
||||
Runnable r = () -> System.out.println("");
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
{
|
||||
Runnable[] r = new Runnable[] {() -> System.out.println("")};
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
import java.util.concurrent.Callable;
|
||||
|
||||
class A {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
|
||||
import java.util.function.Function;
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
private void doSomething() {
|
||||
(((Runnable) () -> System.out.println())).run();
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
Runnable r = () -> "".toString();
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
interface I {
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
String c = null;
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.HashMap;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
package mismatch;
|
||||
|
||||
interface CanceledStatus {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
enum E {
|
||||
A(new Runna<caret>ble() {
|
||||
public void run(){}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
|
||||
import java.util.function.Supplier;
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
interface InOut {
|
||||
void run() throws IOException;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
Runnable a = () -> {};
|
||||
Runnable r = new R<caret>unnable() {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
interface InOut {
|
||||
void run() throws IOException;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
{
|
||||
Object r = b ? new Runna<caret>ble() {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
{
|
||||
Runnable r = b ? new Runna<caret>ble() {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
{
|
||||
Runnable r = b ? new IRunna<caret>ble() {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
{
|
||||
new Ru<caret>nnable() {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class A {
|
||||
{
|
||||
bar(new Throwabl<caret>eComputable<String, Exception>() {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
import java.util.Collection;
|
||||
import java.util.function.Function;
|
||||
|
||||
|
||||
+3
-3
@@ -1,9 +1,9 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
|
||||
class Test {
|
||||
Runnable r = new //comment inside new expression
|
||||
Runnable r = new//comment inside new expression
|
||||
Ru<caret>nnable() {
|
||||
//my comment
|
||||
//my comment
|
||||
public void run () {}
|
||||
};
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
{
|
||||
Comparable<String> c = new Compa<caret>rable<String>() {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
{
|
||||
String o = "";
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
public class MyNameConflict {
|
||||
|
||||
{
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
{
|
||||
Comparable<String> c = new Compa<caret>rable<String>() {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class X1 {
|
||||
Runnable m() {
|
||||
String s;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class X1 {
|
||||
|
||||
public void testLambdaConversionBug() {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
static class SetSubThreadReadPacket {
|
||||
private String getPostId() {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test2 {
|
||||
|
||||
void foo(final List<PatchLogger> loggers) {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
|
||||
import java.util.function.Function;
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
Integer s;
|
||||
private void m() {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class HelloLambda {
|
||||
final int x;
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
import java.util.*;
|
||||
class Test2 {
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class HelloLambda {
|
||||
private final Runnable r = new Run<caret>nable() {
|
||||
@Override
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
import java.util.List;
|
||||
import java.util.function.Predicate;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
|
||||
class MyTest {
|
||||
void addEventListener(EventListener<? extends Event> listener) { }
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
import java.util.function.*;
|
||||
class Test {
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class HelloLambda {
|
||||
public HelloLambda() {
|
||||
Runnable r = new Run<caret>nable() {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
{
|
||||
Comparable<String> c = new Compa<caret>rable<String>() {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test2 {
|
||||
|
||||
void foo(final List<PatchLogger> loggers) {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
|
||||
import java.util.function.Consumer;
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
interface I {
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
|
||||
import java.util.*;
|
||||
import java.util.function.Function;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
|
||||
import java.util.*;
|
||||
import java.util.function.Function;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
import java.util.function.Function;
|
||||
|
||||
class Test {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test2 {
|
||||
|
||||
void f(Runnable... rs){}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.function.Function;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
private void doSomething() {
|
||||
(new <caret>Runnable() {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
interface Eff<A, B> {
|
||||
B f(A a);
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class DbTableBinder {
|
||||
|
||||
public Binder build() {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
{
|
||||
Runnable r = new Run<caret>nable() {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
{
|
||||
Runnable[] r = new Runnable[] {new Run<caret>nable() {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
import java.util.concurrent.Callable;
|
||||
|
||||
class A {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
|
||||
import java.util.function.Function;
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
private void doSomething() {
|
||||
((new <caret>Runnable() {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Replace with lambda" "true"
|
||||
// "Replace with lambda" "true-preview"
|
||||
class Test {
|
||||
Runnable r = new R<caret>unnable() {
|
||||
public void run() {
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user