mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup
This commit is contained in:
+1
-1
@@ -202,7 +202,7 @@ public class ApplicationImpl extends ComponentManagerImpl implements Application
|
||||
boolean isHeadless,
|
||||
boolean isCommandLine,
|
||||
@NotNull String appName,
|
||||
Splash splash) {
|
||||
@Nullable Splash splash) {
|
||||
super(null);
|
||||
|
||||
ApplicationManager.setApplication(this, myLastDisposable); // reset back to null only when all components already disposed
|
||||
|
||||
@@ -42,12 +42,7 @@ public class _LastInSuiteTest extends TestCase {
|
||||
UIUtil.invokeAndWaitIfNeeded(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
LightPlatformTestCase.disposeApplication();
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
LightPlatformTestCase.disposeApplication();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -155,7 +155,7 @@ public abstract class LightPlatformTestCase extends UsefulTestCase implements Da
|
||||
}
|
||||
|
||||
@TestOnly
|
||||
public static void disposeApplication() throws Exception {
|
||||
public static void disposeApplication() {
|
||||
if (ourApplication != null) {
|
||||
Disposer.dispose(ourApplication);
|
||||
ourApplication = null;
|
||||
|
||||
Reference in New Issue
Block a user