Normalize code and fix saveToTextFile

* Normalize spaces and blank lines according to Java Code Conventions
  from Java SE 8
* Wrap code to 80 characters per line (Java Code Conventions for Java SE
  8)
* Fix saveToTextFile() in Maze : same confusion that was fixed in bc1886ca
  for initFromTextFile() (x et y coordinates were respectively used as y
  and x)
This commit is contained in:
regar42 committed 2017-12-14 21:53:49 +01:00
1 parent c3e74a20f3
commit e8896556bc
18 files changed
+307 -322

No files matched your search

+9 -10
View File
@@ -1,19 +1,18 @@
package maze;
/**
* <code>ABox</code> is an arrival <code>Box</code>. It's the last <code>Box</code> to be walked through and it's an exit to the <code>Maze</code>.
* <code>ABox</code> is an arrival <code>Box</code>.
* It's the last <code>Box</code> to be walked through and
* it's an exit to the <code>Maze</code>.
*/
public class ABox extends EBox{
public ABox (String label, int x, int y, Maze maze) {
super(label,x,y,maze) ;
}
@Override
public boolean isArrival() {
return true ;
super(label, x, y, maze);
}
@Override
public boolean isArrival() {
return true;
}
}