j2k: flatten test cases and testData directory structure
Move j2k/test/tests -> j2k/tests, j2k/test/testData -> j2k/testData
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
//file
|
||||
// !openByDefault: true
|
||||
|
||||
class A {
|
||||
void foo1() { }
|
||||
private void foo2(){}
|
||||
final void foo3(){}
|
||||
}
|
||||
|
||||
final class B {
|
||||
void foo(){}
|
||||
}
|
||||
|
||||
abstract class C {
|
||||
abstract void foo();
|
||||
}
|
||||
|
||||
interface I{
|
||||
void foo();
|
||||
}
|
||||
|
||||
class D implements I {
|
||||
@Override
|
||||
public void foo() { }
|
||||
}
|
||||
|
||||
enum E {
|
||||
int foo() { return 0; }
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
// !openByDefault: true
|
||||
|
||||
open class A {
|
||||
open fun foo1() {
|
||||
}
|
||||
|
||||
private fun foo2() {
|
||||
}
|
||||
|
||||
fun foo3() {
|
||||
}
|
||||
}
|
||||
|
||||
class B {
|
||||
fun foo() {
|
||||
}
|
||||
}
|
||||
|
||||
abstract class C {
|
||||
abstract fun foo()
|
||||
}
|
||||
|
||||
trait I {
|
||||
public fun foo()
|
||||
}
|
||||
|
||||
open class D : I {
|
||||
override fun foo() {
|
||||
}
|
||||
}
|
||||
|
||||
enum class E {
|
||||
fun foo(): Int {
|
||||
return 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
//file
|
||||
// !specifyFieldTypeByDefault: true
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import java.util.*;
|
||||
|
||||
class A {
|
||||
private final List<String> field1 = new ArrayList<String>();
|
||||
final List<String> field2 = new ArrayList<String>();
|
||||
public final int field3 = 0;
|
||||
protected final int field4 = 0;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// !specifyFieldTypeByDefault: true
|
||||
import java.util.*
|
||||
|
||||
class A {
|
||||
private val field1: List<String> = ArrayList()
|
||||
val field2: List<String> = ArrayList()
|
||||
public val field3: Int = 0
|
||||
protected val field4: Int = 0
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
//method
|
||||
// !specifyLocalVariableTypeByDefault: true
|
||||
public void foo() {
|
||||
int i = 1;
|
||||
String s = "";
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
// !specifyLocalVariableTypeByDefault: true
|
||||
public fun foo() {
|
||||
val i: Int = 1
|
||||
val s: String = ""
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
//method
|
||||
// !specifyLocalVariableTypeByDefault: true
|
||||
public void foo(List<String> list) {
|
||||
int[] array = new int[10];
|
||||
for (int i = 0; i < 10; i++){
|
||||
array[i] = i;
|
||||
}
|
||||
|
||||
for(String s : list) System.out.print(s);
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// !specifyLocalVariableTypeByDefault: true
|
||||
public fun foo(list: List<String>) {
|
||||
val array: IntArray = IntArray(10)
|
||||
for (i: Int in 0..10 - 1) {
|
||||
array[i] = i
|
||||
}
|
||||
|
||||
for (s: String in list) System.out.print(s)
|
||||
}
|
||||
Reference in New Issue
Block a user