Skip to content

Commit 381f33e

Browse files
committed
Add comments into Spring classes copied into jruby-rack
1 parent 52435a4 commit 381f33e

13 files changed

+26
-0
lines changed

src/spec/java/org/springframework/mock/web/DelegatingServletInputStream.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
* @author Juergen Hoeller
3333
* @since 1.0.2
3434
* @see MockHttpServletRequest
35+
* @implNote Source copied into jruby-rack from Spring Test 5.3.39 and minimally changed to support Jakarta Servlet API 5,
36+
* while still compiling to Java 8, which is not supported by Spring's support in 6.0+ (targets only Java 17+).
3537
*/
3638
public class DelegatingServletInputStream extends ServletInputStream {
3739

src/spec/java/org/springframework/mock/web/DelegatingServletOutputStream.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
* @author Juergen Hoeller
3333
* @since 1.0.2
3434
* @see MockHttpServletResponse
35+
* @implNote Source copied into jruby-rack from Spring Test 5.3.39 and minimally changed to support Jakarta Servlet API 5,
36+
* while still compiling to Java 8, which is not supported by Spring's support in 6.0+ (targets only Java 17+).
3537
*/
3638
public class DelegatingServletOutputStream extends ServletOutputStream {
3739

src/spec/java/org/springframework/mock/web/HeaderValueHolder.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
* @author Juergen Hoeller
2828
* @author Rick Evans
2929
* @since 2.0.1
30+
* @implNote Source copied into jruby-rack from Spring Test 5.3.39 and minimally changed to support Jakarta Servlet API 5,
31+
* while still compiling to Java 8, which is not supported by Spring's support in 6.0+ (targets only Java 17+).
3032
*/
3133
class HeaderValueHolder {
3234

src/spec/java/org/springframework/mock/web/MockAsyncContext.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
*
3434
* @author Rossen Stoyanchev
3535
* @since 3.2
36+
* @implNote Source copied into jruby-rack from Spring Test 5.3.39 and minimally changed to support Jakarta Servlet API 5,
37+
* while still compiling to Java 8, which is not supported by Spring's support in 6.0+ (targets only Java 17+).
3638
*/
3739
public class MockAsyncContext implements AsyncContext {
3840

src/spec/java/org/springframework/mock/web/MockCookie.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
* @author Juergen Hoeller
3535
* @author Sam Brannen
3636
* @since 5.1
37+
* @implNote Source copied into jruby-rack from Spring Test 5.3.39 and minimally changed to support Jakarta Servlet API 5,
38+
* while still compiling to Java 8, which is not supported by Spring's support in 6.0+ (targets only Java 17+).
3739
*/
3840
public class MockCookie extends Cookie {
3941

src/spec/java/org/springframework/mock/web/MockHttpServletRequest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@
4747
* @author Sam Brannen
4848
* @author Brian Clozel
4949
* @since 1.0.2
50+
* @implNote Source copied into jruby-rack from Spring Test 5.3.39 and minimally changed to support Jakarta Servlet API 5,
51+
* while still compiling to Java 8, which is not supported by Spring's support in 6.0+ (targets only Java 17+).
5052
*/
5153
public class MockHttpServletRequest implements HttpServletRequest {
5254

src/spec/java/org/springframework/mock/web/MockHttpServletResponse.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848
* @author Sebastien Deleuze
4949
* @author Sam Brannen
5050
* @since 1.0.2
51+
* @implNote Source copied into jruby-rack from Spring Test 5.3.39 and minimally changed to support Jakarta Servlet API 5,
52+
* while still compiling to Java 8, which is not supported by Spring's support in 6.0+ (targets only Java 17+).
5153
*/
5254
public class MockHttpServletResponse implements HttpServletResponse {
5355

src/spec/java/org/springframework/mock/web/MockHttpSession.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
* @author Sam Brannen
3838
* @author Vedran Pavic
3939
* @since 1.0.2
40+
* @implNote Source copied into jruby-rack from Spring Test 5.3.39 and minimally changed to support Jakarta Servlet API 5,
41+
* while still compiling to Java 8, which is not supported by Spring's support in 6.0+ (targets only Java 17+).
4042
*/
4143
@SuppressWarnings("deprecation")
4244
public class MockHttpSession implements HttpSession {

src/spec/java/org/springframework/mock/web/MockRequestDispatcher.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
* @author Sam Brannen
3333
* @since 1.0.2
3434
* @see MockHttpServletRequest#getRequestDispatcher(String)
35+
* @implNote Source copied into jruby-rack from Spring Test 5.3.39 and minimally changed to support Jakarta Servlet API 5,
36+
* while still compiling to Java 8, which is not supported by Spring's support in 6.0+ (targets only Java 17+).
3537
*/
3638
public class MockRequestDispatcher implements RequestDispatcher {
3739

src/spec/java/org/springframework/mock/web/MockServletConfig.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
* @author Rod Johnson
3333
* @author Juergen Hoeller
3434
* @since 1.0.2
35+
* @implNote Source copied into jruby-rack from Spring Test 5.3.39 and minimally changed to support Jakarta Servlet API 5,
36+
* while still compiling to Java 8, which is not supported by Spring's support in 6.0+ (targets only Java 17+).
3537
*/
3638
public class MockServletConfig implements ServletConfig {
3739

0 commit comments

Comments
 (0)