delete unnecessary interface
This commit is contained in:
committed by
Pavel V. Talanov
parent
39190533b1
commit
7064ccd320
@@ -119,5 +119,5 @@ public open class DefaultSwitchLabelStatement(): Statement() {
|
||||
// Other ------------------------------------------------------------------------------------------------------
|
||||
|
||||
public open class SynchronizedStatement(val expression: Expression, val block: Block): Statement() {
|
||||
public override fun toKotlin() = "synchronized (" + expression?.toKotlin() + ") "+ block.toKotlin()
|
||||
public override fun toKotlin() = "synchronized (" + expression.toKotlin() + ") "+ block.toKotlin()
|
||||
}
|
||||
|
||||
@@ -7,10 +7,10 @@ import org.jetbrains.jet.j2k.ast.types.Type
|
||||
import java.util.List
|
||||
import org.jetbrains.jet.j2k.ConverterUtil.isAnnotatedAsNotNull
|
||||
|
||||
public open class ElementVisitor(val myConverter : Converter) : JavaElementVisitor(), J2KVisitor {
|
||||
public open class ElementVisitor(val myConverter : Converter) : JavaElementVisitor() {
|
||||
private var myResult : Element = Element.EMPTY_ELEMENT
|
||||
|
||||
public override fun getConverter() : Converter {
|
||||
public fun getConverter() : Converter {
|
||||
return myConverter
|
||||
}
|
||||
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.jetbrains.jet.j2k.visitors;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.jet.j2k.Converter;
|
||||
|
||||
/**
|
||||
* @author abreslav
|
||||
*/
|
||||
public interface J2KVisitor {
|
||||
@NotNull
|
||||
Converter getConverter();
|
||||
}
|
||||
@@ -10,7 +10,7 @@ import org.jetbrains.jet.j2k.util.AstUtil
|
||||
import java.util.LinkedList
|
||||
import java.util.List
|
||||
|
||||
public open class TypeVisitor(private val myConverter : Converter) : PsiTypeVisitor<Type>(), J2KVisitor {
|
||||
public open class TypeVisitor(private val myConverter : Converter) : PsiTypeVisitor<Type>() {
|
||||
private var myResult : Type = EmptyType()
|
||||
public open fun getResult() : Type {
|
||||
return myResult
|
||||
@@ -120,8 +120,6 @@ public open class TypeVisitor(private val myConverter : Converter) : PsiTypeVisi
|
||||
return myResult
|
||||
}
|
||||
|
||||
public override fun getConverter() : Converter = myConverter
|
||||
|
||||
class object {
|
||||
private fun createQualifiedName(classType : PsiClassType) : String {
|
||||
if (classType is PsiClassReferenceType)
|
||||
|
||||
Reference in New Issue
Block a user