diff options
author | acolyer <acolyer> | 2004-01-23 10:07:16 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2004-01-23 10:07:16 +0000 |
commit | 770ec4fea1257b17f77e34c86e8d619aa45d1709 (patch) | |
tree | 98fd0d28d935dd90e8cd50f6d28ee530e632e44b /ajbrowser/src | |
parent | f24286d65906e4fca5e2872ca1fa8295c1ab6bc7 (diff) | |
download | aspectj-770ec4fea1257b17f77e34c86e8d619aa45d1709.tar.gz aspectj-770ec4fea1257b17f77e34c86e8d619aa45d1709.zip |
tidying up compiler warnings (unused locals, imports)
Diffstat (limited to 'ajbrowser/src')
3 files changed, 5 insertions, 8 deletions
diff --git a/ajbrowser/src/org/aspectj/tools/ajbrowser/BasicEditor.java b/ajbrowser/src/org/aspectj/tools/ajbrowser/BasicEditor.java index 8913b2109..95d5c9135 100644 --- a/ajbrowser/src/org/aspectj/tools/ajbrowser/BasicEditor.java +++ b/ajbrowser/src/org/aspectj/tools/ajbrowser/BasicEditor.java @@ -22,7 +22,7 @@ import java.io.File; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; -import java.net.URL; +//import java.net.URL; import javax.swing.JEditorPane; import javax.swing.JPanel; @@ -90,7 +90,6 @@ public class BasicEditor implements EditorAdapter { public void showSourceLine(String filePath, int lineNumber, boolean highlight) { //AjdeUIManager.getDefault().getIdeUIAdapter().resetEditor(); - String oldPath = this.filePath; this.filePath = filePath; // if (oldPath != filePath && !Ajde.INSTANCE.BROWSER_MANAGER.isGlobalMode()) { // Ajde.INSTANCE.BROWSER_MANAGER.updateView(); @@ -145,7 +144,7 @@ public class BasicEditor implements EditorAdapter { private String readFile(String filePath, int lineNumber) { try { - URL url = ClassLoader.getSystemResource(filePath); +// URL url = ClassLoader.getSystemResource(filePath); File file = new File(filePath); if (!file.exists()) { return "ERROR: file \"" + filePath + "\" does not exist."; @@ -153,7 +152,6 @@ public class BasicEditor implements EditorAdapter { BufferedReader reader = new BufferedReader(new FileReader(file)); StringBuffer contents = new StringBuffer(); String line = reader.readLine(); - int numChars = 0; int numLines = 0; while (line != null) { numLines++; diff --git a/ajbrowser/src/org/aspectj/tools/ajbrowser/BrowserManager.java b/ajbrowser/src/org/aspectj/tools/ajbrowser/BrowserManager.java index 826ca9299..8227c7fd0 100644 --- a/ajbrowser/src/org/aspectj/tools/ajbrowser/BrowserManager.java +++ b/ajbrowser/src/org/aspectj/tools/ajbrowser/BrowserManager.java @@ -24,7 +24,7 @@ import org.aspectj.ajde.ui.*; import org.aspectj.ajde.ui.internal.UserPreferencesStore; import org.aspectj.ajde.ui.swing.*; import org.aspectj.asm.*; -import org.aspectj.asm.internal.*; +//import org.aspectj.asm.internal.*; /** * IDE manager for standalone AJDE application. @@ -216,7 +216,6 @@ public class BrowserManager { public void compileStarted(String buildConfigFile) { } public void compileFinished(String buildConfigFile, int buildTime, boolean succeeded, boolean warnings) { - int timeInSeconds = buildTime/1000; if (succeeded && !warnings) { hideMessages(); } else { diff --git a/ajbrowser/src/org/aspectj/tools/ajbrowser/TopFrame.java b/ajbrowser/src/org/aspectj/tools/ajbrowser/TopFrame.java index 5fa109e6a..e592db5d0 100644 --- a/ajbrowser/src/org/aspectj/tools/ajbrowser/TopFrame.java +++ b/ajbrowser/src/org/aspectj/tools/ajbrowser/TopFrame.java @@ -51,8 +51,8 @@ public class TopFrame extends JFrame { private JMenuItem jMenuItem1 = new JMenuItem(); private JMenuItem exit_menuItem = new JMenuItem(); private JSplitPane top_splitPane = new JSplitPane(); - private BorderLayout borderLayout2 = new BorderLayout(); - private BorderLayout borderLayout1 = new BorderLayout(); +// private BorderLayout borderLayout2 = new BorderLayout(); +// private BorderLayout borderLayout1 = new BorderLayout(); private BorderLayout borderLayout3 = new BorderLayout(); private JMenuItem projectRun_menuItem = new JMenuItem(); private JMenuItem projectRunOther_menuItem = new JMenuItem(); |