From ff723a3352e3b588957271e946ec646af443eb66 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 13 Jun 2018 12:14:53 +0300 Subject: add deprecation warning to StreamUtils --- juick-common/src/main/java/com/juick/util/StreamUtils.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'juick-common/src') 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 Spliterator takeWhile( Spliterator splitr, Predicate predicate) { -- cgit v1.2.3