diff --git a/surf/spring-surf/spring-surf/src/main/java/org/springframework/extensions/surf/util/FakeHttpServletResponse.java b/surf/spring-surf/spring-surf/src/main/java/org/springframework/extensions/surf/util/FakeHttpServletResponse.java
index 09284ca2..1ab8497d 100644
--- a/surf/spring-surf/spring-surf/src/main/java/org/springframework/extensions/surf/util/FakeHttpServletResponse.java
+++ b/surf/spring-surf/spring-surf/src/main/java/org/springframework/extensions/surf/util/FakeHttpServletResponse.java
@@ -1,20 +1,20 @@
-/*
- * Copyright (C) 2005-2015 Alfresco Software Limited.
- *
- * This file is part of Alfresco
- *
- * Alfresco is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * Alfresco is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with Alfresco. If not, see .
+/*
+ * Copyright (C) 2005-2015 Alfresco Software Limited.
+ *
+ * This file is part of Alfresco
+ *
+ * Alfresco is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Alfresco is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with Alfresco. If not, see .
*/
package org.springframework.extensions.surf.util;
@@ -35,7 +35,7 @@
import java.util.Locale;
import java.util.Map;
import java.util.Set;
-
+
import javax.servlet.ServletOutputStream;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletResponse;
@@ -126,7 +126,17 @@ private void init()
this.initialised = true;
}
}
-
+
+ /**
+ * (non-Javadoc)
+ * Intentionally returns {@code null} to avoid exposing the wrapped response.
+ * @see jakarta.servlet.ServletResponseWrapper#getResponse()
+ */
+ @Override
+ public HttpServletResponse getResponse() {
+ return null;
+ }
+
/**
* (non-Javadoc)
* @see javax.servlet.ServletResponse#setCharacterEncoding(java.lang.String)