From 62198f998d0ba8f01d1832a7ef0265bc73fb4359 Mon Sep 17 00:00:00 2001 From: Joel Therrien Date: Sat, 1 Sep 2018 09:42:48 -0700 Subject: [PATCH] Small code cleanup --- src/main/java/ca/joeltherrien/randomforest/Settings.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/ca/joeltherrien/randomforest/Settings.java b/src/main/java/ca/joeltherrien/randomforest/Settings.java index 70d857a..28b0784 100644 --- a/src/main/java/ca/joeltherrien/randomforest/Settings.java +++ b/src/main/java/ca/joeltherrien/randomforest/Settings.java @@ -132,7 +132,7 @@ public class Settings { // note that times may be null if(node.hasNonNull("times")){ final List timeList = new ArrayList<>(); - node.get("times").elements().forEachRemaining(event -> timeList.add(event.asDouble())); + node.get("times").elements().forEachRemaining(time -> timeList.add(time.asDouble())); times = timeList.stream().mapToDouble(db -> db).toArray(); } @@ -151,7 +151,7 @@ public class Settings { // note that times may be null if(node.hasNonNull("times")){ final List timeList = new ArrayList<>(); - node.get("times").elements().forEachRemaining(event -> timeList.add(event.asDouble())); + node.get("times").elements().forEachRemaining(time -> timeList.add(time.asDouble())); times = timeList.stream().mapToDouble(db -> db).toArray(); } @@ -170,7 +170,7 @@ public class Settings { // note that times may be null if(node.hasNonNull("times")){ final List timeList = new ArrayList<>(); - node.get("times").elements().forEachRemaining(event -> timeList.add(event.asDouble())); + node.get("times").elements().forEachRemaining(time -> timeList.add(time.asDouble())); times = timeList.stream().mapToDouble(db -> db).toArray(); }