Skip to content

Commit

Permalink
Added @JvmStatic
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanOltmann committed Apr 7, 2024
1 parent d9c36a7 commit 46502b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/commonMain/kotlin/com/ashampoo/kim/format/ImageParser.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import com.ashampoo.kim.format.tiff.TiffImageParser
import com.ashampoo.kim.format.webp.WebPImageParser
import com.ashampoo.kim.input.ByteReader
import com.ashampoo.kim.model.ImageFormat
import kotlin.jvm.JvmStatic

fun interface ImageParser {

Expand All @@ -32,6 +33,7 @@ fun interface ImageParser {

companion object {

@JvmStatic
fun forFormat(imageFormat: ImageFormat): ImageParser? =
when (imageFormat) {

Expand Down

0 comments on commit 46502b9

Please sign in to comment.