more gradle path fixes

This commit is contained in:
Bruce Eckel 2016-07-07 15:57:38 -06:00
parent e05401eecc
commit df864d009d
3 changed files with 3 additions and 2 deletions

View File

@ -6,7 +6,7 @@ import java.util.*;
import onjava.*;
public class ParallelSetAll {
static final int SIZE = 20_000_000;
static final int SIZE = 10_000_000;
static void intArray() {
int[] ia = new int[SIZE];
Arrays.setAll(ia, new Rand.int_()::get);

View File

@ -16,7 +16,7 @@ public class ParseTrash {
public static <T extends Trash> void
fillBin(String pckg, Fillable<T> bin) {
try {
Files.lines(Paths.get("..", "trash", "Trash.dat"))
Files.lines(Paths.get("trash", "Trash.dat"))
// Remove empty lines and comment lines:
.filter(line -> line.trim().length() != 0)
.filter(line -> !line.startsWith("//"))

View File

@ -3,6 +3,7 @@
// We make no guarantees that this code is fit for any purpose.
// Visit http://mindviewinc.com/Books/OnJava/ for more book information.
// Ensuring proper cleanup
// {main: reuse.CADSystem}
package reuse;
class Shape {