| Summary: | Cannot infer type arguments for HashMap<> | ||
|---|---|---|---|
| Product: | River-Crossing-Puzzle-Solver | Reporter: | tsunychau2-c |
| Component: | Solver Mode | Assignee: | tsunychau2-c |
| Status: | RESOLVED FIXED | ||
| Severity: | critical | ||
| Priority: | Normal | ||
| Version: | v0.1.0 | ||
| Hardware: | PC | ||
| OS: | Mac OS | ||
|
Description
tsunychau2-c
2022-11-05 22:09:41 HKT
Bug is confirmed In PuzzleState.java, on line 24 and 25, HashSet should be used instead of HashMap.
Modification of code:
public PuzzleState(ArrayList<String> landA, ArrayList<String> landB, int boatPos) {
this.landA = landA;
this.landB = landB;
this.boatPos = boatPos;
hashLandA = new HashSet<>(landA);
hashLandB = new HashSet<>(landB);
}
|