Skip to content

Commit d1d4e5a

Browse files
committed
Synchronized with latest master
1 parent 3868443 commit d1d4e5a

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/gclient/IEntityResult.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*/
2020
package ca.uhn.fhir.rest.gclient;
2121

22-
import org.checkerframework.checker.nullness.qual.NonNull;
22+
import org.jspecify.annotations.NonNull;
2323

2424
import java.io.InputStream;
2525
import java.util.List;

hapi-fhir-client/src/main/java/ca/uhn/fhir/rest/client/impl/GenericClient.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@
139139
import org.apache.commons.io.IOUtils;
140140
import org.apache.commons.lang3.StringUtils;
141141
import org.apache.commons.lang3.Validate;
142-
import org.checkerframework.checker.nullness.qual.NonNull;
143142
import org.hl7.fhir.instance.model.api.IBase;
144143
import org.hl7.fhir.instance.model.api.IBaseBinary;
145144
import org.hl7.fhir.instance.model.api.IBaseBundle;
@@ -151,9 +150,11 @@
151150
import org.hl7.fhir.instance.model.api.IBaseResource;
152151
import org.hl7.fhir.instance.model.api.IIdType;
153152
import org.hl7.fhir.instance.model.api.IPrimitiveType;
153+
import org.jspecify.annotations.NonNull;
154154

155155
import java.io.IOException;
156156
import java.io.InputStream;
157+
import java.nio.charset.StandardCharsets;
157158
import java.util.ArrayList;
158159
import java.util.Arrays;
159160
import java.util.Collection;
@@ -1424,8 +1425,7 @@ private void addParam(String theName, IBase theValue) {
14241425
}
14251426

14261427
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());
14291429
addParam(theName, stringType);
14301430
}
14311431

@@ -2206,11 +2206,11 @@ public OUTPUT execute() {
22062206
Map<String, List<String>> params = getParamMap();
22072207

22082208
for (TokenParam next : myTags) {
2209-
addParam(params, Constants.PARAM_TAG, next.getValueAsQueryToken(myContext));
2209+
addParam(params, Constants.PARAM_TAG, next.getValueAsQueryToken());
22102210
}
22112211

22122212
for (TokenParam next : mySecurity) {
2213-
addParam(params, Constants.PARAM_SECURITY, next.getValueAsQueryToken(myContext));
2213+
addParam(params, Constants.PARAM_SECURITY, next.getValueAsQueryToken());
22142214
}
22152215

22162216
for (Collection<String> profileUris : myProfiles) {
@@ -2281,7 +2281,7 @@ public OUTPUT execute() {
22812281

22822282
if (myLastUpdated != null) {
22832283
for (DateParam next : myLastUpdated.getValuesAsQueryTokens()) {
2284-
addParam(params, Constants.PARAM_LASTUPDATED, next.getValueAsQueryToken(myContext));
2284+
addParam(params, Constants.PARAM_LASTUPDATED, next.getValueAsQueryToken());
22852285
}
22862286
}
22872287

@@ -2504,7 +2504,7 @@ public StringOutcome invokeClient(
25042504
Map<String, List<String>> theHeaders)
25052505
throws IOException, BaseServerResponseException {
25062506

2507-
String payload = IOUtils.toString(theResponseInputStream, Charsets.UTF_8);
2507+
String payload = IOUtils.toString(theResponseInputStream, StandardCharsets.UTF_8);
25082508
return new StringOutcome(theResponseStatusCode, payload, theHeaders);
25092509
}
25102510
}

0 commit comments

Comments
 (0)