diff options
author | KHobbits <rob@khobbits.co.uk> | 2012-12-31 02:28:52 +0000 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2012-12-31 02:28:52 +0000 |
commit | 86619275992b4b29bfac91897986b10f2ef863cb (patch) | |
tree | c46ac4dd7fb3a7d7dde90d508e3b123efd09def7 /Essentials2Compat/src/com/earth2me/essentials/Util.java | |
parent | a6b83ca260386fbafb24473aca5f95dc2d5c284b (diff) | |
download | Essentials-86619275992b4b29bfac91897986b10f2ef863cb.tar Essentials-86619275992b4b29bfac91897986b10f2ef863cb.tar.gz Essentials-86619275992b4b29bfac91897986b10f2ef863cb.tar.lz Essentials-86619275992b4b29bfac91897986b10f2ef863cb.tar.xz Essentials-86619275992b4b29bfac91897986b10f2ef863cb.zip |
Merge gravy's pull and reformat code
Diffstat (limited to 'Essentials2Compat/src/com/earth2me/essentials/Util.java')
-rw-r--r-- | Essentials2Compat/src/com/earth2me/essentials/Util.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Essentials2Compat/src/com/earth2me/essentials/Util.java b/Essentials2Compat/src/com/earth2me/essentials/Util.java index 3a34a85fc..1bdc878bb 100644 --- a/Essentials2Compat/src/com/earth2me/essentials/Util.java +++ b/Essentials2Compat/src/com/earth2me/essentials/Util.java @@ -2,7 +2,8 @@ package com.earth2me.essentials; import java.text.DecimalFormat; import java.text.DecimalFormatSymbols; -import java.util.*; +import java.util.Collection; +import java.util.Locale; import java.util.logging.Logger; import java.util.regex.Pattern; @@ -12,6 +13,7 @@ public class Util private Util() { } + private final static Logger logger = Logger.getLogger("Minecraft"); private final static Pattern INVALIDFILECHARS = Pattern.compile("[^a-z0-9]"); private final static Pattern INVALIDCHARS = Pattern.compile("[^\t\n\r\u0020-\u007E\u0085\u00A0-\uD7FF\uE000-\uFFFC]"); @@ -46,7 +48,7 @@ public class Util } return str; } - + public static double roundDouble(final double d) { return Math.round(d * 100.0) / 100.0; |