Changed synthetic properties naming for getters starting with "is"

This commit is contained in:
Valentin Kipyatkov
2015-07-17 14:28:21 +03:00
parent cf2aa73ee6
commit b6027a0efe
16 changed files with 127 additions and 20 deletions
@@ -0,0 +1,4 @@
// WITH_RUNTIME
fun foo(thread: Thread) {
thread.<caret>isDaemon()
}
@@ -0,0 +1,4 @@
// WITH_RUNTIME
fun foo(thread: Thread) {
thread.<caret>isDaemon
}
@@ -0,0 +1,4 @@
// WITH_RUNTIME
fun foo(thread: Thread) {
thread.<caret>setDaemon(true)
}
@@ -0,0 +1,4 @@
// WITH_RUNTIME
fun foo(thread: Thread) {
thread.<caret>isDaemon = true
}
@@ -0,0 +1,5 @@
import testing.JavaClass
fun usages(javaClass: JavaClass) {
javaClass.isSomethingNew = !javaClass.isSomething
}
@@ -0,0 +1,6 @@
package testing;
public class JavaClass {
public boolean isSomething() { return true; }
public void setSomethingNew(boolean value) {}
}
@@ -0,0 +1,5 @@
import testing.JavaClass
fun usages(javaClass: JavaClass) {
javaClass.isSomething = !javaClass.isSomething
}
@@ -0,0 +1,6 @@
package testing;
public class JavaClass {
public boolean isSomething() { return true; }
public void setSomething(boolean value) {}
}
@@ -0,0 +1,6 @@
{
"type": "JAVA_METHOD",
"classId": "testing/JavaClass",
"methodSignature": "void setSomething(boolean value)",
"newName": "setSomethingNew"
}