mirror of
https://github.com/i2p/i2p.i2p.git
synced 2024-12-06 19:27:00 +01:00
Data: Add LeaseSet2.getOptions()
Currently unused but useful for testing. Remove useless null check.
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user