Use javaClass instead of getClass()
This commit is contained in:
@@ -85,7 +85,7 @@ private object DebugTextBuildingVisitor : JetVisitor<String, Unit>() {
|
||||
|
||||
override fun visitJetElement(element: JetElement, data: Unit?): String? {
|
||||
if (element is JetElementImplStub<*>) {
|
||||
LOG.error("getDebugText() is not defined for ${element.getClass()}")
|
||||
LOG.error("getDebugText() is not defined for ${element.javaClass}")
|
||||
}
|
||||
return element.getText()
|
||||
}
|
||||
|
||||
@@ -203,7 +203,7 @@ public fun PsiElement.deleteElementAndCleanParent() {
|
||||
|
||||
JetPsiUtil.deleteElementWithDelimiters(this)
|
||||
[suppress("UNCHECKED_CAST")]
|
||||
JetPsiUtil.deleteChildlessElement(parent, this.getClass() as Class<PsiElement>)
|
||||
JetPsiUtil.deleteChildlessElement(parent, this.javaClass as Class<PsiElement>)
|
||||
}
|
||||
|
||||
public fun PsiElement.parameterIndex(): Int {
|
||||
@@ -329,4 +329,4 @@ public fun JetElement.getCalleeExpressionIfAny(): JetExpression? {
|
||||
}
|
||||
}
|
||||
|
||||
public fun JetElement.getTextWithLocation(): String = "'${this.getText()}' at ${DiagnosticUtils.atLocation(this)}"
|
||||
public fun JetElement.getTextWithLocation(): String = "'${this.getText()}' at ${DiagnosticUtils.atLocation(this)}"
|
||||
|
||||
@@ -30,7 +30,7 @@ import java.util.ArrayList
|
||||
public open class JetStubBaseImpl<T : JetElementImplStub<*>>(parent: StubElement<*>?, elementType: IStubElementType<*, *>) : StubBase<T>(parent, elementType) {
|
||||
|
||||
override fun toString(): String {
|
||||
val stubInterface = this.getClass().getInterfaces().first()
|
||||
val stubInterface = this.javaClass.getInterfaces().first()
|
||||
val propertiesValues = renderPropertyValues(stubInterface)
|
||||
if (propertiesValues.isEmpty()) {
|
||||
return ""
|
||||
|
||||
@@ -37,6 +37,6 @@ public class ExceptionTracker : ModificationTracker, LockBasedStorageManager.Exc
|
||||
}
|
||||
|
||||
override fun toString(): String {
|
||||
return getClass().getName() + ": " + getModificationCount()
|
||||
return javaClass.getName() + ": " + getModificationCount()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user