File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
spring-web/src/main/java/org/springframework/http/client Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright 2002-2024 the original author or authors.
2+ * Copyright 2002-2025 the original author or authors.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
1919import java .io .IOException ;
2020import java .io .InputStream ;
2121import java .net .HttpURLConnection ;
22+ import java .util .Objects ;
2223
2324import org .jspecify .annotations .Nullable ;
2425
@@ -102,6 +103,7 @@ public void close() {
102103 if (this .responseStream == null ) {
103104 getBody ();
104105 }
106+ Objects .requireNonNull (this .responseStream );
105107 StreamUtils .drain (this .responseStream );
106108 this .responseStream .close ();
107109 }
You can’t perform that action at this time.
0 commit comments