Revision: 3792
Author: mikesamuel
Date: Thu Oct  8 15:42:37 2009
Log: Eclipse warning cleanup
http://codereview.appspot.com/129055



[email protected]

http://code.google.com/p/google-caja/source/detail?r=3792

Modified:
 /trunk/src/com/google/caja/service/CajolingService.java
 /trunk/tests/com/google/caja/service/FetchedDataTest.java
 /trunk/tests/com/google/caja/service/ImageHandlerTest.java
 /trunk/tests/com/google/caja/service/TestHttpServletRequest.java

=======================================
--- /trunk/src/com/google/caja/service/CajolingService.java Wed Oct 7 11:42:04 2009 +++ /trunk/src/com/google/caja/service/CajolingService.java Thu Oct 8 15:42:37 2009
@@ -137,9 +137,6 @@
       expectedInputContentType = getParam(req, "input-mime-type",
           true /* required */);
     }
-
-    String inputContentType, inputCharSet;
-    byte[] content;

     FetchedData fetchedData;
     try {
=======================================
--- /trunk/tests/com/google/caja/service/FetchedDataTest.java Wed Oct 7 11:42:04 2009 +++ /trunk/tests/com/google/caja/service/FetchedDataTest.java Thu Oct 8 15:42:37 2009
@@ -16,12 +16,11 @@

 import com.google.caja.util.CajaTestCase;

-import java.net.URLConnection;
-import java.net.URL;
-import java.net.URI;
-import java.io.IOException;
-import java.io.InputStream;
 import java.io.ByteArrayInputStream;
+import java.io.InputStream;
+import java.net.URI;
+import java.net.URL;
+import java.net.URLConnection;

 /**
  * @author [email protected] (Ihab Awad)
@@ -46,18 +45,18 @@
     }

     @Override
-    public InputStream getInputStream() throws IOException {
+    public InputStream getInputStream() {
       return new ByteArrayInputStream(data.getBytes());
     }
   }

   private URL testUrl;

+  @Override
   public void setUp() throws Exception {
+    super.setUp();
     testUrl = URI.create("http://www.example.com/";).toURL();
   }
-
-  public void tearDown() throws Exception { }

   public void testSimpleContent() throws Exception {
     FetchedData fd = new FetchedData(
=======================================
--- /trunk/tests/com/google/caja/service/ImageHandlerTest.java Wed Oct 7 11:42:04 2009 +++ /trunk/tests/com/google/caja/service/ImageHandlerTest.java Thu Oct 8 15:42:37 2009
@@ -14,8 +14,6 @@

 package com.google.caja.service;

-import com.google.caja.util.CajaTestCase;
-
 import java.util.Arrays;

 /**
=======================================
--- /trunk/tests/com/google/caja/service/TestHttpServletRequest.java Wed Oct 7 11:42:04 2009 +++ /trunk/tests/com/google/caja/service/TestHttpServletRequest.java Thu Oct 8 15:42:37 2009
@@ -127,7 +127,7 @@
     final ByteArrayInputStream bais = new ByteArrayInputStream(content);
     return new ServletInputStream() {
       @Override
-      public int read() throws IOException {
+      public int read() {
         return bais.read();
       }
       @Override

Reply via email to