Code cleanup: removed warnings.
diff --git a/com.google.eclipse.elt.emulator/src/com/google/eclipse/elt/emulator/connector/TerminalToRemoteInjectionOutputStream.java b/com.google.eclipse.elt.emulator/src/com/google/eclipse/elt/emulator/connector/TerminalToRemoteInjectionOutputStream.java
index 514c5b0..3c6353f 100644
--- a/com.google.eclipse.elt.emulator/src/com/google/eclipse/elt/emulator/connector/TerminalToRemoteInjectionOutputStream.java
+++ b/com.google.eclipse.elt.emulator/src/com/google/eclipse/elt/emulator/connector/TerminalToRemoteInjectionOutputStream.java
@@ -10,43 +10,32 @@
 import java.io.*;
 
 class TerminalToRemoteInjectionOutputStream extends FilterOutputStream {
-  /**
-   * This class handles bytes written to the {@link TerminalToRemoteInjectionOutputStream}.
-   */
-  static public abstract class Interceptor {
-    protected OutputStream original;
+  private static class BufferInterceptor {
+    private final ByteArrayOutputStream buffer = new ByteArrayOutputStream();
 
-    public void begin(OutputStream original) throws IOException {
+    private OutputStream original;
+
+    void begin(OutputStream original) {
       this.original = original;
     }
 
-    public void write(int b) throws IOException {}
-
-    public void write(byte[] b, int off, int len) throws IOException {}
-
-    public void close() throws IOException {}
-
-    public void flush() {}
-  }
-
-  public static class BufferInterceptor extends Interceptor {
-    private final ByteArrayOutputStream fBuffer = new ByteArrayOutputStream();
-
-    @Override public void close() throws IOException {
-      original.write(fBuffer.toByteArray());
+    void close() throws IOException {
+      original.write(buffer.toByteArray());
     }
 
-    @Override public void write(byte[] b, int off, int len) throws IOException {
-      fBuffer.write(b, off, len);
+    void write(byte[] b, int off, int len) {
+      buffer.write(b, off, len);
     }
 
-    @Override public void write(int b) throws IOException {
-      fBuffer.write(b);
+    void write(int b) {
+      buffer.write(b);
     }
+
+    void flush() {}
   }
 
   private class TerminalFilterOutputStream extends OutputStream {
-    final private Object lock = TerminalToRemoteInjectionOutputStream.this;
+    final private Object lock = new Object();
 
     @Override public void close() throws IOException {
       synchronized (lock) {
@@ -93,7 +82,7 @@
     }
   }
 
-  private Interceptor interceptor;
+  private BufferInterceptor interceptor;
   private TerminalFilterOutputStream injection;
 
   public TerminalToRemoteInjectionOutputStream(OutputStream out) {
@@ -115,7 +104,7 @@
    * @return a output stream that can be used to write to the decorated stream.
    * @throws IOException if something goes wrong.
    */
-  public synchronized OutputStream grabOutput(Interceptor interceptor) throws IOException {
+  public synchronized OutputStream grabOutput(BufferInterceptor interceptor) throws IOException {
     if (injection != null) {
       throw new IOException("Buffer in use");
     }
diff --git a/com.google.eclipse.elt.emulator/src/com/google/eclipse/elt/emulator/impl/TerminalInputStream.java b/com.google.eclipse.elt.emulator/src/com/google/eclipse/elt/emulator/impl/TerminalInputStream.java
index a41a0e0..8b752ea 100644
--- a/com.google.eclipse.elt.emulator/src/com/google/eclipse/elt/emulator/impl/TerminalInputStream.java
+++ b/com.google.eclipse.elt.emulator/src/com/google/eclipse/elt/emulator/impl/TerminalInputStream.java
@@ -154,7 +154,7 @@
    *
    * @return the next available byte.
    */
-  @Override public int read() throws IOException {
+  @Override public int read() {
     try {
       return queue.read();
     } catch (InterruptedException e) {
@@ -169,7 +169,7 @@
    */
   @Override public void close() {}
 
-  @Override public int read(byte[] b, int off, int len) throws IOException {
+  @Override public int read(byte[] b, int off, int len) {
     int n = 0;
     // Read as much as we can using a single synchronized statement.
     synchronized (queue) {
@@ -192,7 +192,7 @@
    *
    */
   class TerminalOutputStream extends OutputStream {
-    @Override public void write(byte[] b, int off, int len) throws IOException {
+    @Override public void write(byte[] b, int off, int len) {
       try {
         // optimization to avoid many synchronized sections: put the data in junks into the queue.
         int newOff = off;
@@ -217,7 +217,7 @@
       }
     }
 
-    @Override public void write(int b) throws IOException {
+    @Override public void write(int b) {
       try {
         // A kind of optimization, because both calls use the queue lock.
         synchronized (queue) {
diff --git a/com.google.eclipse.elt.emulator/src/com/google/eclipse/elt/emulator/impl/TerminalPlugin.java b/com.google.eclipse.elt.emulator/src/com/google/eclipse/elt/emulator/impl/TerminalPlugin.java
index 1a9fe5b..d485a7d 100644
--- a/com.google.eclipse.elt.emulator/src/com/google/eclipse/elt/emulator/impl/TerminalPlugin.java
+++ b/com.google.eclipse.elt.emulator/src/com/google/eclipse/elt/emulator/impl/TerminalPlugin.java
@@ -7,11 +7,10 @@
  *******************************************************************************/
 package com.google.eclipse.elt.emulator.impl;
 
+import static com.google.eclipse.elt.emulator.actions.Images.*;
 import static org.eclipse.core.runtime.IStatus.ERROR;
 
-import static com.google.eclipse.elt.emulator.actions.Images.*;
-
-import java.net.*;
+import java.net.URL;
 
 import org.eclipse.core.runtime.*;
 import org.eclipse.jface.resource.*;
@@ -39,20 +38,15 @@
   }
 
   @Override protected void initializeImageRegistry(ImageRegistry imageRegistry) {
-    try {
-      // Local tool-bars
-      putImageInRegistry(imageRegistry, IMAGE_CLCL_CLEAR_ALL, IMAGE_DIR_LOCALTOOL + "clear_co.gif");
-      // Enabled local tool-bars
-      putImageInRegistry(imageRegistry, IMAGE_ELCL_CLEAR_ALL, IMAGE_DIR_ELCL + "clear_co.gif");
-      // Disabled local tool-bars
-      putImageInRegistry(imageRegistry, IMAGE_DLCL_CLEAR_ALL, IMAGE_DIR_DLCL + "clear_co.gif");
-    } catch (MalformedURLException malformedURLException) {
-      malformedURLException.printStackTrace();
-    }
+    // Local tool-bars
+    putImageInRegistry(imageRegistry, IMAGE_CLCL_CLEAR_ALL, IMAGE_DIR_LOCALTOOL + "clear_co.gif");
+    // Enabled local tool-bars
+    putImageInRegistry(imageRegistry, IMAGE_ELCL_CLEAR_ALL, IMAGE_DIR_ELCL + "clear_co.gif");
+    // Disabled local tool-bars
+    putImageInRegistry(imageRegistry, IMAGE_DLCL_CLEAR_ALL, IMAGE_DIR_DLCL + "clear_co.gif");
   }
 
-  protected void putImageInRegistry(
-      ImageRegistry imageRegistry, String strKey, String relativePath) throws MalformedURLException {
+  protected void putImageInRegistry(ImageRegistry imageRegistry, String strKey, String relativePath) {
     URL url = TerminalPlugin.getDefault().getBundle().getEntry(relativePath);
     ImageDescriptor imageDescriptor = ImageDescriptor.createFromURL(url);
     imageRegistry.put(strKey, imageDescriptor);
diff --git a/com.google.eclipse.elt.emulator/src/com/google/eclipse/elt/emulator/textcanvas/PipedInputStream.java b/com.google.eclipse.elt.emulator/src/com/google/eclipse/elt/emulator/textcanvas/PipedInputStream.java
index f0dbbd2..df3c556 100644
--- a/com.google.eclipse.elt.emulator/src/com/google/eclipse/elt/emulator/textcanvas/PipedInputStream.java
+++ b/com.google.eclipse.elt.emulator/src/com/google/eclipse/elt/emulator/textcanvas/PipedInputStream.java
@@ -61,7 +61,7 @@
     }
   }
 
-  @Override public int read() throws IOException {
+  @Override public int read() {
     try {
       synchronized (queue) {
         return queue.read();
@@ -72,13 +72,13 @@
     }
   }
 
-  @Override public void close() throws IOException {
+  @Override public void close() {
     synchronized (queue) {
       queue.close();
     }
   }
 
-  @Override public int read(byte[] b, int off, int len) throws IOException {
+  @Override public int read(byte[] b, int off, int len) {
     if (len == 0) {
       return 0;
     }
@@ -162,7 +162,7 @@
       }
     }
 
-    @Override public void close() throws IOException {
+    @Override public void close() {
       synchronized (queue) {
         queue.close();
       }