You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ol...@apache.org on 2014/06/25 11:29:28 UTC
svn commit: r1605304 -
/sling/trunk/contrib/scripting/thymeleaf/src/main/java/org/apache/sling/scripting/thymeleaf/SlingWebContext.java
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