mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-20 17:00:49 +00:00
Replace ArrayList instances with []
This commit is contained in:
parent
e3feac17b1
commit
7822616966
@ -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);
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user