Remove deprecated ThreadGroup and SecurityManager calls

This commit is contained in:
zzz
2026-03-26 13:15:09 -04:00
parent fcce5ed3bf
commit 10da8f733e
3 changed files with 2 additions and 12 deletions

View File

@@ -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;
}

View File

@@ -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,

View File

@@ -390,7 +390,6 @@ class SAMv3Handler extends SAMv1Handler
try {
Thread.sleep(1000);
} catch ( InterruptedException e) {}
rec.getThreadGroup().destroy();
sSessionsHash.del(session.getNick());
}
}