From 4c19753714d7f53f4d78e2b07d56e65732c2adbe Mon Sep 17 00:00:00 2001 From: Nicklas Ansman Giertz Date: Tue, 27 Jun 2017 15:11:09 +0200 Subject: [PATCH] Remove @NonNull annotation in Consumer method parameter (#5447) This fixes #5442 --- src/main/java/io/reactivex/functions/Consumer.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/io/reactivex/functions/Consumer.java b/src/main/java/io/reactivex/functions/Consumer.java index deb4ae8047..ff10bbb244 100644 --- a/src/main/java/io/reactivex/functions/Consumer.java +++ b/src/main/java/io/reactivex/functions/Consumer.java @@ -13,8 +13,6 @@ package io.reactivex.functions; -import io.reactivex.annotations.NonNull; - /** * A functional interface (callback) that accepts a single value. * @param the value type @@ -25,5 +23,5 @@ public interface Consumer { * @param t the value * @throws Exception on error */ - void accept(@NonNull T t) throws Exception; + void accept(T t) throws Exception; }