mirror of https://github.com/apache/jclouds.git
JCLOUDS-622: Deprecate Strings2.toString
Guava 16 deprecated InputSupplier.
This commit is contained in:
parent
cf830af4d2
commit
de68449cde
|
@ -122,6 +122,8 @@ public class Strings2 {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @deprecated use CharSource.read() instead */
|
||||||
|
@Deprecated
|
||||||
public static String toString(InputSupplier<? extends InputStream> supplier)
|
public static String toString(InputSupplier<? extends InputStream> supplier)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
return CharStreams.toString(CharStreams.newReaderSupplier(supplier,
|
return CharStreams.toString(CharStreams.newReaderSupplier(supplier,
|
||||||
|
|
Loading…
Reference in New Issue