parent
dc5f2444ae
commit
6d14482378
|
@ -17,6 +17,7 @@
|
|||
package org.springframework.security.core;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.util.Properties;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
|
@ -103,9 +104,9 @@ public final class SpringSecurityCoreVersion {
|
|||
*/
|
||||
private static String getSpringVersion() {
|
||||
Properties properties = new Properties();
|
||||
try {
|
||||
properties.load(SpringSecurityCoreVersion.class.getClassLoader()
|
||||
.getResourceAsStream("META-INF/spring-security.versions"));
|
||||
try (InputStream is = SpringSecurityCoreVersion.class.getClassLoader()
|
||||
.getResourceAsStream("META-INF/spring-security.versions")) {
|
||||
properties.load(is);
|
||||
}
|
||||
catch (IOException | NullPointerException ex) {
|
||||
return null;
|
||||
|
|
Loading…
Reference in New Issue