mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-03-29 07:39:57 +00:00
Remove deprecated ThreadGroup and SecurityManager calls
This commit is contained in:
@@ -137,8 +137,7 @@ public class RrdSyncThreadPool
|
||||
final String poolName;
|
||||
|
||||
DaemonThreadFactory(String poolName) {
|
||||
SecurityManager s = System.getSecurityManager();
|
||||
group = (s != null) ? s.getThreadGroup() : Thread.currentThread().getThreadGroup();
|
||||
group = Thread.currentThread().getThreadGroup();
|
||||
this.poolName = poolName;
|
||||
}
|
||||
|
||||
|
||||
@@ -4560,13 +4560,7 @@ public class Tcpbw100 extends JApplet implements ActionListener {
|
||||
}
|
||||
|
||||
if ( done == 0 ){
|
||||
_log.warn("TG destroy");
|
||||
try{
|
||||
thread_group.destroy();
|
||||
break;
|
||||
}catch( Throwable e ){
|
||||
_log.debug("TG", e);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
try{
|
||||
@@ -4594,8 +4588,6 @@ public class Tcpbw100 extends JApplet implements ActionListener {
|
||||
}
|
||||
};
|
||||
|
||||
_thread_group.setDaemon( true );
|
||||
|
||||
Thread t =
|
||||
new I2PAppThread(
|
||||
_thread_group,
|
||||
|
||||
@@ -390,7 +390,6 @@ class SAMv3Handler extends SAMv1Handler
|
||||
try {
|
||||
Thread.sleep(1000);
|
||||
} catch ( InterruptedException e) {}
|
||||
rec.getThreadGroup().destroy();
|
||||
sSessionsHash.del(session.getNick());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user