Clean up deprecation warning

This commit is contained in:
Mike Primm 2021-06-26 13:22:05 -05:00
parent 8e516e944a
commit 3722564e4f
2 changed files with 4 additions and 4 deletions

View File

@ -105,8 +105,8 @@ public class ColorScheme {
boolean israin = false;
int idx = split[0].indexOf(':');
if(idx > 0) { /* ID:data - data color */
id = new Integer(split[0].substring(0, idx));
dat = new Integer(split[0].substring(idx+1));
id = Integer.parseInt(split[0].substring(0, idx));
dat = Integer.parseInt(split[0].substring(idx+1));
}
else if(split[0].charAt(0) == '[') { /* Biome color data */
String bio = split[0].substring(1);
@ -149,7 +149,7 @@ public class ColorScheme {
}
}
else {
id = new Integer(split[0]);
id = Integer.parseInt(split[0]);
}
if((!isbiome) && (id >= colors.length)) {
Color[][] newcolors = new Color[id+1][];

View File

@ -21,7 +21,7 @@ import org.dynmap.utils.BufferOutputStream;
public abstract class MapStorage {
private static Object lock = new Object();
private static HashMap<String, Integer> filelocks = new HashMap<String, Integer>();
private static final Integer WRITELOCK = new Integer(-1);
private static final Integer WRITELOCK = (-1);
protected File baseStandaloneDir;
protected long serverID;