From 1b95a8630caf5c291f2ba4dba3bd167bc8190ab5 Mon Sep 17 00:00:00 2001 From: LatvianModder Date: Mon, 2 Oct 2023 21:11:56 +0300 Subject: [PATCH] Added MimeType.SVG --- src/main/java/dev/latvian/apps/webutils/html/Tag.java | 2 ++ src/main/java/dev/latvian/apps/webutils/net/MimeType.java | 1 + 2 files changed, 3 insertions(+) diff --git a/src/main/java/dev/latvian/apps/webutils/html/Tag.java b/src/main/java/dev/latvian/apps/webutils/html/Tag.java index 45f3ba1..34be36d 100644 --- a/src/main/java/dev/latvian/apps/webutils/html/Tag.java +++ b/src/main/java/dev/latvian/apps/webutils/html/Tag.java @@ -9,6 +9,7 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; +@SuppressWarnings({"unused", "UnusedReturnValue"}) public interface Tag extends TagConvertible { @Override default void appendHTMLTag(Tag parent) { @@ -273,6 +274,7 @@ default Tag div(String classes) { return div().classes(classes); } + @SuppressWarnings("ConfusingMainMethod") default Tag main() { return paired("main"); } diff --git a/src/main/java/dev/latvian/apps/webutils/net/MimeType.java b/src/main/java/dev/latvian/apps/webutils/net/MimeType.java index f84d25d..39f16c8 100644 --- a/src/main/java/dev/latvian/apps/webutils/net/MimeType.java +++ b/src/main/java/dev/latvian/apps/webutils/net/MimeType.java @@ -10,4 +10,5 @@ public interface MimeType { String FORM = "application/x-www-form-urlencoded"; String XML = "application/xml; charset=utf-8"; String XML_TEXT = "text/xml; charset=utf-8"; + String SVG = "image/svg+xml; charset=utf-8"; }