Skip to content

Commit 11509ee

Browse files
authored
Merge pull request #1530 from xael-fry/1527_remove-securityManager
chore(securitymanager): remove deprecated Security manager (#1527)
2 parents aa4aab6 + 35ab48c commit 11509ee

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

framework/src/play/utils/PThreadFactory.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ public class PThreadFactory implements ThreadFactory {
1010
final String namePrefix;
1111

1212
public PThreadFactory(String poolName) {
13-
SecurityManager s = System.getSecurityManager();
14-
group = (s != null) ? s.getThreadGroup() : Thread.currentThread().getThreadGroup();
13+
group = Thread.currentThread().getThreadGroup();
1514
namePrefix = poolName + "-thread-";
1615
}
1716

framework/src/play/vfs/VirtualFile.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import java.io.InputStream;
1111
import java.io.OutputStream;
1212
import java.nio.channels.Channel;
13-
import java.security.AccessControlException;
1413
import java.util.ArrayList;
1514
import java.util.Collection;
1615
import java.util.Collections;
@@ -103,11 +102,7 @@ public List<VirtualFile> list() {
103102
}
104103

105104
public boolean exists() {
106-
try {
107-
return realFile != null && realFile.exists();
108-
} catch (AccessControlException e) {
109-
return false;
110-
}
105+
return realFile != null && realFile.exists();
111106
}
112107

113108
public InputStream inputstream() {

0 commit comments

Comments
 (0)