[java] More tests for preview; minor fixes

GitOrigin-RevId: 7f72c5f68ab821e728eb0d5152f0910f48035046
This commit is contained in:
Tagir Valeev
2022-07-20 15:22:33 +02:00
committed by intellij-monorepo-bot
parent 7a1f179f41
commit 9c6aeba5b4
726 changed files with 874 additions and 767 deletions

View File

@@ -1,4 +1,4 @@
// "Replace with method reference" "true"
// "Replace with method reference" "true-preview"
class Test {
interface Bar {
int compare(String o1, String o2);

View File

@@ -1,4 +1,4 @@
// "Replace with method reference" "true"
// "Replace with method reference" "true-preview"
class Main {
interface A {

View File

@@ -1,4 +1,4 @@
// "Replace with method reference" "true"
// "Replace with method reference" "true-preview"
class Test {
interface I {}
interface Bar extends I {

View File

@@ -1,4 +1,4 @@
// "Replace with method reference" "true"
// "Replace with method reference" "true-preview"
import java.util.List;
import java.util.function.Function;

View File

@@ -1,4 +1,4 @@
// "Replace with method reference" "true"
// "Replace with method reference" "true-preview"
class Test {
private void doTest (){}

View File

@@ -1,4 +1,4 @@
// "Replace with method reference" "true"
// "Replace with method reference" "true-preview"
class Test {
interface Bar {
int compare(String o1, String o2);

View File

@@ -1,4 +1,4 @@
// "Replace with method reference" "true"
// "Replace with method reference" "true-preview"
class Main {
interface A {

View File

@@ -1,4 +1,4 @@
// "Replace with method reference" "true"
// "Replace with method reference" "true-preview"
class Test {
interface I {}
interface Bar extends I {

View File

@@ -1,4 +1,4 @@
// "Replace with method reference" "true"
// "Replace with method reference" "true-preview"
import java.util.List;
import java.util.function.Function;

View File

@@ -1,4 +1,4 @@
// "Replace with method reference" "true"
// "Replace with method reference" "true-preview"
class Test {
private void doTest (){}