projects
/
jSite2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make methods static
[jSite2.git]
/
src
/
net
/
pterodactylus
/
util
/
io
/
MimeTypes.java
diff --git
a/src/net/pterodactylus/util/io/MimeTypes.java
b/src/net/pterodactylus/util/io/MimeTypes.java
index
b6ffff0
..
6c31c28
100644
(file)
--- 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
*/
*
* @return All known MIME types
*/
- public List<String> getAllMimeTypes() {
+ public
static
List<String> getAllMimeTypes() {
return mimeTypes;
}
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
*/
* @return A list of MIME types, or an empty list if there are no registered
* MIME types for the extension
*/
- public List<String> getMimeTypes(String extension) {
+ public
static
List<String> getMimeTypes(String extension) {
if (extensionMimeTypes.containsKey(extension)) {
return extensionMimeTypes.get(extension);
}
if (extensionMimeTypes.containsKey(extension)) {
return extensionMimeTypes.get(extension);
}