JCLOUDS-622: Deprecate Strings2.toString

Guava 16 deprecated InputSupplier.
This commit is contained in:
Andrew Gaul 2014-07-09 17:35:39 -07:00
parent cf830af4d2
commit de68449cde
1 changed files with 2 additions and 0 deletions

View File

@ -122,6 +122,8 @@ public class Strings2 {
}
}
/** @deprecated use CharSource.read() instead */
@Deprecated
public static String toString(InputSupplier<? extends InputStream> supplier)
throws IOException {
return CharStreams.toString(CharStreams.newReaderSupplier(supplier,