diff options
author | Grant Limberg <glimberg@gmail.com> | 2015-05-28 16:47:43 -0700 |
---|---|---|
committer | Grant Limberg <glimberg@gmail.com> | 2015-05-28 20:01:30 -0700 |
commit | 7822616966346671c5e11568083c1c6924e1895b (patch) | |
tree | 1f94f966a0a9bef252b6c5d76549f6e5893976cf /java/src/com/zerotier | |
parent | e3feac17b194c959c175858046588c16fb105b03 (diff) | |
download | infinitytier-7822616966346671c5e11568083c1c6924e1895b.tar.gz infinitytier-7822616966346671c5e11568083c1c6924e1895b.zip |
Replace ArrayList instances with []
Diffstat (limited to 'java/src/com/zerotier')
-rw-r--r-- | java/src/com/zerotier/sdk/Node.java | 8 | ||||
-rw-r--r-- | java/src/com/zerotier/sdk/Peer.java | 4 | ||||
-rw-r--r-- | java/src/com/zerotier/sdk/VirtualNetworkConfig.java | 8 |
3 files changed, 10 insertions, 10 deletions
diff --git a/java/src/com/zerotier/sdk/Node.java b/java/src/com/zerotier/sdk/Node.java index 34af0d01..e5b12697 100644 --- a/java/src/com/zerotier/sdk/Node.java +++ b/java/src/com/zerotier/sdk/Node.java @@ -340,7 +340,7 @@ public class Node { * * @return List of known peers or NULL on failure */ - public ArrayList<Peer> peers() { + public Peer[] peers() { return peers(nodeId); } @@ -359,7 +359,7 @@ public class Node { * * @return List of networks or NULL on failure */ - public ArrayList<VirtualNetworkConfig> networks() { + public VirtualNetworkConfig[] networks() { return networks(nodeId); } @@ -426,7 +426,7 @@ public class Node { private native Version version(); - private native ArrayList<Peer> peers(long nodeId); + private native Peer[] peers(long nodeId); - private native ArrayList<VirtualNetworkConfig> networks(long nodeId); + private native VirtualNetworkConfig[] networks(long nodeId); }
\ No newline at end of file diff --git a/java/src/com/zerotier/sdk/Peer.java b/java/src/com/zerotier/sdk/Peer.java index 407e6cd4..fb2d1065 100644 --- a/java/src/com/zerotier/sdk/Peer.java +++ b/java/src/com/zerotier/sdk/Peer.java @@ -41,7 +41,7 @@ public final class Peer { private int versionRev; private int latency; private PeerRole role; - private ArrayList<PeerPhysicalPath> paths; + private PeerPhysicalPath[] paths; private Peer() {} @@ -104,7 +104,7 @@ public final class Peer { /** * Known network paths to peer */ - public final ArrayList<PeerPhysicalPath> paths() { + public final PeerPhysicalPath[] paths() { return paths; } }
\ No newline at end of file diff --git a/java/src/com/zerotier/sdk/VirtualNetworkConfig.java b/java/src/com/zerotier/sdk/VirtualNetworkConfig.java index 032ba267..2be03acb 100644 --- a/java/src/com/zerotier/sdk/VirtualNetworkConfig.java +++ b/java/src/com/zerotier/sdk/VirtualNetworkConfig.java @@ -47,8 +47,8 @@ public final class VirtualNetworkConfig { private int portError; private boolean enabled; private long netconfRevision; - private ArrayList<MulticastGroup> multicastSubscriptions; - private ArrayList<InetSocketAddress> assignedAddresses; + private MulticastGroup[] multicastSubscriptions; + private InetSocketAddress[] assignedAddresses; private VirtualNetworkConfig() { @@ -150,7 +150,7 @@ public final class VirtualNetworkConfig { /** * Multicast group subscriptions */ - public final ArrayList<MulticastGroup> multicastSubscriptions() { + public final MulticastGroup[] multicastSubscriptions() { return multicastSubscriptions; } @@ -164,7 +164,7 @@ public final class VirtualNetworkConfig { * This is only used for ZeroTier-managed address assignments sent by the * virtual network's configuration master. */ - public final ArrayList<InetSocketAddress> assignedAddresses() { + public final InetSocketAddress[] assignedAddresses() { return assignedAddresses; } } |