diff --git a/Essentials/pom.xml b/Essentials/pom.xml index 3b34f2bd3..ec316b8cf 100644 --- a/Essentials/pom.xml +++ b/Essentials/pom.xml @@ -34,7 +34,7 @@ org.spigotmc spigot-api - 1.8.4-R0.1-SNAPSHOT + 1.8.7-R0.1-SNAPSHOT BOSEconomy diff --git a/Essentials/src/com/earth2me/essentials/utils/FloatUtil.java b/Essentials/src/com/earth2me/essentials/utils/FloatUtil.java index ba17a4133..188645def 100644 --- a/Essentials/src/com/earth2me/essentials/utils/FloatUtil.java +++ b/Essentials/src/com/earth2me/essentials/utils/FloatUtil.java @@ -3,33 +3,27 @@ package com.earth2me.essentials.utils; /** * parseFloat and parseDouble proxies that are protected against non-finite values. */ -public class FloatUtil -{ - private FloatUtil() {} +public class FloatUtil { + private FloatUtil() { + } - public static float parseFloat(String s) throws NumberFormatException - { + public static float parseFloat(String s) throws NumberFormatException { float f = Float.parseFloat(s); - if (Float.isNaN(f)) - { + if (Float.isNaN(f)) { throw new NumberFormatException("NaN is not valid"); } - if (Float.isInfinite(f)) - { + if (Float.isInfinite(f)) { throw new NumberFormatException("Infinity is not valid"); } return f; } - public static double parseDouble(String s) throws NumberFormatException - { + public static double parseDouble(String s) throws NumberFormatException { double d = Double.parseDouble(s); - if (Double.isNaN(d)) - { + if (Double.isNaN(d)) { throw new NumberFormatException("NaN is not valid"); } - if (Double.isInfinite(d)) - { + if (Double.isInfinite(d)) { throw new NumberFormatException("Infinity is not valid"); } return d; diff --git a/pom.xml b/pom.xml index 4008ec045..5167d453a 100644 --- a/pom.xml +++ b/pom.xml @@ -47,7 +47,7 @@ org.spigotmc spigot-api - 1.8.3-R0.1-SNAPSHOT + 1.8.7-R0.1-SNAPSHOT junit