From 54b7bf9e9992b534048310e3b5f53be42f110b3d Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Tue, 23 Feb 2010 08:47:46 +0000 Subject: [PATCH] Bring on the deprecation warnings. --- src/java/com/samskivert/depot/XList.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/java/com/samskivert/depot/XList.java b/src/java/com/samskivert/depot/XList.java index 2275643..18f0f05 100644 --- a/src/java/com/samskivert/depot/XList.java +++ b/src/java/com/samskivert/depot/XList.java @@ -26,6 +26,8 @@ import java.util.List; import com.google.common.base.Function; +import com.samskivert.depot.util.Sequence; + /** * Extends the {@link List} interface with a method {@link #map} that makes it easy to convert the * contents of the list to an ordered {@link Collection} of a different type via the application of @@ -34,9 +36,8 @@ import com.google.common.base.Function; public interface XList extends List { /** - * Returns mapping of this list via the specified mapping function. The result is a {@link - * Collection} to remind the caller that it is not an {@link ArrayList} but rather a lazy list - * that will call the mapping function on the fly each time an element is read. Caveat coder. + * @deprecated Use {@link DepotRepository#map} and {@link Sequence}. */ + @Deprecated public Collection map (Function mapper); }