This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-servlet-helpers.git

commit 043b7f462544fdd13f966d64e90ac3ff0de5568a
Author: Justin Edelson <[email protected]>
AuthorDate: Mon Oct 2 17:39:30 2017 +0000

    SLING-7174 - should be IllegalStateException, not IllegalArgumentException
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1810564 
13f79535-47bb-0310-9956-ffa450edef68
---
 .../org/apache/sling/servlethelpers/MockSlingHttpServletRequest.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/src/main/java/org/apache/sling/servlethelpers/MockSlingHttpServletRequest.java
 
b/src/main/java/org/apache/sling/servlethelpers/MockSlingHttpServletRequest.java
index 128db0c..ac64f9a 100644
--- 
a/src/main/java/org/apache/sling/servlethelpers/MockSlingHttpServletRequest.java
+++ 
b/src/main/java/org/apache/sling/servlethelpers/MockSlingHttpServletRequest.java
@@ -545,7 +545,7 @@ public class MockSlingHttpServletRequest extends 
SlingAdaptable implements Sling
     @Override
     public ServletInputStream getInputStream() {
         if (getReaderCalled) {
-            throw new IllegalArgumentException();
+            throw new IllegalStateException();
         }
         getInputStreamCalled = true;
         return new ServletInputStream() {
@@ -829,7 +829,7 @@ public class MockSlingHttpServletRequest extends 
SlingAdaptable implements Sling
     @Override
     public BufferedReader getReader() {
         if (getInputStreamCalled) {
-            throw new IllegalArgumentException();
+            throw new IllegalStateException();
         }
         getReaderCalled = true;
         if (this.content == null) {

-- 
To stop receiving notification emails like this one, please contact
"[email protected]" <[email protected]>.

Reply via email to