From e72d888e14de1dda2401d1ef7c10fdae2a14e3ff Mon Sep 17 00:00:00 2001
From: t-muskans <t-muskans@microsoft.com>
Date: Mon, 31 May 2021 14:58:22 +0530
Subject: [PATCH] small change

---
 .../org/opengroup/osdu/indexer/azure/service/RetryPolicy.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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 720a5d801..d6515fce8 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 ||
-- 
GitLab