mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
[kotlin] J2K: unignore identical K2 tests
KTIJ-30693 KTIJ-30760 GitOrigin-RevId: d736f543140b3aac080e15db6131178697c80b8d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
555118fe99
commit
3f9fd4a187
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
package test;
|
||||
|
||||
public class JJ {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
package test;
|
||||
|
||||
public class JavaClass {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
// JVM_TARGET: 17
|
||||
package test;
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
// JVM_TARGET: 17
|
||||
package test;
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
package test;
|
||||
|
||||
public class J {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
package test;
|
||||
|
||||
class ClassWithStatics {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
@interface A {
|
||||
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
@interface An {
|
||||
String value();
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
public class WithModifiersOnAccessors {
|
||||
private synchronized void methSync() {}
|
||||
protected strictfp void methStrict() {}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
public final class Foo {
|
||||
private Foo() {
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
public class Foo {
|
||||
private Integer someInt;
|
||||
public void setState(Integer state) {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
class C {
|
||||
private final int p1; // field p1
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
class C {
|
||||
final int myArg1;
|
||||
int myArg2;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
// !ADD_JAVA_API
|
||||
import javaApi.Anon5;
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
class C {
|
||||
private final int p1;
|
||||
private final int myP2;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
class C {
|
||||
private final int field;
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
class C {
|
||||
public int p;
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
class Base {
|
||||
Base(Object o, int l){}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
class C {
|
||||
private final int arg1;
|
||||
private final int arg2;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
class C {
|
||||
private final int arg1;
|
||||
private final int arg2;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
abstract class A {
|
||||
protected abstract int getX();
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
public class AAA {
|
||||
private final int x = 42;
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
public class J {
|
||||
private String x;
|
||||
@Inapplicable
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
public class J {
|
||||
private String x;
|
||||
public String getX() {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
public class C {
|
||||
private String x = null;
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
class A {
|
||||
// Comment for field1
|
||||
private int field1 = 0;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
public class Base {
|
||||
protected int myX = 42;
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
public class AAA {
|
||||
private final int x = 42;
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
public class AAA {
|
||||
private int x = 42;
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
public class AAA {
|
||||
private int x = 42;
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
package demo;
|
||||
|
||||
enum MyEnum {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
public class AAA {
|
||||
private int x = 42;
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
public class AAA {
|
||||
private int x = 42;
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
public class A {
|
||||
private String foo;
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
class A {
|
||||
private String s;
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
public class C {
|
||||
private String myX = "";
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
public class AAA {
|
||||
public void foo() {
|
||||
setX(getX() + 1);
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
interface I {
|
||||
int getSomething1();
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
public class AAA {
|
||||
private static int ourX = 42;
|
||||
private static int y = 0;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
public class TestSetter {
|
||||
private static void setThing(int thing) { }
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
public class AAA {
|
||||
private int x = 42;
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
public class Foo {
|
||||
private Integer someInt;
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
public class AAA {
|
||||
private int x = 42;
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
public class Foo {
|
||||
private native final void nativeMethod();
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
// IGNORE_K2
|
||||
|
||||
@FunctionalInterface
|
||||
public interface MyRunnable {
|
||||
int getResult();
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
// IGNORE_K2
|
||||
|
||||
public interface MyRunnable {
|
||||
int getResult();
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
package demo;
|
||||
|
||||
class C {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
import java.io.Serializable;
|
||||
|
||||
class BaseEntity implements Serializable {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
// !ADD_JAVA_API
|
||||
// JVM_TARGET: 17
|
||||
import javaApi.Anon5;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
// JVM_TARGET: 17
|
||||
public record Rectangle(double length, double width) {
|
||||
public Rectangle {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
// JVM_TARGET: 17
|
||||
public record Rectangle(double length, double width) {
|
||||
public Rectangle {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
// JVM_TARGET: 17
|
||||
public record Rectangle(double length, double width) {
|
||||
public Rectangle {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
// JVM_TARGET: 17
|
||||
public record Rectangle(double length, double width) {
|
||||
public Rectangle() {
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
// IGNORE_K2
|
||||
// JVM_TARGET: 17
|
||||
record Point() {}
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
// JVM_TARGET: 17
|
||||
public record R(int x) {
|
||||
public int x() {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
// JVM_TARGET: 17
|
||||
public record R(int x) {
|
||||
public R(int x) {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
// JVM_TARGET: 17
|
||||
public record R(int x) {
|
||||
public R(int x) {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
// JVM_TARGET: 17
|
||||
public record R(int x) {
|
||||
public R(int x) {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
// JVM_TARGET: 17
|
||||
class A {
|
||||
void foo() {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
// JVM_TARGET: 17
|
||||
class A {
|
||||
record J(int x, int y) {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
// JVM_TARGET: 17
|
||||
public record J(int x, int y) {
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
package test;
|
||||
|
||||
public abstract class Base {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_K2
|
||||
public class Foo {
|
||||
private native final void nativeMethod();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user