Refactor vpp-japi
vlib does not allow concurrent connections, hence make sure the Java API does not allow the user to instantiate them. Also hide native methods from direct user invocation behind defensive methods also detect if a particular connection has been terminated. Disconnect is hidden befind standard close() method, as specified by AutoCloseable. Change-Id: Ib5079200ae4216cad84358a2174a41e90271a30b Signed-off-by: Robert Varga <nite@hq.sk>
This commit is contained in:

committed by
Dave Wallace

parent
d5201c8007
commit
67ba3bed00
@ -20,8 +20,8 @@ public class vppIPv6Address {
|
||||
public final byte[] ip;
|
||||
public final byte prefixLength;
|
||||
|
||||
public vppIPv6Address(byte[] _ip, byte _prefixLength) {
|
||||
ip = _ip;
|
||||
prefixLength = _prefixLength;
|
||||
public vppIPv6Address(byte[] ip, byte prefixLength) {
|
||||
this.ip = ip;
|
||||
this.prefixLength = prefixLength;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user