Skip to content

Commit a076cc5

Browse files
authored
[content-type] Change deprecation level of APPLICATION_JS to WARNING (javalin#1838)
1 parent 36bb919 commit a076cc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javalin/src/main/java/io/javalin/http/ContentType.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ enum class ContentType(
7777
@Deprecated(
7878
message = "use TEXT_JS instead.",
7979
replaceWith = ReplaceWith("io.javalin.http.ContentType.TEXT_JS"),
80-
level = DeprecationLevel.ERROR
80+
level = DeprecationLevel.WARNING
8181
)
8282
APPLICATION_JS("application/javascript", true, "application/javascript"),
8383
APPLICATION_JSON("application/json", true, "json"),

0 commit comments

Comments
 (0)