From 727e3694c410a03141f95cee8fa811f3a67bed21 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Thu, 12 Mar 2020 18:01:37 +0100 Subject: [PATCH] Slightly simplified loop --- arduino-core/src/cc/arduino/Compiler.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arduino-core/src/cc/arduino/Compiler.java b/arduino-core/src/cc/arduino/Compiler.java index 565c7f23f..10401105b 100644 --- a/arduino-core/src/cc/arduino/Compiler.java +++ b/arduino-core/src/cc/arduino/Compiler.java @@ -187,9 +187,7 @@ public class Compiler implements MessageConsumer { PreferencesData.getMap() .subTree("runtime.build_properties_custom") - .entrySet() - .stream() - .forEach(kv -> req.addBuildProperties(kv.getKey() + "=" + kv.getValue())); + .forEach((k, v) -> req.addBuildProperties(k + "=" + v)); req.addBuildProperties("build.warn_data_percentage=" + PreferencesData.get("build.warn_data_percentage"));