From: David ‘Bombe’ Roden Date: Mon, 26 May 2008 23:56:23 +0000 (+0200) Subject: make methods static X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=2ea0b24f4e9ec59159c1a9e67d486be4f4053ae1;p=jSite2.git make methods static --- diff --git a/src/net/pterodactylus/util/io/MimeTypes.java b/src/net/pterodactylus/util/io/MimeTypes.java index b6ffff0..6c31c28 100644 --- a/src/net/pterodactylus/util/io/MimeTypes.java +++ b/src/net/pterodactylus/util/io/MimeTypes.java @@ -768,7 +768,7 @@ public class MimeTypes { * * @return All known MIME types */ - public List getAllMimeTypes() { + public static List getAllMimeTypes() { return mimeTypes; } @@ -780,7 +780,7 @@ public class MimeTypes { * @return A list of MIME types, or an empty list if there are no registered * MIME types for the extension */ - public List getMimeTypes(String extension) { + public static List getMimeTypes(String extension) { if (extensionMimeTypes.containsKey(extension)) { return extensionMimeTypes.get(extension); }