Skip to content

Commit

Permalink
fixed sonar warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
gmuth committed Nov 13, 2023
1 parent 8239b48 commit 7353ace
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/kotlin/de/gmuth/ipp/core/IppInputStream.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import java.io.DataInputStream
import java.io.EOFException
import java.net.URI
import java.nio.charset.Charset
import java.util.logging.Level
import java.util.logging.Logger.getLogger

class IppInputStream(inputStream: BufferedInputStream) : DataInputStream(inputStream) {
Expand Down Expand Up @@ -185,9 +184,8 @@ class IppInputStream(inputStream: BufferedInputStream) : DataInputStream(inputSt
else -> { // ByteArray - possibly empty
readLengthAndValue().apply {
if (isNotEmpty()) {
val level = if (tag == Unsupported_) Level.FINEST else Level.WARNING
logger.log(level) { "Ignore $size value bytes tagged '$tag'" }
hexdump { logger.log(level) { it } }
logger.finest { "Ignore $size value bytes tagged '$tag'" }
hexdump { logger.finest { it } }
}
}
}
Expand Down

0 comments on commit 7353ace

Please sign in to comment.