cleaned up compile warnings
This commit is contained in:
parent
47983d5f4d
commit
95a9ab4717
@ -39,7 +39,7 @@ public class FileRead {
|
|||||||
*/
|
*/
|
||||||
public static ArrayList<Coordinates> readArrayListCoordLog(final String file) {
|
public static ArrayList<Coordinates> readArrayListCoordLog(final String file) {
|
||||||
|
|
||||||
final ArrayList<Coordinates> Return = new ArrayList<Coordinates>();
|
final ArrayList<Coordinates> Return = new ArrayList<>();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final BufferedReader in = new BufferedReader(new FileReader(new File(file)));
|
final BufferedReader in = new BufferedReader(new FileReader(new File(file)));
|
||||||
|
@ -57,7 +57,7 @@ public class SpawnPoint {
|
|||||||
((CompoundTag) originalTopLevelTag.getValue().get("Data")).getValue();
|
((CompoundTag) originalTopLevelTag.getValue().get("Data")).getValue();
|
||||||
// This is our map of data. It is an unmodifiable map, for some
|
// This is our map of data. It is an unmodifiable map, for some
|
||||||
// reason, so we have to make a copy.
|
// reason, so we have to make a copy.
|
||||||
final Map<String, Tag> newData = new LinkedHashMap<String, Tag>(originalData);
|
final Map<String, Tag> newData = new LinkedHashMap<>(originalData);
|
||||||
// .get() a couple of values, just to make sure we're dealing with a
|
// .get() a couple of values, just to make sure we're dealing with a
|
||||||
// valid level file, here. Good for debugging, too.
|
// valid level file, here. Good for debugging, too.
|
||||||
final IntTag spawnX = (IntTag) newData.get("SpawnX");
|
final IntTag spawnX = (IntTag) newData.get("SpawnX");
|
||||||
@ -131,7 +131,7 @@ public class SpawnPoint {
|
|||||||
final Map<String, Tag> originalData =
|
final Map<String, Tag> originalData =
|
||||||
((CompoundTag) originalTopLevelTag.getValue().get("Data")).getValue();
|
((CompoundTag) originalTopLevelTag.getValue().get("Data")).getValue();
|
||||||
// This is our map of data. It is an unmodifiable map, for some reason, so we have to make a copy.
|
// This is our map of data. It is an unmodifiable map, for some reason, so we have to make a copy.
|
||||||
final Map<String, Tag> newData = new LinkedHashMap<String, Tag>(originalData);
|
final Map<String, Tag> newData = new LinkedHashMap<>(originalData);
|
||||||
|
|
||||||
// .get() a couple of values, just to make sure we're dealing with a valid level file, here. Good for debugging, too.
|
// .get() a couple of values, just to make sure we're dealing with a valid level file, here. Good for debugging, too.
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
@ -147,7 +147,7 @@ public class SpawnPoint {
|
|||||||
|
|
||||||
// Again, we can't modify the data map in the old Tag, so we have to make a new one.
|
// Again, we can't modify the data map in the old Tag, so we have to make a new one.
|
||||||
final CompoundTag newDataTag = new CompoundTag("Data", newData);
|
final CompoundTag newDataTag = new CompoundTag("Data", newData);
|
||||||
final Map<String, Tag> newTopLevelMap = new HashMap<String, Tag>(1);
|
final Map<String, Tag> newTopLevelMap = new HashMap<>(1);
|
||||||
newTopLevelMap.put("Data", newDataTag);
|
newTopLevelMap.put("Data", newDataTag);
|
||||||
final CompoundTag newTopLevelTag = new CompoundTag("", newTopLevelMap);
|
final CompoundTag newTopLevelTag = new CompoundTag("", newTopLevelMap);
|
||||||
|
|
||||||
|
@ -227,7 +227,7 @@ public class var {
|
|||||||
public static boolean flag_downloadedBuildID = false;
|
public static boolean flag_downloadedBuildID = false;
|
||||||
|
|
||||||
/** a list of timestamps */
|
/** a list of timestamps */
|
||||||
public static ArrayList<String> timeStamps = new ArrayList<String>();
|
public static ArrayList<String> timeStamps = new ArrayList<>();
|
||||||
|
|
||||||
//
|
//
|
||||||
// Resume Data & Log Files
|
// Resume Data & Log Files
|
||||||
|
Reference in New Issue
Block a user