Author: olli
Date: Wed Jun 25 09:29:28 2014
New Revision: 1605304

URL: http://svn.apache.org/r1605304
Log:
SLING-3649 throw UnsupportedOperationException when deprecated methods are 
called

Modified:
    
sling/trunk/contrib/scripting/thymeleaf/src/main/java/org/apache/sling/scripting/thymeleaf/SlingWebContext.java

Modified: 
sling/trunk/contrib/scripting/thymeleaf/src/main/java/org/apache/sling/scripting/thymeleaf/SlingWebContext.java
URL: 
http://svn.apache.org/viewvc/sling/trunk/contrib/scripting/thymeleaf/src/main/java/org/apache/sling/scripting/thymeleaf/SlingWebContext.java?rev=1605304&r1=1605303&r2=1605304&view=diff
==============================================================================
--- 
sling/trunk/contrib/scripting/thymeleaf/src/main/java/org/apache/sling/scripting/thymeleaf/SlingWebContext.java
 (original)
+++ 
sling/trunk/contrib/scripting/thymeleaf/src/main/java/org/apache/sling/scripting/thymeleaf/SlingWebContext.java
 Wed Jun 25 09:29:28 2014
@@ -76,22 +76,22 @@ public class SlingWebContext implements 
 
     @Override
     public VariablesMap<String, String[]> getRequestParameters() {
-        return null;
+        throw new UnsupportedOperationException("Deprecated method is not 
supported.");
     }
 
     @Override
     public VariablesMap<String, Object> getRequestAttributes() {
-        return null;
+        throw new UnsupportedOperationException("Deprecated method is not 
supported.");
     }
 
     @Override
     public VariablesMap<String, Object> getSessionAttributes() {
-        return null;
+        throw new UnsupportedOperationException("Deprecated method is not 
supported.");
     }
 
     @Override
     public VariablesMap<String, Object> getApplicationAttributes() {
-        return null;
+        throw new UnsupportedOperationException("Deprecated method is not 
supported.");
     }
 
     @Override


Reply via email to