return s;
} catch (IOException e) {
closeQuietly(inputStream);
throw new IOException("Can't read from input stream.", e);
}
<BUG>}
public static String toString(InputStream inputStream, @Nullable String charsetName) throws IOException {</BUG>
try {
String s = IOUtils.toString(inputStream, charsetName);
inputStream.close();

return s;
} catch (IOException e) {
closeQuietly(inputStream);
throw new IOException("Can't read from input stream.", e);
}
}
@Nonnull
public static String toString(InputStream inputStream, @Nullable String charsetName) throws IOException {
try {
String s = IOUtils.toString(inputStream, charsetName);
inputStream.close();
