diff --git a/Plan/src/main/java/com/djrapitops/plan/Phrase.java b/Plan/src/main/java/com/djrapitops/plan/Phrase.java index f3c2819b8..1770c228b 100644 --- a/Plan/src/main/java/com/djrapitops/plan/Phrase.java +++ b/Plan/src/main/java/com/djrapitops/plan/Phrase.java @@ -200,6 +200,7 @@ public enum Phrase { localeRows.add(line); } } + for (String localeRow : localeRows) { try { String[] split = localeRow.split(" <> "); diff --git a/Plan/src/main/java/com/djrapitops/plan/data/analysis/ActivityPart.java b/Plan/src/main/java/com/djrapitops/plan/data/analysis/ActivityPart.java index 20e37acf2..d00876cce 100644 --- a/Plan/src/main/java/com/djrapitops/plan/data/analysis/ActivityPart.java +++ b/Plan/src/main/java/com/djrapitops/plan/data/analysis/ActivityPart.java @@ -84,7 +84,7 @@ public class ActivityPart extends RawData { private void playerActivityGraphs() { List tpsData = tpsPart.getTpsData(); addValue("playersonlineseries", PlayerActivityGraphCreator.buildSeriesDataString(tpsData)); - addValue("%playersgraphcolor%", Settings.HCOLOR_ACT_ONL + ""); + addValue("%playersgraphcolor%", Settings.HCOLOR_ACT_ONL.toString()); } private void activityPiechart() { diff --git a/Plan/src/main/java/com/djrapitops/plan/data/analysis/WorldPart.java b/Plan/src/main/java/com/djrapitops/plan/data/analysis/WorldPart.java index 0b20199ea..1b0653c6c 100644 --- a/Plan/src/main/java/com/djrapitops/plan/data/analysis/WorldPart.java +++ b/Plan/src/main/java/com/djrapitops/plan/data/analysis/WorldPart.java @@ -35,7 +35,7 @@ public class WorldPart extends RawData { } public void addToWorld(String worldName, long playTime) { - Long value = worldTimes.computeIfAbsent(worldName, ifNotFound -> 0L); + Long value = worldTimes.getOrDefault(worldName, 0L); worldTimes.put(worldName, value + playTime); } } diff --git a/Plan/src/main/resources/config.yml b/Plan/src/main/resources/config.yml index 08c3d6d08..a8db910d9 100644 --- a/Plan/src/main/resources/config.yml +++ b/Plan/src/main/resources/config.yml @@ -36,7 +36,7 @@ Settings: Security: DisplayIPsAndUUIDs: true Certificate: - KeyStorePath: '\SSLCertificate.keystore' + KeyStorePath: 'SSLCertificate.keystore' KeyPass: 'default' StorePass: 'default' Alias: 'alias' diff --git a/Plan/src/test/java/main/java/com/djrapitops/plan/utilities/comparators/ComparatorTest.java b/Plan/src/test/java/main/java/com/djrapitops/plan/utilities/comparators/ComparatorTest.java index b654d3445..786f43e98 100644 --- a/Plan/src/test/java/main/java/com/djrapitops/plan/utilities/comparators/ComparatorTest.java +++ b/Plan/src/test/java/main/java/com/djrapitops/plan/utilities/comparators/ComparatorTest.java @@ -42,10 +42,11 @@ public class ComparatorTest { for (int i = 0; i < 20; i++) { test.add(new Point(r.nextLong(), r.nextLong())); } - List longValues = test.stream().map(Point::getX).map(i -> (Long) (long) (double) i).collect(Collectors.toList()); + + List longValues = test.stream().map(Point::getX).map(i -> (long) (double) i).collect(Collectors.toList()); longValues.sort(Long::compare); test.sort(new PointComparator()); - List afterSort = test.stream().map(Point::getX).map(i -> (Long) (long) (double) i).collect(Collectors.toList()); + List afterSort = test.stream().map(Point::getX).map(i -> (long) (double) i).collect(Collectors.toList()); assertEquals(longValues, afterSort); }