Use #ofType in commandline parsing for type safety

- Remove Node#getPortAsString; it is now no longer necessary
This commit is contained in:
Chris Beams 2014-11-13 10:25:50 +01:00
parent 0e167bed6c
commit 8d70e23ba5
No known key found for this signature in database
GPG key ID: 3D214F8F5BC5ED73
5 changed files with 6 additions and 10 deletions

View file

@ -46,7 +46,6 @@ public class NodeTests {
assertThat(node1a.hashCode(), not(equalTo(node2.hashCode())));
assertThat(node1a.getPort(), equalTo(Node.DEFAULT_PORT));
assertThat(node1a.getPortAsString(), equalTo(String.valueOf(Node.DEFAULT_PORT)));
Node node3a = Node.at("bitsquare3.example.com", "203.0.113.3", 1234);
Node node3b = Node.at("bitsquare3.example.com", "203.0.113.3", "1234");