You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 10:12:29 UTC
[sling-org-apache-sling-scripting-thymeleaf] 13/17: SLING-3649
throw UnsupportedOperationException when deprecated methods are called
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.scripting.thymeleaf-0.0.2
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-scripting-thymeleaf.git
commit 26513f4990b5ac48482a2a27e9cbbadbbf83d2c4
Author: Oliver Lietz <ol...@apache.org>
AuthorDate: Wed Jun 25 09:29:28 2014 +0000
SLING-3649 throw UnsupportedOperationException when deprecated methods are called
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/contrib/scripting/thymeleaf@1605304 13f79535-47bb-0310-9956-ffa450edef68
---
.../org/apache/sling/scripting/thymeleaf/SlingWebContext.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/main/java/org/apache/sling/scripting/thymeleaf/SlingWebContext.java b/src/main/java/org/apache/sling/scripting/thymeleaf/SlingWebContext.java
index a5e206d..82bf14b 100644
--- a/src/main/java/org/apache/sling/scripting/thymeleaf/SlingWebContext.java
+++ b/src/main/java/org/apache/sling/scripting/thymeleaf/SlingWebContext.java
@@ -76,22 +76,22 @@ public class SlingWebContext implements SlingContext, IWebContext {
@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
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.