diff --git a/src/main/java/com/adventofcode/flashk/day19/LinenLayout.java b/src/main/java/com/adventofcode/flashk/day19/LinenLayout.java index c090d16..181d842 100644 --- a/src/main/java/com/adventofcode/flashk/day19/LinenLayout.java +++ b/src/main/java/com/adventofcode/flashk/day19/LinenLayout.java @@ -9,10 +9,10 @@ public class LinenLayout { - private List patterns; - private List designs; + private final List patterns; + private final List designs; - private Map memo = new HashMap<>(); + private final Map memo = new HashMap<>(); public LinenLayout(List inputs) { patterns = Arrays.stream(inputs.getFirst().replace(StringUtils.SPACE, StringUtils.EMPTY).split(",")) diff --git a/src/main/java/com/adventofcode/flashk/day19/LinenLayout2.java b/src/main/java/com/adventofcode/flashk/day19/LinenLayout2.java index 3067cb1..586253e 100644 --- a/src/main/java/com/adventofcode/flashk/day19/LinenLayout2.java +++ b/src/main/java/com/adventofcode/flashk/day19/LinenLayout2.java @@ -9,10 +9,10 @@ public class LinenLayout2 { - private List patterns; - private List designs; + private final List patterns; + private final List designs; - private Map memo = new HashMap<>(); + private final Map memo = new HashMap<>(); public LinenLayout2(List inputs) { patterns = Arrays.stream(inputs.getFirst().replace(StringUtils.SPACE, StringUtils.EMPTY).split(",")) @@ -27,7 +27,6 @@ public long solveB() { long result = 0; for(String design : designs) { result += count(design, StringUtils.EMPTY); - memo.clear(); } return result; } diff --git a/src/test/java/com/adventofcode/flashk/day19/Day19Test.java b/src/test/java/com/adventofcode/flashk/day19/Day19Test.java index a820844..99f7906 100644 --- a/src/test/java/com/adventofcode/flashk/day19/Day19Test.java +++ b/src/test/java/com/adventofcode/flashk/day19/Day19Test.java @@ -21,7 +21,6 @@ @DisplayName(TestDisplayName.DAY_19) @TestMethodOrder(OrderAnnotation.class) -@Disabled // TODO Remove comment when implemented public class Day19Test extends PuzzleTest { private static final String INPUT_FOLDER = TestFolder.DAY_19;