Rid pointless wrapping with BufferedInputStream from class reading

This commit is contained in:
Сергей Цыпанов 2020-04-20 19:55:39 +03:00 committed by Juergen Hoeller
parent 72b1abd226
commit bff1a1932f
1 changed files with 1 additions and 2 deletions

View File

@ -16,7 +16,6 @@
package org.springframework.core.type.classreading;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;
@ -53,7 +52,7 @@ final class SimpleMetadataReader implements MetadataReader {
}
private static ClassReader getClassReader(Resource resource) throws IOException {
try (InputStream is = new BufferedInputStream(resource.getInputStream())) {
try (InputStream is = resource.getInputStream()) {
try {
return new ClassReader(is);
}