Data: Add LeaseSet2.getOptions()

Currently unused but useful for testing.
Remove useless null check.
This commit is contained in:
zzz
2024-06-25 12:28:30 -04:00
parent e4aab76045
commit f8394ac82a

View File

@ -134,6 +134,14 @@ public class LeaseSet2 extends LeaseSet {
return _options.getProperty(opt);
}
/**
* @return not a copy, do not modify, or null
* @since 0.9.63
*/
public Properties getOptions() {
return _options;
}
/**
* If more than one key, return the first supported one.
* If none supported, return the first one.
@ -237,8 +245,7 @@ public class LeaseSet2 extends LeaseSet {
_options.clear();
else
_options = new OrderedProperties();
if (options != null)
_options.putAll(options);
_options.putAll(options);
}
public boolean isOffline() {