Skip to content

Commit 7590ff6

Browse files
author
Dave Syer
committed
Use base class for exception
1 parent d3603ba commit 7590ff6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

launcher/src/main/java/org/springframework/boot/loader/thin/ThinJarLauncher.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
import java.io.File;
2020
import java.net.URL;
21-
import java.security.AccessControlException;
2221
import java.util.ArrayList;
2322
import java.util.HashMap;
2423
import java.util.Iterator;
@@ -454,7 +453,7 @@ private Properties getSystemProperties() {
454453
properties.setProperty(name, system.getProperty(key.toString()));
455454
}
456455
}
457-
} catch (AccessControlException e) {
456+
} catch (SecurityException e) {
458457
// ignore
459458
}
460459
if (environment.getPropertySources().contains("commandArgs")) {

0 commit comments

Comments
 (0)