Skip to content

Commit

Permalink
enum.toString to equals compare
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega committed Oct 10, 2023
1 parent bd11469 commit 829e39b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,9 @@ protected String getUniqueFieldList(List<Feature> featureArray, String uniqueFie
// Checks if field exists in table, an retrieves it's type
if (hasAttribute(uniqueField)) {
String uniqueFieldType = getAttributeType(uniqueField);
quoted = GisAttributeType.DATE.equals(uniqueFieldType)
|| GisAttributeType.STRING.equals(uniqueFieldType);

quoted = GisAttributeType.DATE.toString().equalsIgnoreCase(uniqueFieldType)
|| GisAttributeType.STRING.toString().equalsIgnoreCase(uniqueFieldType);
LOGGER.debug("uniqueField: " + uniqueField + " uniqueFieldType " + uniqueFieldType + " in table");
// Make the list
for (Feature feature : featureArray) {
if (feature.getAttributes().containsKey(uniqueField)) {
Expand Down

0 comments on commit 829e39b

Please sign in to comment.