diff --git a/build.sh b/build.sh index 774411b9..bbe2049c 100755 --- a/build.sh +++ b/build.sh @@ -522,7 +522,7 @@ host-jar() cp -f $CACHE_DIR/lib/libzt.* $JAVA_JAR_DIR cd $JAVA_JAR_DIR export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8 - javac -Xlint:deprecation com/zerotier/sockets/*.java + javac -Xlint:all com/zerotier/sockets/*.java jar cf libzt-$PKG_VERSION.jar $SHARED_LIB_NAME com/zerotier/sockets/*.class rm -rf com $SHARED_LIB_NAME diff --git a/src/bindings/java/com/zerotier/sockets/ZeroTierNative.java b/src/bindings/java/com/zerotier/sockets/ZeroTierNative.java index 92053156..aa797117 100644 --- a/src/bindings/java/com/zerotier/sockets/ZeroTierNative.java +++ b/src/bindings/java/com/zerotier/sockets/ZeroTierNative.java @@ -228,7 +228,7 @@ public class ZeroTierNative { public static int ZTS_SO_DONTROUTE = 0x00000010; // NOT YET SUPPORTED public static int ZTS_SO_USELOOPBACK = 0x00000040; // NOT YET SUPPORTED public static int ZTS_SO_LINGER = 0x00000080; - public static int ZTS_SO_DONTLINGER = ((int)(~ZTS_SO_LINGER)); + public static int ZTS_SO_DONTLINGER = (~ZTS_SO_LINGER); public static int ZTS_SO_OOBINLINE = 0x00000100; // NOT YET SUPPORTED public static int ZTS_SO_REUSEPORT = 0x00000200; // NOT YET SUPPORTED public static int ZTS_SO_SNDBUF = 0x00001001; // NOT YET SUPPORTED