diff --git a/provider/indexer-azure/src/main/java/org/opengroup/osdu/indexer/azure/service/RetryPolicy.java b/provider/indexer-azure/src/main/java/org/opengroup/osdu/indexer/azure/service/RetryPolicy.java index 720a5d80198a797eabc0c7162c21b0b8380f6e13..d6515fce8f99431060a0428b290b0e8ea738a7d9 100644 --- a/provider/indexer-azure/src/main/java/org/opengroup/osdu/indexer/azure/service/RetryPolicy.java +++ b/provider/indexer-azure/src/main/java/org/opengroup/osdu/indexer/azure/service/RetryPolicy.java @@ -41,7 +41,7 @@ public class RetryPolicy { private int attempts = 3; private int waitDuration = 1000; - private String recordNotFound = "notFound"; + private final String RECORD_NOT_FOUND = "notFound"; /** * @return RetryConfig with 3 attempts and 1 sec wait time @@ -64,7 +64,7 @@ public class RetryPolicy { return false; } JsonObject jsonObject = new JsonParser().parse(response.getBody()).getAsJsonObject(); - JsonElement notFoundElement = (JsonArray) jsonObject.get(recordNotFound); + JsonElement notFoundElement = (JsonArray) jsonObject.get(RECORD_NOT_FOUND); if (notFoundElement == null || !notFoundElement.isJsonArray() || notFoundElement.getAsJsonArray().size() == 0 ||