File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 1010import java .io .InputStream ;
1111import java .io .OutputStream ;
1212import java .nio .channels .Channel ;
13- import java .security .AccessControlException ;
1413import java .util .ArrayList ;
1514import java .util .Collection ;
1615import 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 () {
You can’t perform that action at this time.
0 commit comments