mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Add Batik thread to wellKnownOffenders
This commit is contained in:
@@ -100,6 +100,7 @@ public class ThreadTracker {
|
||||
wellKnownOffenders.add("VM Periodic Task Thread");
|
||||
wellKnownOffenders.add("VM Thread");
|
||||
wellKnownOffenders.add("YJPAgent-Telemetry");
|
||||
wellKnownOffenders.add("Batik CleanerThread");
|
||||
|
||||
Application application = ApplicationManager.getApplication();
|
||||
// LeakHunter might be accessed first time after Application is already disposed (during test framework shutdown).
|
||||
|
||||
@@ -80,8 +80,6 @@ public abstract class UsefulTestCase extends TestCase {
|
||||
static {
|
||||
IdeaForkJoinWorkerThreadFactory.setupPoisonFactory();
|
||||
Logger.setFactory(TestLoggerFactory.class);
|
||||
// avoid thread leak reported
|
||||
SVGLoader.loadBatikInternalObscureHackEternalReferenceCollectingThread();
|
||||
}
|
||||
protected static final Logger LOG = Logger.getInstance(UsefulTestCase.class);
|
||||
|
||||
|
||||
@@ -61,10 +61,6 @@ public class SVGLoader {
|
||||
private final Size size;
|
||||
private BufferedImage img;
|
||||
|
||||
public static void loadBatikInternalObscureHackEternalReferenceCollectingThread() {
|
||||
CleanerThread.getReferenceQueue();
|
||||
}
|
||||
|
||||
private static class Size {
|
||||
final float width;
|
||||
final float height;
|
||||
|
||||
Reference in New Issue
Block a user