- /**
- * Start or stop the automatic garbage collection in the EDT.
- *
- * @param doGarbageCollectionInEDT
- */
- public void SetAutoGarbageCollection(boolean doGarbageCollectionInEDT) {
- autoCollectionRunning = doGarbageCollectionInEDT;
- executor.shutdown();
- if (doGarbageCollectionInEDT) {
- executor = Executors.newSingleThreadScheduledExecutor();
- executor.scheduleAtFixedRate(deferredEdtRunnable, periodTime, periodTime, timeUnit);
- }
+ /**
+ * Start or stop the automatic garbage collection in the EDT.
+ *
+ * @param doGarbageCollectionInEDT
+ */
+ public void SetAutoGarbageCollection(boolean doGarbageCollectionInEDT) {
+ autoCollectionRunning = doGarbageCollectionInEDT;
+ executor.shutdown();
+ if (doGarbageCollectionInEDT) {
+ executor = Executors.newSingleThreadScheduledExecutor();
+ executor.scheduleAtFixedRate(deferredEdtRunnable, periodTime, periodTime, timeUnit);