From b9eaa217a8d987b5bb2778f0b91990faa52cf00e Mon Sep 17 00:00:00 2001 From: Paul Dingemans Date: Sat, 22 Jul 2023 21:22:05 +0200 Subject: [PATCH] Drop obsolete class LintError in ktlint-api-consumer (#2145) --- .../src/main/kotlin/LintError.kt | 32 ------------------- 1 file changed, 32 deletions(-) delete mode 100644 ktlint-api-consumer/src/main/kotlin/LintError.kt diff --git a/ktlint-api-consumer/src/main/kotlin/LintError.kt b/ktlint-api-consumer/src/main/kotlin/LintError.kt deleted file mode 100644 index 178de37a79..0000000000 --- a/ktlint-api-consumer/src/main/kotlin/LintError.kt +++ /dev/null @@ -1,32 +0,0 @@ -import java.io.Serializable - -/** - * Lint error. - * - * @param line line number (one-based) - * @param col column number (one-based) - * @param ruleId rule id (prepended with "<ruleSetId>:" in case of non-standard ruleset) - * @param detail error message - */ -public data class LintError( - val line: Int, - val col: Int, - val ruleId: String, - val detail: String, -) : Serializable { - // fixme: - // not included in equals/hashCode for backward-compatibility with ktlint < 0.25.0 - // subject to change in 1.0.0 - var canBeAutoCorrected: Boolean = false - private set - - public constructor( - line: Int, - col: Int, - ruleId: String, - detail: String, - canBeAutoCorrected: Boolean, - ) : this(line, col, ruleId, detail) { - this.canBeAutoCorrected = canBeAutoCorrected - } -}