|
139 | 139 | import org.apache.commons.io.IOUtils; |
140 | 140 | import org.apache.commons.lang3.StringUtils; |
141 | 141 | import org.apache.commons.lang3.Validate; |
142 | | -import org.checkerframework.checker.nullness.qual.NonNull; |
143 | 142 | import org.hl7.fhir.instance.model.api.IBase; |
144 | 143 | import org.hl7.fhir.instance.model.api.IBaseBinary; |
145 | 144 | import org.hl7.fhir.instance.model.api.IBaseBundle; |
|
151 | 150 | import org.hl7.fhir.instance.model.api.IBaseResource; |
152 | 151 | import org.hl7.fhir.instance.model.api.IIdType; |
153 | 152 | import org.hl7.fhir.instance.model.api.IPrimitiveType; |
| 153 | +import org.jspecify.annotations.NonNull; |
154 | 154 |
|
155 | 155 | import java.io.IOException; |
156 | 156 | import java.io.InputStream; |
| 157 | +import java.nio.charset.StandardCharsets; |
157 | 158 | import java.util.ArrayList; |
158 | 159 | import java.util.Arrays; |
159 | 160 | import java.util.Collection; |
@@ -1424,8 +1425,7 @@ private void addParam(String theName, IBase theValue) { |
1424 | 1425 | } |
1425 | 1426 |
|
1426 | 1427 | private void addParam(String theName, IQueryParameterType theValue) { |
1427 | | - IPrimitiveType<?> stringType = |
1428 | | - ParametersUtil.createString(myContext, theValue.getValueAsQueryToken(myContext)); |
| 1428 | + IPrimitiveType<?> stringType = ParametersUtil.createString(myContext, theValue.getValueAsQueryToken()); |
1429 | 1429 | addParam(theName, stringType); |
1430 | 1430 | } |
1431 | 1431 |
|
@@ -2206,11 +2206,11 @@ public OUTPUT execute() { |
2206 | 2206 | Map<String, List<String>> params = getParamMap(); |
2207 | 2207 |
|
2208 | 2208 | for (TokenParam next : myTags) { |
2209 | | - addParam(params, Constants.PARAM_TAG, next.getValueAsQueryToken(myContext)); |
| 2209 | + addParam(params, Constants.PARAM_TAG, next.getValueAsQueryToken()); |
2210 | 2210 | } |
2211 | 2211 |
|
2212 | 2212 | for (TokenParam next : mySecurity) { |
2213 | | - addParam(params, Constants.PARAM_SECURITY, next.getValueAsQueryToken(myContext)); |
| 2213 | + addParam(params, Constants.PARAM_SECURITY, next.getValueAsQueryToken()); |
2214 | 2214 | } |
2215 | 2215 |
|
2216 | 2216 | for (Collection<String> profileUris : myProfiles) { |
@@ -2281,7 +2281,7 @@ public OUTPUT execute() { |
2281 | 2281 |
|
2282 | 2282 | if (myLastUpdated != null) { |
2283 | 2283 | for (DateParam next : myLastUpdated.getValuesAsQueryTokens()) { |
2284 | | - addParam(params, Constants.PARAM_LASTUPDATED, next.getValueAsQueryToken(myContext)); |
| 2284 | + addParam(params, Constants.PARAM_LASTUPDATED, next.getValueAsQueryToken()); |
2285 | 2285 | } |
2286 | 2286 | } |
2287 | 2287 |
|
@@ -2504,7 +2504,7 @@ public StringOutcome invokeClient( |
2504 | 2504 | Map<String, List<String>> theHeaders) |
2505 | 2505 | throws IOException, BaseServerResponseException { |
2506 | 2506 |
|
2507 | | - String payload = IOUtils.toString(theResponseInputStream, Charsets.UTF_8); |
| 2507 | + String payload = IOUtils.toString(theResponseInputStream, StandardCharsets.UTF_8); |
2508 | 2508 | return new StringOutcome(theResponseStatusCode, payload, theHeaders); |
2509 | 2509 | } |
2510 | 2510 | } |
|
0 commit comments