diff --git a/src/IKVM.Java.Extensions/java/util/function/DelegateConsumer.cs b/src/IKVM.Java.Extensions/java/util/function/DelegateConsumer.cs index 34a38cc1c2..339ae0f71d 100644 --- a/src/IKVM.Java.Extensions/java/util/function/DelegateConsumer.cs +++ b/src/IKVM.Java.Extensions/java/util/function/DelegateConsumer.cs @@ -11,39 +11,6 @@ namespace java.util.function public class DelegateConsumer : Consumer { - /// - /// Joins two consumers into one. - /// - sealed class JoinConsumer : Consumer - { - - readonly Consumer arg1; - readonly Consumer arg2; - - /// - /// Initializes a new instance. - /// - /// - /// - internal JoinConsumer(Consumer arg1, Consumer arg2) - { - this.arg1 = arg1 ?? throw new ArgumentNullException(nameof(arg1)); - this.arg2 = arg2 ?? throw new ArgumentNullException(nameof(arg2)); - } - - public void accept(object obj0) - { - arg1.accept(obj0); - arg2.accept(obj0); - } - - public Consumer andThen(Consumer other) - { - return new JoinConsumer(this, other); - } - - } - readonly Action action; /// @@ -63,7 +30,7 @@ public void accept(object t) public Consumer andThen(Consumer other) { - return new JoinConsumer(this, other); + return Consumer.__DefaultMethods.andThen(this, other); } }