Skip to content

Commit 11343ae

Browse files
vanniktechakarnokd
authored andcommitted
1.x: Deprecate Notification.createOnCompleted (#4466)
1 parent 7593247 commit 11343ae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/rx/Notification.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,10 @@ public static <T> Notification<T> createOnCompleted() {
6767
*
6868
* @param <T> the actual value type held by the Notification
6969
* @param type
70+
* @deprecated this method does the same as {@link #createOnCompleted()} and does not use the passed in type hence it's useless.
7071
* @return an {@code OnCompleted} variety of {@code Notification}
7172
*/
73+
@Deprecated
7274
@SuppressWarnings("unchecked")
7375
public static <T> Notification<T> createOnCompleted(Class<T> type) {
7476
return (Notification<T>) ON_COMPLETED;

0 commit comments

Comments
 (0)