Commit 8c74ac67 authored by George Adrian Stoica's avatar George Adrian Stoica

more fixes related to Metadata MR !6

parent 70bbf695
......@@ -292,12 +292,7 @@ public class MetaData {
* @return true if custom false if standard prop
*/
public boolean isCustomProperty(String propertyName) {
for (String knownPropertyName : STD_PROPERTIES) {
if (propertyName == knownPropertyName) {
return false;
}
}
return true;
return !(STD_PROPERTIES.contains(propertyName));
}
/**
......@@ -322,7 +317,7 @@ public class MetaData {
outer: for (int i = 0; i < this.properties.size(); i = i + 2) {
String propertyName = this.properties.get(i);
for (String knownPropertyName : propertyNames) {
if (propertyName == knownPropertyName) {
if (propertyName.equals(knownPropertyName)) {
continue outer;
}
return true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment