From de3cb4567f4b5b802f808f64cde116b3cfd613b6 Mon Sep 17 00:00:00 2001 From: Yan Zhulanow Date: Fri, 3 Feb 2017 21:47:18 +0300 Subject: [PATCH] Minor: Remove obsolete JAVA_FILE_PARSING_ERROR constant, fix corresponding test --- .../src/org/jetbrains/kotlin/kapt3/diagnostic/KaptError.kt | 1 - .../test/org/jetbrains/kotlin/kapt3/test/JavaKaptContextTest.kt | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/kapt3/src/org/jetbrains/kotlin/kapt3/diagnostic/KaptError.kt b/plugins/kapt3/src/org/jetbrains/kotlin/kapt3/diagnostic/KaptError.kt index b752ae6eaeb..b1c54be1847 100644 --- a/plugins/kapt3/src/org/jetbrains/kotlin/kapt3/diagnostic/KaptError.kt +++ b/plugins/kapt3/src/org/jetbrains/kotlin/kapt3/diagnostic/KaptError.kt @@ -20,7 +20,6 @@ class KaptError : RuntimeException { val kind: Kind enum class Kind(val message: String) { - JAVA_FILE_PARSING_ERROR("Java file parsing error"), ERROR_WHILE_ANALYSIS("Java file analysis error"), EXCEPTION("Exception while annotation processing"), ERROR_RAISED("Error while annotation processing"), diff --git a/plugins/kapt3/test/org/jetbrains/kotlin/kapt3/test/JavaKaptContextTest.kt b/plugins/kapt3/test/org/jetbrains/kotlin/kapt3/test/JavaKaptContextTest.kt index f49b0aa93ff..1aeb57f673b 100644 --- a/plugins/kapt3/test/org/jetbrains/kotlin/kapt3/test/JavaKaptContextTest.kt +++ b/plugins/kapt3/test/org/jetbrains/kotlin/kapt3/test/JavaKaptContextTest.kt @@ -132,7 +132,7 @@ class JavaKaptContextTest { try { doAnnotationProcessing(File(TEST_DATA_DIR, "ParseError.java"), simpleProcessor(), TEST_DATA_DIR) } catch (e: KaptError) { - assertEquals(KaptError.Kind.JAVA_FILE_PARSING_ERROR, e.kind) + assertEquals(KaptError.Kind.ERROR_RAISED, e.kind) throw e } }