Skip to content

Commit 668c31a

Browse files
authored
Merge pull request #100 from NthPortal/future-onsuccess
Remove override of `Future.onSuccess`
2 parents 35831f4 + 1912814 commit 668c31a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/main/scala/scala/concurrent/java8/FutureConvertersImpl.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,6 @@ object FuturesConvertersImpl {
8787
}
8888

8989
class P[T](val wrapped: CompletionStage[T]) extends DefaultPromise[T] with BiConsumer[T, Throwable] {
90-
override def onSuccess[U](pf: PartialFunction[T, U])(implicit executor: ExecutionContext): Unit = super.onSuccess(pf)
91-
9290
override def accept(v: T, e: Throwable): Unit = {
9391
if (e == null) complete(Success(v))
9492
else complete(Failure(e))

0 commit comments

Comments
 (0)