From 265e0337e7111af2d2508c82b17bccb8474682b9 Mon Sep 17 00:00:00 2001 From: Alvaro Vega Date: Tue, 14 Nov 2023 12:02:45 +0100 Subject: [PATCH] Update ArcgisFeatureTable.java --- .../backends/arcgis/restutils/ArcgisFeatureTable.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/cygnus-common/src/main/java/com/telefonica/iot/cygnus/backends/arcgis/restutils/ArcgisFeatureTable.java b/cygnus-common/src/main/java/com/telefonica/iot/cygnus/backends/arcgis/restutils/ArcgisFeatureTable.java index a2926b717..1b67f6a8e 100644 --- a/cygnus-common/src/main/java/com/telefonica/iot/cygnus/backends/arcgis/restutils/ArcgisFeatureTable.java +++ b/cygnus-common/src/main/java/com/telefonica/iot/cygnus/backends/arcgis/restutils/ArcgisFeatureTable.java @@ -622,15 +622,7 @@ public int getErrorCode() { * @return */ public boolean hasAttribute(String attName) { - // return arcGISFeatureTable.getTableAttributes().containsKey(attName); - // Check containsKey but both in lowerCase - Map map = arcGISFeatureTable.getTableAttributes(); - for (Map.Entry entry : map.entrySet()) { - if (entry.getKey().toLowerCase().equals(attName.toLowerCase())) { - return true; - } - } - return false; + return arcGISFeatureTable.getTableAttributes().containsKey(attName); } /**