Skip to content
Snippets Groups Projects
Commit 8c74ac67 authored by George Adrian Stoica's avatar George Adrian Stoica
Browse files

more fixes related to Metadata MR !6

parent 70bbf695
No related branches found
No related tags found
1 merge request!6Issue 11 allow user to enter and update metadata about the latlong points
...@@ -292,12 +292,7 @@ public class MetaData { ...@@ -292,12 +292,7 @@ public class MetaData {
* @return true if custom false if standard prop * @return true if custom false if standard prop
*/ */
public boolean isCustomProperty(String propertyName) { public boolean isCustomProperty(String propertyName) {
for (String knownPropertyName : STD_PROPERTIES) { return !(STD_PROPERTIES.contains(propertyName));
if (propertyName == knownPropertyName) {
return false;
}
}
return true;
} }
/** /**
...@@ -322,7 +317,7 @@ public class MetaData { ...@@ -322,7 +317,7 @@ public class MetaData {
outer: for (int i = 0; i < this.properties.size(); i = i + 2) { outer: for (int i = 0; i < this.properties.size(); i = i + 2) {
String propertyName = this.properties.get(i); String propertyName = this.properties.get(i);
for (String knownPropertyName : propertyNames) { for (String knownPropertyName : propertyNames) {
if (propertyName == knownPropertyName) { if (propertyName.equals(knownPropertyName)) {
continue outer; continue outer;
} }
return true; return true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment