mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Rid pointless wrapping with BufferedInputStream from class reading
This commit is contained in:
committed by
Juergen Hoeller
parent
72b1abd226
commit
bff1a1932f
+1
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user