forked from I2P_Developers/i2p.i2p
Router tests: Remove or supporess deprecation warnings
Remove cast warnings Fix RouterAddress.setExpiration() to match javadoc, used only by tests
This commit is contained in:
@@ -146,7 +146,10 @@ public class RouterAddress extends DataStructureImpl {
|
||||
*/
|
||||
@Deprecated
|
||||
public void setExpiration(Date expiration) {
|
||||
_expiration = expiration.getDate();
|
||||
if (expiration != null)
|
||||
_expiration = expiration.getDate();
|
||||
else
|
||||
_expiration = 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user