diff --git a/README.md b/README.md
index b90b8a6f2..7d99e1f2d 100644
--- a/README.md
+++ b/README.md
@@ -17,8 +17,8 @@ is to provide a lag-free and smooth experience.
### Developer Resources
* *Outdated* [JavaDocs](http://empcraft.com/plotsquared/doc/)
-* [~~Build Server~~](http://ci.intellectualsites.com/job/PlotSquared/)
-* [~~Maven Repo~~](http://mvn.intellectualsites.com/content/repositories/intellectualsites/)
+* [~~Build Server~~](http://ci.xephi.fr/job/PlotSquared/)
+* [~~Maven Repo~~](http://ci.xephi.fr/plugin/repository/everything/)
# Maven
@@ -27,13 +27,13 @@ We're now on maven!
intellectualsites
- http://mvn.intellectualsites.com/content/repositories/intellectualsites/
+ http://ci.xephi.fr/plugin/repository/everything/
com.intellectualcrafters
PlotSquared
- 2.12.9
+ 3.2.24
```
diff --git a/pom.xml b/pom.xml
index 7755dd091..da55846ca 100644
--- a/pom.xml
+++ b/pom.xml
@@ -8,7 +8,7 @@
UTF-8
PlotSquared
- 3.2.24
+ 3.2.25
PlotSquared
jar
@@ -164,11 +164,6 @@
jar
compile
-
- me.confuser
- BarAPI
- 2.0
-
org.apache.commons
commons-math3
diff --git a/src/main/java/com/intellectualcrafters/configuration/MemorySection.java b/src/main/java/com/intellectualcrafters/configuration/MemorySection.java
index 149aca21b..2e19c8ae0 100644
--- a/src/main/java/com/intellectualcrafters/configuration/MemorySection.java
+++ b/src/main/java/com/intellectualcrafters/configuration/MemorySection.java
@@ -11,7 +11,7 @@ import java.util.Set;
* A type of {@link ConfigurationSection} that is stored in memory.
*/
public class MemorySection implements ConfigurationSection {
- protected final Map map = new LinkedHashMap();
+ protected final Map map = new LinkedHashMap<>();
private final Configuration root;
private final ConfigurationSection parent;
private final String path;
@@ -24,7 +24,8 @@ public class MemorySection implements ConfigurationSection {
if (obj instanceof String) {
try {
return Double.parseDouble((String) obj);
- } catch (final Exception e) {}
+ } catch (NumberFormatException ignored) {
+ }
} else if (obj instanceof List) {
final List> val = ((List>) obj);
if (val.size() > 0) {
@@ -41,7 +42,8 @@ public class MemorySection implements ConfigurationSection {
if (obj instanceof String) {
try {
return Integer.parseInt((String) obj);
- } catch (final Exception e) {}
+ } catch (NumberFormatException ignored) {
+ }
} else if (obj instanceof List) {
final List> val = ((List>) obj);
if (val.size() > 0) {
@@ -58,7 +60,8 @@ public class MemorySection implements ConfigurationSection {
if (obj instanceof String) {
try {
return Long.parseLong((String) obj);
- } catch (final Exception e) {}
+ } catch (NumberFormatException ignored) {
+ }
} else if (obj instanceof List) {
final List> val = ((List>) obj);
if (val.size() > 0) {
@@ -119,7 +122,7 @@ public class MemorySection implements ConfigurationSection {
@Override
public Set getKeys(final boolean deep) {
- final Set result = new LinkedHashSet();
+ final Set result = new LinkedHashSet<>();
final Configuration root = getRoot();
if ((root != null) && root.options().copyDefaults()) {
@@ -137,7 +140,7 @@ public class MemorySection implements ConfigurationSection {
@Override
public Map getValues(final boolean deep) {
- final Map result = new LinkedHashMap();
+ final Map result = new LinkedHashMap<>();
final Configuration root = getRoot();
if ((root != null) && root.options().copyDefaults()) {
@@ -462,10 +465,10 @@ public class MemorySection implements ConfigurationSection {
final List> list = getList(path);
if (list == null) {
- return new ArrayList(0);
+ return new ArrayList<>(0);
}
- final List result = new ArrayList();
+ final List result = new ArrayList<>();
for (final Object object : list) {
if ((object instanceof String) || (isPrimitiveWrapper(object))) {
@@ -481,10 +484,10 @@ public class MemorySection implements ConfigurationSection {
final List> list = getList(path);
if (list == null) {
- return new ArrayList(0);
+ return new ArrayList<>(0);
}
- final List result = new ArrayList();
+ final List result = new ArrayList<>();
for (final Object object : list) {
if (object instanceof Integer) {
@@ -492,9 +495,10 @@ public class MemorySection implements ConfigurationSection {
} else if (object instanceof String) {
try {
result.add(Integer.valueOf((String) object));
- } catch (final Exception ex) {}
+ } catch (NumberFormatException ignored) {
+ }
} else if (object instanceof Character) {
- result.add((int) ((Character) object).charValue());
+ result.add((int) (Character) object);
} else if (object instanceof Number) {
result.add(((Number) object).intValue());
}
@@ -508,10 +512,10 @@ public class MemorySection implements ConfigurationSection {
final List> list = getList(path);
if (list == null) {
- return new ArrayList(0);
+ return new ArrayList<>(0);
}
- final List result = new ArrayList();
+ final List result = new ArrayList<>();
for (final Object object : list) {
if (object instanceof Boolean) {
@@ -533,10 +537,10 @@ public class MemorySection implements ConfigurationSection {
final List> list = getList(path);
if (list == null) {
- return new ArrayList(0);
+ return new ArrayList<>(0);
}
- final List result = new ArrayList();
+ final List result = new ArrayList<>();
for (final Object object : list) {
if (object instanceof Double) {
@@ -544,9 +548,10 @@ public class MemorySection implements ConfigurationSection {
} else if (object instanceof String) {
try {
result.add(Double.valueOf((String) object));
- } catch (final Exception ex) {}
+ } catch (NumberFormatException ignored) {
+ }
} else if (object instanceof Character) {
- result.add((double) ((Character) object).charValue());
+ result.add((double) (Character) object);
} else if (object instanceof Number) {
result.add(((Number) object).doubleValue());
}
@@ -560,10 +565,10 @@ public class MemorySection implements ConfigurationSection {
final List> list = getList(path);
if (list == null) {
- return new ArrayList(0);
+ return new ArrayList<>(0);
}
- final List result = new ArrayList();
+ final List result = new ArrayList<>();
for (final Object object : list) {
if (object instanceof Float) {
@@ -571,9 +576,10 @@ public class MemorySection implements ConfigurationSection {
} else if (object instanceof String) {
try {
result.add(Float.valueOf((String) object));
- } catch (final Exception ex) {}
+ } catch (NumberFormatException ignored) {
+ }
} else if (object instanceof Character) {
- result.add((float) ((Character) object).charValue());
+ result.add((float) (Character) object);
} else if (object instanceof Number) {
result.add(((Number) object).floatValue());
}
@@ -587,10 +593,10 @@ public class MemorySection implements ConfigurationSection {
final List> list = getList(path);
if (list == null) {
- return new ArrayList(0);
+ return new ArrayList<>(0);
}
- final List result = new ArrayList();
+ final List result = new ArrayList<>();
for (final Object object : list) {
if (object instanceof Long) {
@@ -598,9 +604,10 @@ public class MemorySection implements ConfigurationSection {
} else if (object instanceof String) {
try {
result.add(Long.valueOf((String) object));
- } catch (final Exception ex) {}
+ } catch (NumberFormatException ignored) {
+ }
} else if (object instanceof Character) {
- result.add((long) ((Character) object).charValue());
+ result.add((long) (Character) object);
} else if (object instanceof Number) {
result.add(((Number) object).longValue());
}
@@ -614,10 +621,10 @@ public class MemorySection implements ConfigurationSection {
final List> list = getList(path);
if (list == null) {
- return new ArrayList(0);
+ return new ArrayList<>(0);
}
- final List result = new ArrayList();
+ final List result = new ArrayList<>();
for (final Object object : list) {
if (object instanceof Byte) {
@@ -625,7 +632,8 @@ public class MemorySection implements ConfigurationSection {
} else if (object instanceof String) {
try {
result.add(Byte.valueOf((String) object));
- } catch (final Exception ex) {}
+ } catch (NumberFormatException ignored) {
+ }
} else if (object instanceof Character) {
result.add((byte) ((Character) object).charValue());
} else if (object instanceof Number) {
@@ -641,10 +649,10 @@ public class MemorySection implements ConfigurationSection {
final List> list = getList(path);
if (list == null) {
- return new ArrayList(0);
+ return new ArrayList<>(0);
}
- final List result = new ArrayList();
+ final List result = new ArrayList<>();
for (final Object object : list) {
if (object instanceof Character) {
@@ -668,10 +676,10 @@ public class MemorySection implements ConfigurationSection {
final List> list = getList(path);
if (list == null) {
- return new ArrayList(0);
+ return new ArrayList<>(0);
}
- final List result = new ArrayList();
+ final List result = new ArrayList<>();
for (final Object object : list) {
if (object instanceof Short) {
@@ -679,7 +687,8 @@ public class MemorySection implements ConfigurationSection {
} else if (object instanceof String) {
try {
result.add(Short.valueOf((String) object));
- } catch (final Exception ex) {}
+ } catch (NumberFormatException ignored) {
+ }
} else if (object instanceof Character) {
result.add((short) ((Character) object).charValue());
} else if (object instanceof Number) {
@@ -693,7 +702,7 @@ public class MemorySection implements ConfigurationSection {
@Override
public List