Skip to content

Commit

Permalink
inspect: Fix some other minor inspections
Browse files Browse the repository at this point in the history
  • Loading branch information
nhubbard committed May 23, 2024
1 parent 72f5bf5 commit 867fab8
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ import com.fasterxml.jackson.databind.type.CollectionType
import com.fasterxml.jackson.databind.type.MapType

object EmptyStringToCollectionDeserializerModifier : BeanDeserializerModifier() {
private fun readResolve(): Any = EmptyStringToCollectionDeserializerModifier

override fun modifyMapDeserializer(
config: DeserializationConfig?,
type: MapType?,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

@file:Suppress("unused")
@file:Suppress("unused", "EmptyMethod")

package io.github.nhubbard.konf.snippet

Expand Down
2 changes: 2 additions & 0 deletions src/test/kotlin/io/github/nhubbard/konf/helpers/Nested.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* limitations under the License.
*/

@file:Suppress("unused")

package io.github.nhubbard.konf.helpers

import io.github.nhubbard.konf.ConfigSpec
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class TestXmlWriter {
private val provider = {
val config = Config {
addSpec(object : ConfigSpec() {
@Suppress("unused")
val key by optional("value")
})
}
Expand Down
1 change: 1 addition & 0 deletions src/test/resources/source/source.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# suppress inspection "UnusedProperty" for whole file
#
# Copyright (c) 2017-2024 Uchuhimo
# Copyright (c) 2024-present Nicholas Hubbard
Expand Down

0 comments on commit 867fab8

Please sign in to comment.