File tree 1 file changed +3
-4
lines changed
spring-web/src/testFixtures/java/org/springframework/web/testfixture/servlet
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -100,9 +100,6 @@ public class MockHttpServletRequest implements HttpServletRequest {
100
100
101
101
private static final TimeZone GMT = TimeZone .getTimeZone ("GMT" );
102
102
103
- private static final BufferedReader EMPTY_BUFFERED_READER =
104
- new BufferedReader (new StringReader ("" ));
105
-
106
103
/**
107
104
* Date formats as specified in the HTTP RFC.
108
105
* @see <a href="https://tools.ietf.org/html/rfc7231#section-7.1.1.1">Section 7.1.1.1 of RFC 7231</a>
@@ -383,6 +380,7 @@ protected void checkActive() throws IllegalStateException {
383
380
// ---------------------------------------------------------------------
384
381
385
382
@ Override
383
+ @ Nullable
386
384
public Object getAttribute (String name ) {
387
385
checkActive ();
388
386
return this .attributes .get (name );
@@ -637,6 +635,7 @@ public Enumeration<String> getParameterNames() {
637
635
}
638
636
639
637
@ Override
638
+ @ Nullable
640
639
public String [] getParameterValues (String name ) {
641
640
Assert .notNull (name , "Parameter name must not be null" );
642
641
return this .parameters .get (name );
@@ -736,7 +735,7 @@ else if (this.inputStream != null) {
736
735
this .reader = new BufferedReader (sourceReader );
737
736
}
738
737
else {
739
- this .reader = EMPTY_BUFFERED_READER ;
738
+ this .reader = new BufferedReader ( new StringReader ( "" )) ;
740
739
}
741
740
return this .reader ;
742
741
}
You can’t perform that action at this time.
0 commit comments