Skip to content

Commit 4d7a962

Browse files
author
yevhenii-nadtochii
committed
Address Detekt warnings
1 parent 9da3c13 commit 4d7a962

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

model/src/main/kotlin/io/spine/validation/bound/KNumericBound.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ internal data class KNumericBound(
5555
if (otherValue::class != value::class) {
5656
error(
5757
"Illegal comparison of numeric bounds with incompatible value types." +
58-
" Type of the instance value: `${simpleNameOf(value)}`, the other value has" +
59-
" the type of `${simpleNameOf(otherValue)}`."
58+
" Type of the instance value: `${simpleNameOf(value)}`, the other value" +
59+
" has the type of `${simpleNameOf(otherValue)}`."
6060
)
6161
}
6262
return when (value) {

model/src/main/kotlin/io/spine/validation/bound/NumericBoundParser.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ internal class NumericBoundParser(
166166
fieldName.addAll(fieldPath.split("."))
167167
}
168168

169+
@Suppress("SwallowedException")
169170
val boundField = try {
170171
val (messageType, _) = typeSystem.findMessage(field.declaringType)!!
171172
typeSystem.resolve(boundFieldPath, messageType)

0 commit comments

Comments
 (0)