Skip to content

Commit

Permalink
hceck containsKey but both in lowerCase
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega committed Nov 2, 2023
1 parent 8bcbbed commit db8f423
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,15 @@ public int getErrorCode() {
* @return
*/
public boolean hasAttribute(String attName) {
return arcGISFeatureTable.getTableAttributes().containsKey(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;
}

/**
Expand Down

0 comments on commit db8f423

Please sign in to comment.