Commit cd009ff9 authored by George Adrian Stoica's avatar George Adrian Stoica

more fixes related to MR !6

changed isCustomProperty to static
minor changes for formatting
parent fec23ae2
Pipeline #53466 passed with stage
in 2 minutes and 9 seconds
......@@ -21,7 +21,7 @@ public class MetaData {
/**
* the list containing standard properties associated to location metadata
*/
final public static List<String> STD_PROPERTIES = Collections.unmodifiableList(Arrays.asList(NAME_PROPERTY, DESCRIPTION_PROPERTY));
public final static List<String> STD_PROPERTIES = Collections.unmodifiableList(Arrays.asList(NAME_PROPERTY, DESCRIPTION_PROPERTY));
private Collection<String> tags;
......@@ -291,7 +291,7 @@ public class MetaData {
* @param propertyName the property name to check
* @return true if custom false if standard prop
*/
public boolean isCustomProperty(String propertyName) {
public static boolean isCustomProperty(String propertyName) {
return !(STD_PROPERTIES.contains(propertyName));
}
......
......@@ -179,7 +179,7 @@ public class MetaDataEditorController {
public void onAddUpdateProperty(ActionEvent event) {
final String newKey = newKeyInput.getText();
final String newValue = newValueInput.getText();
if(!newKey.isBlank() && (!MetaData.STD_PROPERTIES.contains(newKey))) {
if(!newKey.isBlank() && (MetaData.isCustomProperty(newKey))) {
latlong.getMetaData().setProperty(newKey, newValue);
updatePropertiesTable();
}
......
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