Skip to content

Commit

Permalink
Merge pull request #2321 from telefonicaid/task/revert_has_attribute_…
Browse files Browse the repository at this point in the history
…lowercase_argcis

Update ArcgisFeatureTable.java
  • Loading branch information
danielvillalbamota authored Nov 15, 2023
2 parents 39c7422 + f875a8b commit 9748741
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, Field> map = arcGISFeatureTable.getTableAttributes();
for (Map.Entry<String, Field> entry : map.entrySet()) {
if (entry.getKey().toLowerCase().equals(attName.toLowerCase())) {
return true;
}
}
return false;
return arcGISFeatureTable.getTableAttributes().containsKey(attName);
}

/**
Expand Down

0 comments on commit 9748741

Please sign in to comment.