[kotlin] J2K: unignore identical K2 tests

KTIJ-30693
KTIJ-30760

GitOrigin-RevId: d736f543140b3aac080e15db6131178697c80b8d
This commit is contained in:
Alexey Belkov
2024-07-30 18:40:22 +04:00
committed by intellij-monorepo-bot
parent 555118fe99
commit 3f9fd4a187
65 changed files with 0 additions and 99 deletions

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
package test;
public class JJ {

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
package test;
public class JavaClass {

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
// JVM_TARGET: 17
package test;

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
// JVM_TARGET: 17
package test;

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
package test;
public class J {

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
package test;
class ClassWithStatics {

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
@interface An {
String value();
}

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
public class WithModifiersOnAccessors {
private synchronized void methSync() {}
protected strictfp void methStrict() {}

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
public final class Foo {
private Foo() {
}

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
public class Foo {
private Integer someInt;
public void setState(Integer state) {

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
class C {
private final int p1; // field p1

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
class C {
final int myArg1;
int myArg2;

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
// !ADD_JAVA_API
import javaApi.Anon5;

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
class C {
private final int p1;
private final int myP2;

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
class C {
private final int field;

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
class C {
public int p;

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
class Base {
Base(Object o, int l){}
}

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
class C {
private final int arg1;
private final int arg2;

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
class C {
private final int arg1;
private final int arg2;

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
abstract class A {
protected abstract int getX();
}

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
public class AAA {
private final int x = 42;

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
public class J {
private String x;
@Inapplicable

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
public class J {
private String x;
public String getX() {

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
public class C {
private String x = null;

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
class A {
// Comment for field1
private int field1 = 0;

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
public class Base {
protected int myX = 42;

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
public class AAA {
private final int x = 42;

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
public class AAA {
private int x = 42;

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
public class AAA {
private int x = 42;

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
package demo;
enum MyEnum {

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
public class AAA {
private int x = 42;

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
public class AAA {
private int x = 42;

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
public class A {
private String foo;

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
class A {
private String s;

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
public class C {
private String myX = "";

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
public class AAA {
public void foo() {
setX(getX() + 1);

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
interface I {
int getSomething1();

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
public class AAA {
private static int ourX = 42;
private static int y = 0;

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
public class TestSetter {
private static void setThing(int thing) { }

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
public class AAA {
private int x = 42;

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
public class Foo {
private Integer someInt;

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
public class AAA {
private int x = 42;

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
public class Foo {
private native final void nativeMethod();

View File

@@ -1,5 +1,3 @@
// IGNORE_K2
@FunctionalInterface
public interface MyRunnable {
int getResult();

View File

@@ -1,5 +1,3 @@
// IGNORE_K2
public interface MyRunnable {
int getResult();
}

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
package demo;
class C {

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
import java.io.Serializable;
class BaseEntity implements Serializable {

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
// !ADD_JAVA_API
// JVM_TARGET: 17
import javaApi.Anon5;

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
// JVM_TARGET: 17
public record Rectangle(double length, double width) {
public Rectangle {

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
// JVM_TARGET: 17
public record Rectangle(double length, double width) {
public Rectangle {

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
// JVM_TARGET: 17
public record Rectangle(double length, double width) {
public Rectangle {

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
// JVM_TARGET: 17
public record Rectangle(double length, double width) {
public Rectangle() {

View File

@@ -1,3 +1,2 @@
// IGNORE_K2
// JVM_TARGET: 17
record Point() {}

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
// JVM_TARGET: 17
public record R(int x) {
public int x() {

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
// JVM_TARGET: 17
public record R(int x) {
public R(int x) {

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
// JVM_TARGET: 17
public record R(int x) {
public R(int x) {

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
// JVM_TARGET: 17
public record R(int x) {
public R(int x) {

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
// JVM_TARGET: 17
class A {
void foo() {

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
// JVM_TARGET: 17
class A {
record J(int x, int y) {

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
// JVM_TARGET: 17
public record J(int x, int y) {
}

View File

@@ -1,16 +0,0 @@
// ERROR: Primary constructor of data class must only have property ('val' / 'var') parameters.
// ERROR: Non-constructor properties with backing field in '@JvmRecord' class are prohibited.
class J {
fun test(s: String) {
D(s)
}
}
@JvmRecord
internal data class D(s: String) {
val s: String
init {
this.s = s
}
}

View File

@@ -1,18 +0,0 @@
// ERROR: Primary constructor of data class must only have property ('val' / 'var') parameters.
// ERROR: Non-constructor properties with backing field in '@JvmRecord' class are prohibited.
class C {
private val field = ArrayList<String>()
fun foo() {
D(field)
}
}
@JvmRecord
internal data class D(param: ArrayList<String>) {
val param: ArrayList<String>
init {
this.param = param
}
}

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
package test;
public abstract class Base {

View File

@@ -1,4 +1,3 @@
// IGNORE_K2
public class Foo {
private native final void nativeMethod();