Java to Kotlin converter: no more 2 conversion modes for each test, just a few tests to test non-standard settings
This commit is contained in:
@@ -1 +0,0 @@
|
||||
x = x and 2
|
||||
@@ -1 +0,0 @@
|
||||
x = 2
|
||||
@@ -1 +0,0 @@
|
||||
x /= 2
|
||||
@@ -1 +0,0 @@
|
||||
x -= 2
|
||||
@@ -1 +0,0 @@
|
||||
x *= 2
|
||||
@@ -0,0 +1,12 @@
|
||||
//file
|
||||
// !forceNotNullTypes: false
|
||||
// !specifyLocalVariableTypeByDefault: true
|
||||
import java.util.BitSet;
|
||||
|
||||
class Foo {
|
||||
void foo(BitSet o) {
|
||||
BitSet o2 = o;
|
||||
int foo = 0;
|
||||
foo = o2.size();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
// !forceNotNullTypes: false
|
||||
// !specifyLocalVariableTypeByDefault: true
|
||||
import java.util.BitSet
|
||||
|
||||
class Foo() {
|
||||
fun foo(o: BitSet?) {
|
||||
val o2: BitSet? = o
|
||||
val foo: Int = 0
|
||||
foo = o2?.size()!!
|
||||
}
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
import java.util.BitSet
|
||||
|
||||
class Foo() {
|
||||
fun foo(o: BitSet) {
|
||||
val o2 = o
|
||||
val foo = 0
|
||||
foo = o2.size()
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
import java.util.BitSet
|
||||
|
||||
open class Foo() {
|
||||
open fun foo(o: BitSet?) {
|
||||
var o2: BitSet? = o
|
||||
var foo: Int = 0
|
||||
foo = o2?.size()!!
|
||||
class Foo() {
|
||||
fun foo(o: BitSet) {
|
||||
val o2 = o
|
||||
val foo = 0
|
||||
foo = o2.size()
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
x = x or 2
|
||||
@@ -1 +0,0 @@
|
||||
x += 2
|
||||
@@ -1 +0,0 @@
|
||||
x %= 2
|
||||
@@ -1 +0,0 @@
|
||||
x = x shl 2
|
||||
@@ -1 +0,0 @@
|
||||
x = x shr 2
|
||||
@@ -1 +0,0 @@
|
||||
i = 1
|
||||
@@ -1 +0,0 @@
|
||||
x = x ushr 2
|
||||
@@ -1 +0,0 @@
|
||||
x = x xor 2
|
||||
Reference in New Issue
Block a user