diff --git a/compiler/frontend/src/org/jetbrains/kotlin/diagnostics/Diagnostic.kt b/compiler/frontend/src/org/jetbrains/kotlin/diagnostics/Diagnostic.kt index 248c60d2e57..0a832d10a7b 100644 --- a/compiler/frontend/src/org/jetbrains/kotlin/diagnostics/Diagnostic.kt +++ b/compiler/frontend/src/org/jetbrains/kotlin/diagnostics/Diagnostic.kt @@ -13,32 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +package org.jetbrains.kotlin.diagnostics -package org.jetbrains.kotlin.diagnostics; +import com.intellij.openapi.util.TextRange +import com.intellij.psi.PsiElement +import com.intellij.psi.PsiFile -import com.intellij.openapi.util.TextRange; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiFile; -import org.jetbrains.annotations.NotNull; - -import java.util.List; - -public interface Diagnostic { - - @NotNull - DiagnosticFactory getFactory(); - - @NotNull - Severity getSeverity(); - - @NotNull - PsiElement getPsiElement(); - - @NotNull - List getTextRanges(); - - @NotNull - PsiFile getPsiFile(); - - boolean isValid(); -} +interface Diagnostic { + val factory: DiagnosticFactory<*> + val severity: Severity + val psiElement: PsiElement + val textRanges: List + val psiFile: PsiFile + val isValid: Boolean +} \ No newline at end of file