Author: fmeschbe
Date: Fri Aug 13 12:34:05 2010
New Revision: 985177

URL: http://svn.apache.org/viewvc?rev=985177&view=rev
Log:
Suppress warnings on unused Exceptions (we keep them in the Signature for 
overwriting methods to be able to use them)

Modified:
    
sling/trunk/bundles/api/src/main/java/org/apache/sling/api/servlets/SlingAllMethodsServlet.java
    
sling/trunk/bundles/api/src/main/java/org/apache/sling/api/servlets/SlingSafeMethodsServlet.java

Modified: 
sling/trunk/bundles/api/src/main/java/org/apache/sling/api/servlets/SlingAllMethodsServlet.java
URL: 
http://svn.apache.org/viewvc/sling/trunk/bundles/api/src/main/java/org/apache/sling/api/servlets/SlingAllMethodsServlet.java?rev=985177&r1=985176&r2=985177&view=diff
==============================================================================
--- 
sling/trunk/bundles/api/src/main/java/org/apache/sling/api/servlets/SlingAllMethodsServlet.java
 (original)
+++ 
sling/trunk/bundles/api/src/main/java/org/apache/sling/api/servlets/SlingAllMethodsServlet.java
 Fri Aug 13 12:34:05 2010
@@ -59,6 +59,7 @@ public class SlingAllMethodsServlet exte
      * @throws IOException If the error status cannot be reported back to the
      *             client.
      */
+    @SuppressWarnings("unused")
     protected void doPost(SlingHttpServletRequest request,
             SlingHttpServletResponse response) throws ServletException,
             IOException {
@@ -82,6 +83,7 @@ public class SlingAllMethodsServlet exte
      * @throws IOException If the error status cannot be reported back to the
      *             client.
      */
+    @SuppressWarnings("unused")
     protected void doPut(SlingHttpServletRequest request,
             SlingHttpServletResponse response) throws ServletException,
             IOException {
@@ -105,6 +107,7 @@ public class SlingAllMethodsServlet exte
      * @throws IOException If the error status cannot be reported back to the
      *             client.
      */
+    @SuppressWarnings("unused")
     protected void doDelete(SlingHttpServletRequest request,
             SlingHttpServletResponse response) throws ServletException,
             IOException {

Modified: 
sling/trunk/bundles/api/src/main/java/org/apache/sling/api/servlets/SlingSafeMethodsServlet.java
URL: 
http://svn.apache.org/viewvc/sling/trunk/bundles/api/src/main/java/org/apache/sling/api/servlets/SlingSafeMethodsServlet.java?rev=985177&r1=985176&r2=985177&view=diff
==============================================================================
--- 
sling/trunk/bundles/api/src/main/java/org/apache/sling/api/servlets/SlingSafeMethodsServlet.java
 (original)
+++ 
sling/trunk/bundles/api/src/main/java/org/apache/sling/api/servlets/SlingSafeMethodsServlet.java
 Fri Aug 13 12:34:05 2010
@@ -120,6 +120,7 @@ public class SlingSafeMethodsServlet ext
      * @throws IOException If the error status cannot be reported back to the
      *             client.
      */
+    @SuppressWarnings("unused")
     protected void doGet(SlingHttpServletRequest request,
             SlingHttpServletResponse response) throws ServletException,
             IOException {
@@ -144,6 +145,7 @@ public class SlingSafeMethodsServlet ext
      * @throws ServletException Not thrown by this implementation.
      * @throws IOException Not thrown by this implementation.
      */
+    @SuppressWarnings("unused")
     protected void doOptions(SlingHttpServletRequest request,
             SlingHttpServletResponse response) throws ServletException,
             IOException {
@@ -166,6 +168,7 @@ public class SlingSafeMethodsServlet ext
      * @throws IOException May be thrown if there is an problem sending back 
the
      *             request headers in the response stream.
      */
+    @SuppressWarnings("unused")
     protected void doTrace(SlingHttpServletRequest request,
             SlingHttpServletResponse response) throws ServletException,
             IOException {
@@ -222,6 +225,7 @@ public class SlingSafeMethodsServlet ext
      * @throws IOException If the error status cannot be reported back to the
      *             client.
      */
+    @SuppressWarnings("unused")
     protected void doGeneric(SlingHttpServletRequest request,
             SlingHttpServletResponse response) throws ServletException,
             IOException {


Reply via email to