diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/search/builder/SearchBuilder.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/search/builder/SearchBuilder.java index 319a2e3c543..35b9db87356 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/search/builder/SearchBuilder.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/search/builder/SearchBuilder.java @@ -2513,9 +2513,14 @@ private void fetchNext() { // if we're not using the database to deduplicate // we should recheck our memory usage // the prefetch size check is future proofing - int prefetchSize = myStorageSettings.getSearchPreFetchThresholds().size(); + int prefetchSize = myStorageSettings + .getSearchPreFetchThresholds() + .size(); if (prefetchSize > 0) { - if (myStorageSettings.getSearchPreFetchThresholds().get(prefetchSize - 1) < mySearchProperties.getMaxResultsRequested()) { + if (myStorageSettings + .getSearchPreFetchThresholds() + .get(prefetchSize - 1) + < mySearchProperties.getMaxResultsRequested()) { mySearchProperties.setDeduplicateInDBFlag(true); } }