Skip to content

Commit b3a0840

Browse files
author
jdar
committed
remove unused imports, add copyright header from build
1 parent 4eb4802 commit b3a0840

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/search/builder/SearchBuilder.java

+1-8
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@
7474
import ca.uhn.fhir.model.api.IQueryParameterType;
7575
import ca.uhn.fhir.model.api.Include;
7676
import ca.uhn.fhir.model.api.ResourceMetadataKeyEnum;
77-
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
7877
import ca.uhn.fhir.model.valueset.BundleEntrySearchModeEnum;
7978
import ca.uhn.fhir.rest.api.Constants;
8079
import ca.uhn.fhir.rest.api.RestSearchParameterTypeEnum;
@@ -83,8 +82,6 @@
8382
import ca.uhn.fhir.rest.api.SortSpec;
8483
import ca.uhn.fhir.rest.api.server.IPreResourceAccessDetails;
8584
import ca.uhn.fhir.rest.api.server.RequestDetails;
86-
import ca.uhn.fhir.rest.param.BaseParamWithPrefix;
87-
import ca.uhn.fhir.rest.param.DateParam;
8885
import ca.uhn.fhir.rest.param.DateRangeParam;
8986
import ca.uhn.fhir.rest.param.ParameterUtil;
9087
import ca.uhn.fhir.rest.param.ReferenceParam;
@@ -99,8 +96,6 @@
9996
import ca.uhn.fhir.util.StringUtil;
10097
import ca.uhn.fhir.util.UrlUtil;
10198
import com.google.common.annotations.VisibleForTesting;
102-
import com.google.common.collect.Streams;
103-
import com.google.common.collect.Lists;
10499
import com.healthmarketscience.sqlbuilder.Condition;
105100
import jakarta.annotation.Nonnull;
106101
import jakarta.annotation.Nullable;
@@ -127,7 +122,6 @@
127122
import java.util.ArrayList;
128123
import java.util.Collection;
129124
import java.util.Collections;
130-
import java.util.Comparator;
131125
import java.util.HashMap;
132126
import java.util.HashSet;
133127
import java.util.Iterator;
@@ -140,8 +134,7 @@
140134
import static ca.uhn.fhir.jpa.model.util.JpaConstants.UNDESIRED_RESOURCE_LINKAGES_FOR_EVERYTHING_ON_PATIENT_INSTANCE;
141135
import static ca.uhn.fhir.jpa.search.builder.QueryStack.LOCATION_POSITION;
142136
import static ca.uhn.fhir.jpa.search.builder.QueryStack.SearchForIdsParams.with;
143-
import static ca.uhn.fhir.jpa.util.InClauseNormalizer.*;
144-
import static java.util.Objects.requireNonNull;
137+
import static ca.uhn.fhir.jpa.util.InClauseNormalizer.normalizeIdListForInClause;
145138
import static org.apache.commons.collections4.CollectionUtils.isNotEmpty;
146139
import static org.apache.commons.lang3.StringUtils.defaultString;
147140
import static org.apache.commons.lang3.StringUtils.isBlank;

hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/util/InClauseNormalizer.java

+19
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*-
2+
* #%L
3+
* HAPI FHIR JPA Server
4+
* %%
5+
* Copyright (C) 2014 - 2024 Smile CDR, Inc.
6+
* %%
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
* #L%
19+
*/
120
package ca.uhn.fhir.jpa.util;
221

322
import java.util.ArrayList;

0 commit comments

Comments
 (0)