Cleanup and fix some warnings.
This commit is contained in:
@@ -47,7 +47,7 @@ public class GUI {
|
||||
|
||||
public static void main(final String... args) {
|
||||
Thread.setDefaultUncaughtExceptionHandler(
|
||||
(t, e) -> logger.err( e, "Uncaught: %s", e.getLocalizedMessage() ) );
|
||||
(t, e) -> logger.bug( e, "Uncaught: %s", e.getLocalizedMessage() ) );
|
||||
|
||||
if (Config.get().checkForUpdates())
|
||||
checkUpdate();
|
||||
|
@@ -33,7 +33,7 @@ public class SwingExecutorService extends AbstractExecutorService {
|
||||
|
||||
synchronized (pendingCommands) {
|
||||
if (pendingCommands.isEmpty())
|
||||
terminated.offer( true );
|
||||
terminated.add( true );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ public class SwingExecutorService extends AbstractExecutorService {
|
||||
pendingCommands.remove( command );
|
||||
|
||||
if (shutdown && pendingCommands.isEmpty())
|
||||
terminated.offer( true );
|
||||
terminated.add( true );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user