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 } }