@ReplacedBy something in guava.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@2776 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
ray.j.greenwell
2010-04-16 00:56:39 +00:00
parent 12c107bd29
commit 5fa1380c5c
@@ -5,6 +5,8 @@ package com.samskivert.util;
import java.util.concurrent.Callable; import java.util.concurrent.Callable;
import com.samskivert.annotation.ReplacedBy;
/** /**
* Utilities for Callables. * Utilities for Callables.
*/ */
@@ -14,6 +16,7 @@ public class Callables
* Return a {@link Callable} that merely returns the specified value. * Return a {@link Callable} that merely returns the specified value.
* No exception will ever be thrown. * No exception will ever be thrown.
*/ */
@ReplacedBy("com.google.common.util.concurrent.Callables#returning()")
public static <V> Callable<V> asCallable (final V value) public static <V> Callable<V> asCallable (final V value)
{ {
return new Callable<V>() { return new Callable<V>() {