Skip to content

Commit 01be3c6

Browse files
committed
[core] Mark o.j.smack.util.Consumer as deprecated
1 parent c67c542 commit 01be3c6

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

  • smack-core/src/main/java/org/jivesoftware/smack/util

smack-core/src/main/java/org/jivesoftware/smack/util/Consumer.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,14 @@
1616
*/
1717
package org.jivesoftware.smack.util;
1818

19-
// TODO: Replace with java.util.function.Consumer once Smack's minimum Android SDK level is 24 or higher.
19+
/**
20+
* Deprecated, use {@link java.util.function.Consumer} instead.
21+
*
22+
* @param <T> the type of the input to the operation
23+
* @deprecated use {@link java.util.function.Consumer} instead.
24+
*/
25+
// TODO: Remove in Smack 4.6
26+
@Deprecated
2027
public interface Consumer<T> {
2128

2229
void accept(T t);

0 commit comments

Comments
 (0)