From: Kai Moritz Date: Wed, 22 Jun 2016 08:40:15 +0000 (+0200) Subject: Shortend some annonymous-class-expressions by using lambda-expressions X-Git-Tag: tmp~28 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=87dca7f844f20969311cdcbd4392a275ae8e9936;p=maven-thymeleaf-skin Shortend some annonymous-class-expressions by using lambda-expressions --- diff --git a/src/main/java/de/juplo/jackson/SimpleMapper.java b/src/main/java/de/juplo/jackson/SimpleMapper.java index f15bf25..914fd5f 100644 --- a/src/main/java/de/juplo/jackson/SimpleMapper.java +++ b/src/main/java/de/juplo/jackson/SimpleMapper.java @@ -117,14 +117,7 @@ public abstract class SimpleMapper if (next != null) return true; - return spliterator.tryAdvance(new Consumer() - { - @Override - public void accept(Object o) - { - next = o; - } - }); + return spliterator.tryAdvance((Object o) -> { next = o; }); } @Override @@ -249,14 +242,7 @@ public abstract class SimpleMapper if (next != null) return true; - return spliterator.tryAdvance(new Consumer>() - { - @Override - public void accept(Entry e) - { - next = e; - } - }); + return spliterator.tryAdvance((Entry e) -> { next = e; }); } @Override