JAL-1582 removing finalize() as may have unexpected behaviour
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 18 Nov 2014 15:01:30 +0000 (15:01 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 18 Nov 2014 15:01:30 +0000 (15:01 +0000)
src/jalview/ws/jws2/MsaWSClient.java

index fd01777..09a6d8d 100644 (file)
@@ -289,17 +289,7 @@ public class MsaWSClient extends Jws2Client
                   .getDismissDelay();
           for (final WsParamSetI preset : presets)
           {
-            final JMenuItem methodR = new JMenuItem(preset.getName())
-            {
-              @Override
-              protected void finalize() throws Throwable
-              {
-                // failsafe to ensure tooltip hover time is restored
-                ToolTipManager.sharedInstance().setDismissDelay(
-                        showToolTipFor);
-                super.finalize();
-              }
-            };
+            final JMenuItem methodR = new JMenuItem(preset.getName());
             final int QUICK_TOOLTIP = 1500;
             // JAL-1582 shorten tooltip display time in these menu items as
             // they can obscure other options