aboutsummaryrefslogtreecommitdiff
path: root/juick-common/src/main/java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-06-13 12:14:53 +0300
committerGravatar Vitaly Takmazov2018-06-13 12:15:15 +0300
commitff723a3352e3b588957271e946ec646af443eb66 (patch)
tree9d0f945f270d258fb83bcbebd1babde06d0ef3b7 /juick-common/src/main/java
parentd9cc4e7060e81a583016b7b69203ab397f3d3478 (diff)
add deprecation warning to StreamUtils
Diffstat (limited to 'juick-common/src/main/java')
-rw-r--r--juick-common/src/main/java/com/juick/util/StreamUtils.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/juick-common/src/main/java/com/juick/util/StreamUtils.java b/juick-common/src/main/java/com/juick/util/StreamUtils.java
index de19a43e..576107af 100644
--- a/juick-common/src/main/java/com/juick/util/StreamUtils.java
+++ b/juick-common/src/main/java/com/juick/util/StreamUtils.java
@@ -7,6 +7,10 @@ import java.util.function.Predicate;
import java.util.stream.Stream;
import java.util.stream.StreamSupport;
+/**
+ * @deprecated switch to JDK9+ Stream API when possible
+ */
+@Deprecated
public class StreamUtils {
private static <T> Spliterator<T> takeWhile(
Spliterator<T> splitr, Predicate<? super T> predicate) {