Code cleanup

* Remove unwanted getters and setters
* Properly handle object passed to constructors
* Remove redundant condition check on ASet.contains()'s return
* Make Maze.initFromTextFile() private
This commit is contained in:
regar42 committed 2017-12-10 00:02:20 +01:00
1 parent eb1e7a8bc0
commit ebb91b01b3
5 files changed
+13 -25

No files matched your search

+2 -2
View File
@@ -15,8 +15,8 @@ public class Previous implements PreviousInterface {
public Previous(Hashtable<VertexInterface, VertexInterface> hashPrevious, ArrayList<VertexInterface> shortestPath) {
this.hashPrevious = hashPrevious;
this.shortestPath = shortestPath;
this.hashPrevious = new Hashtable<VertexInterface, VertexInterface>(hashPrevious);
this.shortestPath = new ArrayList<VertexInterface>(shortestPath);
}
public VertexInterface getPrevious(VertexInterface vertex) {