Safe Delete: Move test classes and test data to refactoring directory

This commit is contained in:
Alexey Sedunov
2015-12-08 16:32:16 +03:00
parent a76f43b66c
commit ffc8b6fd89
504 changed files with 229 additions and 229 deletions
@@ -0,0 +1,7 @@
package test
data public class RemData(val remo<caret>vable: Int)
fun usage(data: RemData): Int {
return data.component1()
}
@@ -0,0 +1 @@
parameter removable has 1 usage that is not safe to delete.
@@ -0,0 +1,7 @@
fun foo(a: Int, <caret>b: Int = 0) {
}
fun bar() {
foo(1)
}
@@ -0,0 +1,7 @@
fun foo(a: Int) {
}
fun bar() {
foo(1)
}
@@ -0,0 +1,7 @@
fun foo(a: Int, b: Int = 0, <caret>c: Int = 0) {
}
fun bar() {
foo(1)
}
@@ -0,0 +1,7 @@
fun foo(a: Int, b: Int = 0) {
}
fun bar() {
foo(1)
}
@@ -0,0 +1,7 @@
fun Int.foo(<caret>a: Int, b: Int) {
}
fun bar() {
10.foo(a = 1, b = 2)
}
@@ -0,0 +1,7 @@
fun Int.foo(b: Int) {
}
fun bar() {
10.foo(b = 2)
}
@@ -0,0 +1,7 @@
fun Int.foo(<caret>a: Int, b: Int) {
}
fun bar() {
10.foo(b = 1, a = 2)
}
@@ -0,0 +1,7 @@
fun Int.foo(b: Int) {
}
fun bar() {
10.foo(b = 1)
}
@@ -0,0 +1,49 @@
interface Z {
open fun foo(<caret>a: Int, b: Int)
}
open class A {
open fun foo(a: Int, b: Int) {
}
}
open class B: A(), Z {
override fun foo(a: Int, b: Int) {
}
}
class C: A() {
override fun foo(a: Int, b: Int) {
}
}
class D: B(), Z {
override fun foo(a: Int, b: Int) {
}
}
class U {
fun bar(a: A) {
a.foo(1, 2)
}
fun bar(b: B) {
b.foo(3, 4)
}
fun bar(c: C) {
c.foo(5, 6)
}
fun bar(d: D) {
d.foo(7, 8)
}
fun bar(z: Z) {
z.foo(9, 10)
}
}
@@ -0,0 +1,49 @@
interface Z {
open fun foo(b: Int)
}
open class A {
open fun foo(b: Int) {
}
}
open class B: A(), Z {
override fun foo(b: Int) {
}
}
class C: A() {
override fun foo(b: Int) {
}
}
class D: B(), Z {
override fun foo(b: Int) {
}
}
class U {
fun bar(a: A) {
a.foo(2)
}
fun bar(b: B) {
b.foo(4)
}
fun bar(c: C) {
c.foo(6)
}
fun bar(d: D) {
d.foo(8)
}
fun bar(z: Z) {
z.foo(10)
}
}
@@ -0,0 +1,49 @@
interface Z {
open fun foo(a: Int, b: Int)
}
open class A {
open fun foo(<caret>a: Int, b: Int) {
}
}
open class B: A(), Z {
override fun foo(a: Int, b: Int) {
}
}
class C: A() {
override fun foo(a: Int, b: Int) {
}
}
class D: B(), Z {
override fun foo(a: Int, b: Int) {
}
}
class U {
fun bar(a: A) {
a.foo(1, 2)
}
fun bar(b: B) {
b.foo(3, 4)
}
fun bar(c: C) {
c.foo(5, 6)
}
fun bar(d: D) {
d.foo(7, 8)
}
fun bar(z: Z) {
z.foo(9, 10)
}
}
@@ -0,0 +1,49 @@
interface Z {
open fun foo(b: Int)
}
open class A {
open fun foo(b: Int) {
}
}
open class B: A(), Z {
override fun foo(b: Int) {
}
}
class C: A() {
override fun foo(b: Int) {
}
}
class D: B(), Z {
override fun foo(b: Int) {
}
}
class U {
fun bar(a: A) {
a.foo(2)
}
fun bar(b: B) {
b.foo(4)
}
fun bar(c: C) {
c.foo(6)
}
fun bar(d: D) {
d.foo(8)
}
fun bar(z: Z) {
z.foo(10)
}
}
@@ -0,0 +1,49 @@
interface Z {
open fun foo(a: Int, b: Int)
}
open class A {
open fun foo(a: Int, b: Int) {
}
}
open class B: A(), Z {
override fun foo(<caret>a: Int, b: Int) {
}
}
class C: A() {
override fun foo(a: Int, b: Int) {
}
}
class D: B(), Z {
override fun foo(a: Int, b: Int) {
}
}
class U {
fun bar(a: A) {
a.foo(1, 2)
}
fun bar(b: B) {
b.foo(3, 4)
}
fun bar(c: C) {
c.foo(5, 6)
}
fun bar(d: D) {
d.foo(7, 8)
}
fun bar(z: Z) {
z.foo(9, 10)
}
}
@@ -0,0 +1,49 @@
interface Z {
open fun foo(b: Int)
}
open class A {
open fun foo(b: Int) {
}
}
open class B: A(), Z {
override fun foo(b: Int) {
}
}
class C: A() {
override fun foo(b: Int) {
}
}
class D: B(), Z {
override fun foo(b: Int) {
}
}
class U {
fun bar(a: A) {
a.foo(2)
}
fun bar(b: B) {
b.foo(4)
}
fun bar(c: C) {
c.foo(6)
}
fun bar(d: D) {
d.foo(8)
}
fun bar(z: Z) {
z.foo(10)
}
}
@@ -0,0 +1,49 @@
interface Z {
open fun foo(a: Int, b: Int)
}
open class A {
open fun foo(a: Int, b: Int) {
}
}
open class B: A(), Z {
override fun foo(a: Int, b: Int) {
}
}
class C: A() {
override fun foo(<caret>a: Int, b: Int) {
}
}
class D: B(), Z {
override fun foo(a: Int, b: Int) {
}
}
class U {
fun bar(a: A) {
a.foo(1, 2)
}
fun bar(b: B) {
b.foo(3, 4)
}
fun bar(c: C) {
c.foo(5, 6)
}
fun bar(d: D) {
d.foo(7, 8)
}
fun bar(z: Z) {
z.foo(9, 10)
}
}
@@ -0,0 +1,49 @@
interface Z {
open fun foo(b: Int)
}
open class A {
open fun foo(b: Int) {
}
}
open class B: A(), Z {
override fun foo(b: Int) {
}
}
class C: A() {
override fun foo(b: Int) {
}
}
class D: B(), Z {
override fun foo(b: Int) {
}
}
class U {
fun bar(a: A) {
a.foo(2)
}
fun bar(b: B) {
b.foo(4)
}
fun bar(c: C) {
c.foo(6)
}
fun bar(d: D) {
d.foo(8)
}
fun bar(z: Z) {
z.foo(10)
}
}
@@ -0,0 +1,49 @@
interface Z {
open fun foo(a: Int, b: Int)
}
open class A {
open fun foo(a: Int, b: Int) {
}
}
open class B: A(), Z {
override fun foo(a: Int, b: Int) {
}
}
class C: A() {
override fun foo(a: Int, b: Int) {
}
}
class D: B(), Z {
override fun foo(<caret>a: Int, b: Int) {
}
}
class U {
fun bar(a: A) {
a.foo(1, 2)
}
fun bar(b: B) {
b.foo(3, 4)
}
fun bar(c: C) {
c.foo(5, 6)
}
fun bar(d: D) {
d.foo(7, 8)
}
fun bar(z: Z) {
z.foo(9, 10)
}
}
@@ -0,0 +1,49 @@
interface Z {
open fun foo(b: Int)
}
open class A {
open fun foo(b: Int) {
}
}
open class B: A(), Z {
override fun foo(b: Int) {
}
}
class C: A() {
override fun foo(b: Int) {
}
}
class D: B(), Z {
override fun foo(b: Int) {
}
}
class U {
fun bar(a: A) {
a.foo(2)
}
fun bar(b: B) {
b.foo(4)
}
fun bar(c: C) {
c.foo(6)
}
fun bar(d: D) {
d.foo(8)
}
fun bar(z: Z) {
z.foo(10)
}
}
@@ -0,0 +1,51 @@
interface Z {
open fun foo(<caret>a: Int, b: Int) {
println(a)
}
}
open class A {
open fun foo(a: Int, b: Int) {
}
}
open class B: A(), Z {
override fun foo(a: Int, b: Int) {
}
}
class C: A() {
override fun foo(a: Int, b: Int) {
}
}
class D: B(), Z {
override fun foo(a: Int, b: Int) {
}
}
class U {
fun bar(a: A) {
a.foo(1, 2)
}
fun bar(b: B) {
b.foo(3, 4)
}
fun bar(c: C) {
c.foo(5, 6)
}
fun bar(d: D) {
d.foo(7, 8)
}
fun bar(z: Z) {
z.foo(9, 10)
}
}
@@ -0,0 +1 @@
parameter a has 1 usage that is not safe to delete.
@@ -0,0 +1,49 @@
interface Z {
open fun foo(a: Int, b: Int)
}
open class A {
open fun foo(<caret>a: Int, b: Int) {
println(a)
}
}
open class B: A(), Z {
override fun foo(a: Int, b: Int) {
}
}
class C: A() {
override fun foo(a: Int, b: Int) {
}
}
class D: B(), Z {
override fun foo(a: Int, b: Int) {
}
}
class U {
fun bar(a: A) {
a.foo(1, 2)
}
fun bar(b: B) {
b.foo(3, 4)
}
fun bar(c: C) {
c.foo(5, 6)
}
fun bar(d: D) {
d.foo(7, 8)
}
fun bar(z: Z) {
z.foo(9, 10)
}
}
@@ -0,0 +1 @@
parameter a has 1 usage that is not safe to delete.
@@ -0,0 +1,49 @@
interface Z {
open fun foo(a: Int, b: Int)
}
open class A {
open fun foo(a: Int, b: Int) {
}
}
open class B: A(), Z {
override fun foo(<caret>a: Int, b: Int) {
println(a)
}
}
class C: A() {
override fun foo(a: Int, b: Int) {
}
}
class D: B(), Z {
override fun foo(a: Int, b: Int) {
}
}
class U {
fun bar(a: A) {
a.foo(1, 2)
}
fun bar(b: B) {
b.foo(3, 4)
}
fun bar(c: C) {
c.foo(5, 6)
}
fun bar(d: D) {
d.foo(7, 8)
}
fun bar(z: Z) {
z.foo(9, 10)
}
}
@@ -0,0 +1 @@
parameter a has 1 usage that is not safe to delete.
@@ -0,0 +1,49 @@
interface Z {
open fun foo(a: Int, b: Int)
}
open class A {
open fun foo(a: Int, b: Int) {
}
}
open class B: A(), Z {
override fun foo(a: Int, b: Int) {
}
}
class C: A() {
override fun foo(<caret>a: Int, b: Int) {
println(a)
}
}
class D: B(), Z {
override fun foo(a: Int, b: Int) {
}
}
class U {
fun bar(a: A) {
a.foo(1, 2)
}
fun bar(b: B) {
b.foo(3, 4)
}
fun bar(c: C) {
c.foo(5, 6)
}
fun bar(d: D) {
d.foo(7, 8)
}
fun bar(z: Z) {
z.foo(9, 10)
}
}
@@ -0,0 +1 @@
parameter a has 1 usage that is not safe to delete.
@@ -0,0 +1,49 @@
interface Z {
open fun foo(a: Int, b: Int)
}
open class A {
open fun foo(a: Int, b: Int) {
}
}
open class B: A(), Z {
override fun foo(a: Int, b: Int) {
}
}
class C: A() {
override fun foo(a: Int, b: Int) {
}
}
class D: B(), Z {
override fun foo(<caret>a: Int, b: Int) {
println(a)
}
}
class U {
fun bar(a: A) {
a.foo(1, 2)
}
fun bar(b: B) {
b.foo(3, 4)
}
fun bar(c: C) {
c.foo(5, 6)
}
fun bar(d: D) {
d.foo(7, 8)
}
fun bar(z: Z) {
z.foo(9, 10)
}
}
@@ -0,0 +1 @@
parameter a has 1 usage that is not safe to delete.
@@ -0,0 +1,51 @@
interface Z {
open fun foo(a: Int, b: Int) {
println(a)
}
}
open class A {
open fun foo(a: Int, b: Int) {
}
}
open class B: A(), Z {
override fun foo(<caret>a: Int, b: Int) {
}
}
class C: A() {
override fun foo(a: Int, b: Int) {
}
}
class D: B(), Z {
override fun foo(a: Int, b: Int) {
}
}
class U {
fun bar(a: A) {
a.foo(1, 2)
}
fun bar(b: B) {
b.foo(3, 4)
}
fun bar(c: C) {
c.foo(5, 6)
}
fun bar(d: D) {
d.foo(7, 8)
}
fun bar(z: Z) {
z.foo(9, 10)
}
}
@@ -0,0 +1 @@
parameter a has 1 usage that is not safe to delete.
@@ -0,0 +1,49 @@
interface Z {
open fun foo(a: Int, b: Int)
}
open class A {
open fun foo(a: Int, b: Int) {
println(a)
}
}
open class B: A(), Z {
override fun foo(a: Int, b: Int) {
}
}
class C: A() {
override fun foo(a: Int, b: Int) {
}
}
class D: B(), Z {
override fun foo(<caret>a: Int, b: Int) {
}
}
class U {
fun bar(a: A) {
a.foo(1, 2)
}
fun bar(b: B) {
b.foo(3, 4)
}
fun bar(c: C) {
c.foo(5, 6)
}
fun bar(d: D) {
d.foo(7, 8)
}
fun bar(z: Z) {
z.foo(9, 10)
}
}
@@ -0,0 +1 @@
parameter a has 1 usage that is not safe to delete.
@@ -0,0 +1,49 @@
interface Z {
open fun foo(a: Int, b: Int)
}
open class A {
open fun foo(<caret>a: Int, b: Int) {
}
}
open class B: A(), Z {
override fun foo(a: Int, b: Int) {
}
}
class C: A() {
override fun foo(a: Int, b: Int) {
}
}
class D: B(), Z {
override fun foo(a: Int, b: Int) {
println(a)
}
}
class U {
fun bar(a: A) {
a.foo(1, 2)
}
fun bar(b: B) {
b.foo(3, 4)
}
fun bar(c: C) {
c.foo(5, 6)
}
fun bar(d: D) {
d.foo(7, 8)
}
fun bar(z: Z) {
z.foo(9, 10)
}
}
@@ -0,0 +1 @@
parameter a has 1 usage that is not safe to delete.
@@ -0,0 +1,11 @@
class A {
fun foo(<caret>a: Int, b: String, c: Any) {
println(a)
}
}
class B {
fun bar(a: A) {
a.foo(1, "1", "!")
}
}
@@ -0,0 +1 @@
parameter a has 1 usage that is not safe to delete.
@@ -0,0 +1,11 @@
class A {
fun foo(<caret>a: Int, b: String, c: Any) {
println(b)
}
}
class B {
fun bar(a: A) {
a.foo(1, "1", "!")
}
}
@@ -0,0 +1,11 @@
class A {
fun foo(b: String, c: Any) {
println(b)
}
}
class B {
fun bar(a: A) {
a.foo("1", "!")
}
}
@@ -0,0 +1,9 @@
package test
fun foo(n: Int, <caret>f: (Int) -> Unit) {
println(n)
}
fun bar() {
foo(10) { n -> println(n) }
}
@@ -0,0 +1,9 @@
package test
fun foo(n: Int) {
println(n)
}
fun bar() {
foo(10)
}
@@ -0,0 +1,9 @@
package test
fun String.foo(n: Int, <caret>f: (Int) -> Unit) {
println(n)
}
fun bar() {
"".foo(10) { n -> println(n) }
}
@@ -0,0 +1,9 @@
package test
fun String.foo(n: Int) {
println(n)
}
fun bar() {
"".foo(10)
}
@@ -0,0 +1,7 @@
fun foo(<caret>a: Int, b: Int) {
}
fun bar() {
foo(a = 1, b = 2)
}
@@ -0,0 +1,7 @@
fun foo(b: Int) {
}
fun bar() {
foo(b = 2)
}
@@ -0,0 +1,7 @@
fun foo(<caret>a: Int, b: Int) {
}
fun bar() {
foo(b = 1, a = 2)
}
@@ -0,0 +1,7 @@
fun foo(b: Int) {
}
fun bar() {
foo(b = 1)
}
@@ -0,0 +1,7 @@
package test
class A(val <caret>name: String)
fun bar() {
println(A("").name)
}
@@ -0,0 +1 @@
parameter name has 1 usage that is not safe to delete.
@@ -0,0 +1,7 @@
package test
class A(val <caret>name: String)
fun bar() {
println(A(""))
}
@@ -0,0 +1,7 @@
package test
class A()
fun bar() {
println(A())
}
@@ -0,0 +1,11 @@
class A {
fun foo(<caret>a: Int, b: String, c: Any) {
}
}
class B {
fun bar(a: A) {
a.foo(1, "1", "!")
}
}
@@ -0,0 +1,11 @@
class A {
fun foo(b: String, c: Any) {
}
}
class B {
fun bar(a: A) {
a.foo("1", "!")
}
}
@@ -0,0 +1,11 @@
class A {
fun foo(a: Int, <caret>b: String, c: Any) {
}
}
class B {
fun bar(a: A) {
a.foo(1, "1", "!")
}
}
@@ -0,0 +1,11 @@
class A {
fun foo(a: Int, c: Any) {
}
}
class B {
fun bar(a: A) {
a.foo(1, "!")
}
}
@@ -0,0 +1,11 @@
class A {
fun foo(a: Int, b: String, <caret>c: Any) {
}
}
class B {
fun bar(a: A) {
a.foo(1, "1", "!")
}
}
@@ -0,0 +1,11 @@
class A {
fun foo(a: Int, b: String) {
}
}
class B {
fun bar(a: A) {
a.foo(1, "1")
}
}
@@ -0,0 +1,13 @@
class A {
}
fun A.foo(<caret>a: Int, b: String, c: Any) {
}
class B {
fun bar(a: A) {
a.foo(1, "1", "!")
}
}
@@ -0,0 +1,13 @@
class A {
}
fun A.foo(b: String, c: Any) {
}
class B {
fun bar(a: A) {
a.foo("1", "!")
}
}
@@ -0,0 +1,13 @@
class A {
}
fun A.foo(a: Int, <caret>b: String, c: Any) {
}
class B {
fun bar(a: A) {
a.foo(1, "1", "!")
}
}
@@ -0,0 +1,13 @@
class A {
}
fun A.foo(a: Int, c: Any) {
}
class B {
fun bar(a: A) {
a.foo(1, "!")
}
}
@@ -0,0 +1,13 @@
class A {
var foo: String
get() = "foo"
set(<caret>value: String) {
println()
}
}
class B {
fun bar(a: A) {
a.foo = "bar"
}
}
@@ -0,0 +1,13 @@
class A {
var foo: String
get() = "foo"
set(value: String) {
println()
}
}
class B {
fun bar(a: A) {
a.foo = "bar"
}
}
@@ -0,0 +1,7 @@
package test;
public class A {
public void usage(RemData p) {
System.out.println(p.component1());
}
}
@@ -0,0 +1,3 @@
package test
data public class RemData(val remo<caret>vable: Int)
@@ -0,0 +1 @@
parameter removable has 1 usage that is not safe to delete.
@@ -0,0 +1,21 @@
class U {
void bar(A a) {
a.foo(1, 2)
}
void bar(B b) {
b.foo(1, 2)
}
void bar(C c) {
c.foo(1, 2)
}
void bar(D d) {
d.foo(1, 2)
}
void bar(Z z) {
z.foo(1, 2)
}
}
@@ -0,0 +1,21 @@
class U {
void bar(A a) {
a.foo(2)
}
void bar(B b) {
b.foo(2)
}
void bar(C c) {
c.foo(2)
}
void bar(D d) {
d.foo(2)
}
void bar(Z z) {
z.foo(2)
}
}
@@ -0,0 +1,27 @@
interface Z {
open fun foo(<caret>a: Int, b: Int)
}
open class A {
open fun foo(a: Int, b: Int) {
}
}
open class B: A(), Z {
override fun foo(a: Int, b: Int) {
}
}
class C: A() {
override fun foo(a: Int, b: Int) {
}
}
class D: B(), Z {
override fun foo(a: Int, b: Int) {
}
}
@@ -0,0 +1,27 @@
interface Z {
open fun foo(b: Int)
}
open class A {
open fun foo(b: Int) {
}
}
open class B: A(), Z {
override fun foo(b: Int) {
}
}
class C: A() {
override fun foo(b: Int) {
}
}
class D: B(), Z {
override fun foo(b: Int) {
}
}
@@ -0,0 +1,21 @@
class U {
void bar(A a) {
a.foo(1, 2)
}
void bar(B b) {
b.foo(1, 2)
}
void bar(C c) {
c.foo(1, 2)
}
void bar(D d) {
d.foo(1, 2)
}
void bar(Z z) {
z.foo(1, 2)
}
}
@@ -0,0 +1,21 @@
class U {
void bar(A a) {
a.foo(2)
}
void bar(B b) {
b.foo(2)
}
void bar(C c) {
c.foo(2)
}
void bar(D d) {
d.foo(2)
}
void bar(Z z) {
z.foo(2)
}
}
@@ -0,0 +1,27 @@
interface Z {
open fun foo(a: Int, b: Int)
}
open class A {
open fun foo(<caret>a: Int, b: Int) {
}
}
open class B: A(), Z {
override fun foo(a: Int, b: Int) {
}
}
class C: A() {
override fun foo(a: Int, b: Int) {
}
}
class D: B(), Z {
override fun foo(a: Int, b: Int) {
}
}
@@ -0,0 +1,27 @@
interface Z {
open fun foo(b: Int)
}
open class A {
open fun foo(b: Int) {
}
}
open class B: A(), Z {
override fun foo(b: Int) {
}
}
class C: A() {
override fun foo(b: Int) {
}
}
class D: B(), Z {
override fun foo(b: Int) {
}
}
@@ -0,0 +1,21 @@
class U {
void bar(A a) {
a.foo(1, 2)
}
void bar(B b) {
b.foo(1, 2)
}
void bar(C c) {
c.foo(1, 2)
}
void bar(D d) {
d.foo(1, 2)
}
void bar(Z z) {
z.foo(1, 2)
}
}
@@ -0,0 +1,21 @@
class U {
void bar(A a) {
a.foo(2)
}
void bar(B b) {
b.foo(2)
}
void bar(C c) {
c.foo(2)
}
void bar(D d) {
d.foo(2)
}
void bar(Z z) {
z.foo(2)
}
}
@@ -0,0 +1,27 @@
interface Z {
open fun foo(a: Int, b: Int)
}
open class A {
open fun foo(a: Int, b: Int) {
}
}
open class B: A(), Z {
override fun foo(<caret>a: Int, b: Int) {
}
}
class C: A() {
override fun foo(a: Int, b: Int) {
}
}
class D: B(), Z {
override fun foo(a: Int, b: Int) {
}
}
@@ -0,0 +1,27 @@
interface Z {
open fun foo(b: Int)
}
open class A {
open fun foo(b: Int) {
}
}
open class B: A(), Z {
override fun foo(b: Int) {
}
}
class C: A() {
override fun foo(b: Int) {
}
}
class D: B(), Z {
override fun foo(b: Int) {
}
}
@@ -0,0 +1,21 @@
class U {
void bar(A a) {
a.foo(1, 2)
}
void bar(B b) {
b.foo(1, 2)
}
void bar(C c) {
c.foo(1, 2)
}
void bar(D d) {
d.foo(1, 2)
}
void bar(Z z) {
z.foo(1, 2)
}
}
@@ -0,0 +1,21 @@
class U {
void bar(A a) {
a.foo(2)
}
void bar(B b) {
b.foo(2)
}
void bar(C c) {
c.foo(2)
}
void bar(D d) {
d.foo(2)
}
void bar(Z z) {
z.foo(2)
}
}
@@ -0,0 +1,27 @@
interface Z {
open fun foo(a: Int, b: Int)
}
open class A {
open fun foo(a: Int, b: Int) {
}
}
open class B: A(), Z {
override fun foo(a: Int, b: Int) {
}
}
class C: A() {
override fun foo(<caret>a: Int, b: Int) {
}
}
class D: B(), Z {
override fun foo(a: Int, b: Int) {
}
}
@@ -0,0 +1,27 @@
interface Z {
open fun foo(b: Int)
}
open class A {
open fun foo(b: Int) {
}
}
open class B: A(), Z {
override fun foo(b: Int) {
}
}
class C: A() {
override fun foo(b: Int) {
}
}
class D: B(), Z {
override fun foo(b: Int) {
}
}
@@ -0,0 +1,21 @@
class U {
void bar(A a) {
a.foo(1, 2)
}
void bar(B b) {
b.foo(1, 2)
}
void bar(C c) {
c.foo(1, 2)
}
void bar(D d) {
d.foo(1, 2)
}
void bar(Z z) {
z.foo(1, 2)
}
}
@@ -0,0 +1,21 @@
class U {
void bar(A a) {
a.foo(2)
}
void bar(B b) {
b.foo(2)
}
void bar(C c) {
c.foo(2)
}
void bar(D d) {
d.foo(2)
}
void bar(Z z) {
z.foo(2)
}
}
@@ -0,0 +1,27 @@
interface Z {
open fun foo(a: Int, b: Int)
}
open class A {
open fun foo(a: Int, b: Int) {
}
}
open class B: A(), Z {
override fun foo(a: Int, b: Int) {
}
}
class C: A() {
override fun foo(a: Int, b: Int) {
}
}
class D: B(), Z {
override fun foo(<caret>a: Int, b: Int) {
}
}
@@ -0,0 +1,27 @@
interface Z {
open fun foo(b: Int)
}
open class A {
open fun foo(b: Int) {
}
}
open class B: A(), Z {
override fun foo(b: Int) {
}
}
class C: A() {
override fun foo(b: Int) {
}
}
class D: B(), Z {
override fun foo(b: Int) {
}
}
@@ -0,0 +1,21 @@
class U {
void bar(A a) {
a.foo(1, 2)
}
void bar(B b) {
b.foo(3, 4)
}
void bar(C c) {
c.foo(5, 6)
}
void bar(D d) {
d.foo(7, 8)
}
void bar(Z z) {
z.foo(9, 10)
}
}
@@ -0,0 +1,29 @@
interface Z {
open fun foo(<caret>a: Int, b: Int) {
println(a)
}
}
open class A {
open fun foo(a: Int, b: Int) {
}
}
open class B: A(), Z {
override fun foo(a: Int, b: Int) {
}
}
class C: A() {
override fun foo(a: Int, b: Int) {
}
}
class D: B(), Z {
override fun foo(a: Int, b: Int) {
}
}
@@ -0,0 +1 @@
parameter a has 1 usage that is not safe to delete.
@@ -0,0 +1,21 @@
class U {
void bar(A a) {
a.foo(1, 2)
}
void bar(B b) {
b.foo(3, 4)
}
void bar(C c) {
c.foo(5, 6)
}
void bar(D d) {
d.foo(7, 8)
}
void bar(Z z) {
z.foo(9, 10)
}
}
@@ -0,0 +1,27 @@
interface Z {
open fun foo(a: Int, b: Int)
}
open class A {
open fun foo(<caret>a: Int, b: Int) {
println(a)
}
}
open class B: A(), Z {
override fun foo(a: Int, b: Int) {
}
}
class C: A() {
override fun foo(a: Int, b: Int) {
}
}
class D: B(), Z {
override fun foo(a: Int, b: Int) {
}
}
@@ -0,0 +1 @@
parameter a has 1 usage that is not safe to delete.
@@ -0,0 +1,21 @@
class U {
void bar(A a) {
a.foo(1, 2)
}
void bar(B b) {
b.foo(3, 4)
}
void bar(C c) {
c.foo(5, 6)
}
void bar(D d) {
d.foo(7, 8)
}
void bar(Z z) {
z.foo(9, 10)
}
}
@@ -0,0 +1,27 @@
interface Z {
open fun foo(a: Int, b: Int)
}
open class A {
open fun foo(a: Int, b: Int) {
}
}
open class B: A(), Z {
override fun foo(<caret>a: Int, b: Int) {
println(a)
}
}
class C: A() {
override fun foo(a: Int, b: Int) {
}
}
class D: B(), Z {
override fun foo(a: Int, b: Int) {
}
}
@@ -0,0 +1 @@
parameter a has 1 usage that is not safe to delete.
@@ -0,0 +1,21 @@
class U {
void bar(A a) {
a.foo(1, 2)
}
void bar(B b) {
b.foo(3, 4)
}
void bar(C c) {
c.foo(5, 6)
}
void bar(D d) {
d.foo(7, 8)
}
void bar(Z z) {
z.foo(9, 10)
}
}
@@ -0,0 +1,27 @@
interface Z {
open fun foo(a: Int, b: Int)
}
open class A {
open fun foo(a: Int, b: Int) {
}
}
open class B: A(), Z {
override fun foo(a: Int, b: Int) {
}
}
class C: A() {
override fun foo(<caret>a: Int, b: Int) {
println(a)
}
}
class D: B(), Z {
override fun foo(a: Int, b: Int) {
}
}
@@ -0,0 +1 @@
parameter a has 1 usage that is not safe to delete.
@@ -0,0 +1,21 @@
class U {
void bar(A a) {
a.foo(1, 2)
}
void bar(B b) {
b.foo(3, 4)
}
void bar(C c) {
c.foo(5, 6)
}
void bar(D d) {
d.foo(7, 8)
}
void bar(Z z) {
z.foo(9, 10)
}
}

Some files were not shown because too many files have changed in this diff Show More