Commit f2fc921b authored by Сергей Цыпанов's avatar Сергей Цыпанов
Browse files

Remove throwing OOME from ClassReader.calcuateBufferSize()

parent fc93bd35
......@@ -336,9 +336,6 @@ public class ClassReader {
private static int calculateBufferSize(final InputStream inputStream) throws IOException {
int expectedLength = inputStream.available();
if (expectedLength > MAX_BUFFER_SIZE) {
throw new OutOfMemoryError("Required buffer size too large.");
* Some implementations can return 0 while holding available data
* (e.g. new FileInputStream("/proc/a_file"))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment