ENT-11351 - Compiler warnings pass 2 (#7655)

* Addressed compiler warnings

* Removed unchecked cast fixes - not for this PR

* Sorted out detekt issues
This commit is contained in:
Chris Cochrane
2024-01-23 10:19:03 +00:00
committed by GitHub
parent a0ce265b35
commit f15e6ec56a
20 changed files with 113 additions and 125 deletions

View File

@ -61,7 +61,7 @@ class SpecificationTest {
override fun parseValid(configuration: Config, options: Configuration.Options): Valid<AtomicLong> {
val config = configuration.withOptions(options)
return valid(AtomicLong(config[maxElement]!!))
return valid(AtomicLong(config[maxElement]))
}
}
@ -103,7 +103,7 @@ class SpecificationTest {
if (elements.any { element -> element <= 1 }) {
return invalid(Configuration.Validation.Error.BadValue.of("elements cannot be less than or equal to 1"))
}
return valid(elements.max()!!)
return valid(elements.max())
}
val spec = object : Configuration.Specification<AtomicLong>("AtomicLong") {