Commits

Joseph Walton committed 38dc389

Remove unused imports. Use generics in test.

  • Participants
  • Parent commits 05820c6

Comments (0)

Files changed (2)

core/src/main/java/com/atlassian/johnson/DefaultJohnsonEventContainer.java

 package com.atlassian.johnson;
 
-import com.atlassian.johnson.event.Event;
-
-import javax.servlet.ServletContext;
 import java.util.Collections;
 import java.util.List;
 import java.util.concurrent.CopyOnWriteArrayList;
 
+import com.atlassian.johnson.event.Event;
+
 /**
  * A default implementation of {@link JohnsonEventContainer} which stores events in a list.
  * <p/>
 
     /**
      * Adds the provided {@link Event} to the list.
-     * 
+     *
      * @param event the event to add
      */
     @Override
 
     /**
      * Retrieves an <i>unmodifiable</i> view of the current {@link Event} list.
-     * 
+     *
      * @return an unmodifiable collection of zero or more events
      */
     @Override
 
     /**
      * Retrieves a flag indicating whether there are any {@link Event}s in the list.
-     * 
+     *
      * @return {@link true} if the event list is not empty; otherwise, {@code false}
      */
     @Override

core/src/test/java/com/atlassian/johnson/filters/JohnsonXmlRpcAndSoapFilterTest.java

             }
 
             @Override
-            protected String getStringForEvents(Collection events)
+            protected String getStringForEvents(Collection<Event> events)
             {
                 return null;
             }
             }
 
             @Override
-            protected String getStringForEvents(Collection events)
+            protected String getStringForEvents(Collection<Event> events)
             {
                 return null;
             }
     {
         ByteArrayOutputStream stream = new ByteArrayOutputStream(512);
         PrintWriter writer = new PrintWriter(stream);
-        
+
         HttpServletResponse response = createStrictMock(HttpServletResponse.class);
         response.setContentType(eq(AbstractJohnsonFilter.TEXT_XML_UTF8_CONTENT_TYPE));
         response.setStatus(eq(HttpServletResponse.SC_SERVICE_UNAVAILABLE));