mirror of https://github.com/apache/jclouds.git
JCLOUDS-622: Remove last vestiges of InputSupplier
Guava 16 deprecated InputSupplier and a future release will remove it.
This commit is contained in:
parent
b219208d6c
commit
80a0256cc7
|
@ -20,9 +20,7 @@ import java.io.Closeable;
|
|||
import java.io.InputStream;
|
||||
import java.io.IOException;
|
||||
|
||||
import com.google.common.io.InputSupplier;
|
||||
|
||||
public interface Payload extends InputSupplier<InputStream>, Closeable {
|
||||
public interface Payload extends Closeable {
|
||||
|
||||
/**
|
||||
* Creates a new InputStream object of the payload.
|
||||
|
|
|
@ -41,7 +41,6 @@ import com.google.common.cache.CacheLoader;
|
|||
import com.google.common.cache.LoadingCache;
|
||||
import com.google.common.collect.Multimap;
|
||||
import com.google.common.io.CharStreams;
|
||||
import com.google.common.io.InputSupplier;
|
||||
import com.google.common.primitives.Chars;
|
||||
|
||||
public class Strings2 {
|
||||
|
@ -122,13 +121,6 @@ public class Strings2 {
|
|||
}
|
||||
}
|
||||
|
||||
/** @deprecated use CharSource.read() instead */
|
||||
@Deprecated
|
||||
public static String toString(InputSupplier<? extends InputStream> supplier)
|
||||
throws IOException {
|
||||
return toStringAndClose(supplier.getInput());
|
||||
}
|
||||
|
||||
public static String toStringAndClose(InputStream input) throws IOException {
|
||||
checkNotNull(input, "input");
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue