You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by ja...@apache.org on 2013/10/07 22:18:02 UTC
svn commit: r1530048 - in
/felix/trunk/http/base/src/main/java/org/apache/felix/http/base/internal/context:
ExtServletContext.java ServletContextImpl.java
Author: jawi
Date: Mon Oct 7 20:18:02 2013
New Revision: 1530048
URL: http://svn.apache.org/r1530048
Log:
Solved compiler warnings.
Modified:
felix/trunk/http/base/src/main/java/org/apache/felix/http/base/internal/context/ExtServletContext.java
felix/trunk/http/base/src/main/java/org/apache/felix/http/base/internal/context/ServletContextImpl.java
Modified: felix/trunk/http/base/src/main/java/org/apache/felix/http/base/internal/context/ExtServletContext.java
URL: http://svn.apache.org/viewvc/felix/trunk/http/base/src/main/java/org/apache/felix/http/base/internal/context/ExtServletContext.java?rev=1530048&r1=1530047&r2=1530048&view=diff
==============================================================================
--- felix/trunk/http/base/src/main/java/org/apache/felix/http/base/internal/context/ExtServletContext.java (original)
+++ felix/trunk/http/base/src/main/java/org/apache/felix/http/base/internal/context/ExtServletContext.java Mon Oct 7 20:18:02 2013
@@ -16,10 +16,11 @@
*/
package org.apache.felix.http.base.internal.context;
+import java.io.IOException;
+
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
-import java.io.IOException;
public interface ExtServletContext
extends ServletContext
Modified: felix/trunk/http/base/src/main/java/org/apache/felix/http/base/internal/context/ServletContextImpl.java
URL: http://svn.apache.org/viewvc/felix/trunk/http/base/src/main/java/org/apache/felix/http/base/internal/context/ServletContextImpl.java?rev=1530048&r1=1530047&r2=1530048&view=diff
==============================================================================
--- felix/trunk/http/base/src/main/java/org/apache/felix/http/base/internal/context/ServletContextImpl.java (original)
+++ felix/trunk/http/base/src/main/java/org/apache/felix/http/base/internal/context/ServletContextImpl.java Mon Oct 7 20:18:02 2013
@@ -105,7 +105,8 @@ public final class ServletContextImpl
if (res != null) {
try {
return res.openStream();
- } catch (IOException e) {
+ }
+ catch (IOException e) {
// Do nothing
}
}
@@ -207,20 +208,17 @@ public final class ServletContextImpl
}
}
- @SuppressWarnings("deprecation")
public Servlet getServlet(String name)
throws ServletException
{
return null;
}
- @SuppressWarnings("deprecation")
public Enumeration getServlets()
{
return Collections.enumeration(Collections.emptyList());
}
- @SuppressWarnings("deprecation")
public Enumeration getServletNames()
{
return Collections.enumeration(Collections.emptyList());