Skip to content

Commit 2392349

Browse files
JakeWhartonakarnokd
authored andcommitted
Remove deprecated method from 2.x (#6769)
1 parent 735add2 commit 2392349

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

src/main/java/io/reactivex/rxjava3/internal/functions/ObjectHelper.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -128,17 +128,4 @@ public boolean test(Object o1, Object o2) {
128128
return ObjectHelper.equals(o1, o2);
129129
}
130130
}
131-
132-
/**
133-
* Trap null-check attempts on primitives.
134-
* @param value the value to check
135-
* @param message the message to print
136-
* @return the value
137-
* @deprecated this method should not be used as there is no need
138-
* to check primitives for nullness.
139-
*/
140-
@Deprecated
141-
public static long requireNonNull(long value, String message) {
142-
throw new InternalError("Null check on a primitive: " + message);
143-
}
144131
}

src/test/java/io/reactivex/rxjava3/internal/functions/ObjectHelperTest.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,4 @@ public void compareLong() {
6767
assertEquals(0, ObjectHelper.compare(0L, 0L));
6868
assertEquals(1, ObjectHelper.compare(2L, 0L));
6969
}
70-
71-
@SuppressWarnings("deprecation")
72-
@Test(expected = InternalError.class)
73-
public void requireNonNullPrimitive() {
74-
ObjectHelper.requireNonNull(0, "value");
75-
}
7670
}

0 commit comments

Comments
 (0)