Rid pointless wrapping with BufferedInputStream from class reading
This commit is contained in:
committed by
Juergen Hoeller
parent
72b1abd226
commit
bff1a1932f
@@ -16,7 +16,6 @@
|
|||||||
|
|
||||||
package org.springframework.core.type.classreading;
|
package org.springframework.core.type.classreading;
|
||||||
|
|
||||||
import java.io.BufferedInputStream;
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
|
|
||||||
@@ -53,7 +52,7 @@ final class SimpleMetadataReader implements MetadataReader {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static ClassReader getClassReader(Resource resource) throws IOException {
|
private static ClassReader getClassReader(Resource resource) throws IOException {
|
||||||
try (InputStream is = new BufferedInputStream(resource.getInputStream())) {
|
try (InputStream is = resource.getInputStream()) {
|
||||||
try {
|
try {
|
||||||
return new ClassReader(is);
|
return new ClassReader(is);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user