Sho SHIMIZU
Committed by Gerrit Code Review

Replace anonymous class with lambda expression

Change-Id: Icb3c5b6146a4a0a11d0d2300b395689f9286dfb9
...@@ -602,14 +602,11 @@ public class AtomixConsistentSetMultimapState extends ResourceStateMachine ...@@ -602,14 +602,11 @@ public class AtomixConsistentSetMultimapState extends ResourceStateMachine
602 602
603 @Override 603 @Override
604 public Supplier<HashMultiset<byte[]>> supplier() { 604 public Supplier<HashMultiset<byte[]>> supplier() {
605 - return new Supplier<HashMultiset<byte[]>>() { 605 + return () -> {
606 - @Override
607 - public HashMultiset<byte[]> get() {
608 if (multiset == null) { 606 if (multiset == null) {
609 multiset = HashMultiset.create(); 607 multiset = HashMultiset.create();
610 } 608 }
611 return multiset; 609 return multiset;
612 - }
613 }; 610 };
614 } 611 }
615 612
...@@ -651,14 +648,11 @@ public class AtomixConsistentSetMultimapState extends ResourceStateMachine ...@@ -651,14 +648,11 @@ public class AtomixConsistentSetMultimapState extends ResourceStateMachine
651 648
652 @Override 649 @Override
653 public Supplier<Set<Map.Entry<String, byte[]>>> supplier() { 650 public Supplier<Set<Map.Entry<String, byte[]>>> supplier() {
654 - return new Supplier<Set<Map.Entry<String, byte[]>>>() { 651 + return () -> {
655 - @Override
656 - public Set<Map.Entry<String, byte[]>> get() {
657 if (set == null) { 652 if (set == null) {
658 set = Sets.newHashSet(); 653 set = Sets.newHashSet();
659 } 654 }
660 return set; 655 return set;
661 - }
662 }; 656 };
663 } 657 }
664 658
......