From: Robert Varga Date: Mon, 8 Aug 2016 16:36:20 +0000 (+0200) Subject: Use methodhandle instead of a lambda X-Git-Tag: release/carbon~241 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=9018e4b4ca704f25bb04e15afd3d1757acaf7dd3;hp=a74a0a0658e644d5417f749e0868d7f94d9202d2;p=mdsal.git Use methodhandle instead of a lambda Less text, same effect. Change-Id: Ifa6d57f94d925268f116d95e2aac85290f133ed8 Signed-off-by: Robert Varga --- diff --git a/binding/mdsal-binding-generator-impl/src/test/java/org/opendaylight/yangtools/sal/binding/generator/util/SourceCodeGeneratorFactoryTest.java b/binding/mdsal-binding-generator-impl/src/test/java/org/opendaylight/yangtools/sal/binding/generator/util/SourceCodeGeneratorFactoryTest.java index 44a19fa42a..aceba1b45f 100644 --- a/binding/mdsal-binding-generator-impl/src/test/java/org/opendaylight/yangtools/sal/binding/generator/util/SourceCodeGeneratorFactoryTest.java +++ b/binding/mdsal-binding-generator-impl/src/test/java/org/opendaylight/yangtools/sal/binding/generator/util/SourceCodeGeneratorFactoryTest.java @@ -115,7 +115,7 @@ public class SourceCodeGeneratorFactoryTest { private boolean cleanup(File dir) { if (!dir.exists()) return true; - stream(dir.listFiles()).forEach(file -> file.delete()); + stream(dir.listFiles()).forEach(File::delete); return dir.delete(); } -} \ No newline at end of file +}