[hg] main-silver: Eliminate code warnings.

  • From:
  • To:
  • Subject: [hg] main-silver: Eliminate code warnings.
  • Date: Mon, 10 Jun 2013 14:35:50 -0700

changeset 32d072fea7a2 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/32d072fea7a2
description:
        Eliminate code warnings.

diffstat:

 
spi.debugger.ui/src/org/netbeans/spi/debugger/ui/EditorContextDispatcher.java 
|  12 ++++-----
 1 files changed, 5 insertions(+), 7 deletions(-)

diffs (57 lines):

diff --git 
a/spi.debugger.ui/src/org/netbeans/spi/debugger/ui/EditorContextDispatcher.java
 
b/spi.debugger.ui/src/org/netbeans/spi/debugger/ui/EditorContextDispatcher.java
--- 
a/spi.debugger.ui/src/org/netbeans/spi/debugger/ui/EditorContextDispatcher.java
+++ 
b/spi.debugger.ui/src/org/netbeans/spi/debugger/ui/EditorContextDispatcher.java
@@ -74,7 +74,6 @@
 import org.openide.filesystems.FileChangeListener;
 import org.openide.filesystems.FileObject;
 import org.openide.filesystems.FileRenameEvent;
-import org.openide.filesystems.FileStateInvalidException;
 import org.openide.loaders.DataObject;
 import org.openide.loaders.DataObjectNotFoundException;
 import org.openide.text.Line;
@@ -180,6 +179,7 @@
         erListener = new EditorRegistryListener();
         
EditorRegistry.addPropertyChangeListener(WeakListeners.propertyChange(erListener,
 EditorRegistry.class));
         SwingUtilities.invokeLater(new Runnable() {
+            @Override
             public void run() {
                 // To initialize data:
                 ((EditorRegistryListener) erListener).update(false);
@@ -205,9 +205,7 @@
         if (currentURL == null) {
             FileObject fo = getCurrentFile();
             if (fo != null) {
-                try {
-                    currentURL = fo.getURL().toString ();
-                } catch (FileStateInvalidException ex) {}
+                currentURL = fo.toURL().toString ();
             }
             if (currentURL == null) {
                 currentURL = ""; // NOI18N
@@ -323,9 +321,7 @@
     public synchronized String getMostRecentURLAsString() {
         FileObject fo = getMostRecentFile();
         if (fo != null) {
-            try {
-                return fo.getURL().toString ();
-            } catch (FileStateInvalidException ex) {}
+            return fo.toURL().toString ();
         }
         return ""; // NOI18N
     }
@@ -556,6 +552,7 @@
             this.type = type;
         }
         
+        @Override
         public void resultChanged(LookupEvent ev) {
             // It can happen, that we're called many times in one AWT 
cycle...
             coalescedLookupChanged();
@@ -902,6 +899,7 @@
             this.MIMEType = MIMEType;
         }
 
+        @Override
         public void run() {
             firePropertyChange(evt, MIMEType);
         }

[hg] main-silver: Eliminate code warnings.

mentlicher 06/10/2013

Project Features

About this Project

Debugger was started in November 2009, is owned by tpavek, and has 29 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close