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:
zzz
2017-12-02 13:56:13 +00:00
parent 2becaaa593
commit e6f17ec1ab
15 changed files with 38 additions and 53 deletions

View File

@@ -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;
}
/**