sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From romb...@apache.org
Subject [sling-org-apache-sling-scripting-thymeleaf] 13/17: SLING-3649 throw UnsupportedOperationException when deprecated methods are called
Date Tue, 07 Nov 2017 10:12:29 GMT
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 <olli@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" <commits@sling.apache.org>.

Mime
View raw message