From f567ca3058b3c9e6cda298cb1b5c605a81db58f3 Mon Sep 17 00:00:00 2001 From: yevhenii-nadtochii Date: Fri, 11 Oct 2024 17:20:45 +0200 Subject: [PATCH] Address Detekt warning --- .../spine/tools/mc/java/comparable/action/AddComparator.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mc-java-comparable/src/main/kotlin/io/spine/tools/mc/java/comparable/action/AddComparator.kt b/mc-java-comparable/src/main/kotlin/io/spine/tools/mc/java/comparable/action/AddComparator.kt index 9be10129..f32a6db3 100644 --- a/mc-java-comparable/src/main/kotlin/io/spine/tools/mc/java/comparable/action/AddComparator.kt +++ b/mc-java-comparable/src/main/kotlin/io/spine/tools/mc/java/comparable/action/AddComparator.kt @@ -148,8 +148,9 @@ public class AddComparator( when { hasCompareByOption -> { check(fromRegistry == null) { - "The field `${path.joined}` must either implement `Comparable` OR have a `Comparator` " + - "registered in the `ComparatorRegistry`, but not both simultaneously." + "The field `${path.joined}` must either implement `Comparable` OR have " + + "a `Comparator` registered in the `ComparatorRegistry`, " + + "but not both simultaneously." } comparingBy(path) }