Browse Source

Modifier 'public' is redundant for interface members

Brenton Bostick 2 years ago
parent
commit
ca73651e12

+ 1 - 1
java/src/com/zerotier/sdk/DataStoreGetListener.java

@@ -49,7 +49,7 @@ public interface DataStoreGetListener {
      * @param out_buffer buffer to put the object in
      * @return size of the object
      */
-    public long onDataStoreGet(
+    long onDataStoreGet(
             String name,
             byte[] out_buffer);
 }

+ 2 - 2
java/src/com/zerotier/sdk/DataStorePutListener.java

@@ -44,7 +44,7 @@ public interface DataStorePutListener {
      * @param secure set to user read/write only.
      * @return 0 on success.
      */
-    public int onDataStorePut(
+    int onDataStorePut(
         String name,
         byte[] buffer,
         boolean secure);
@@ -55,6 +55,6 @@ public interface DataStorePutListener {
      * @param name Object name
      * @return 0 on success.
      */
-    public int onDelete(
+    int onDelete(
         String name);
 }

+ 2 - 2
java/src/com/zerotier/sdk/EventListener.java

@@ -37,7 +37,7 @@ public interface EventListener {
      * 
      * @param event {@link Event} enum
      */
-    public void onEvent(Event event);
+    void onEvent(Event event);
     
     /**
      * Trace messages
@@ -46,5 +46,5 @@ public interface EventListener {
      *
      * @param message the trace message
      */
-    public void onTrace(String message);
+    void onTrace(String message);
 }

+ 1 - 1
java/src/com/zerotier/sdk/PacketSender.java

@@ -45,7 +45,7 @@ public interface PacketSender {
      * @param ttl TTL is ignored
      * @return 0 on success, any error code on failure.
      */
-    public int onSendPacketRequested(
+    int onSendPacketRequested(
             long localSocket,
             InetSocketAddress remoteAddr,
             byte[] packetData,

+ 1 - 1
java/src/com/zerotier/sdk/VirtualNetworkConfigListener.java

@@ -53,7 +53,7 @@ public interface VirtualNetworkConfigListener {
      * @param config {@link VirtualNetworkConfig} object with the new configuration
      * @return 0 on success
      */
-    public int onNetworkConfigurationUpdated(
+    int onNetworkConfigurationUpdated(
             long nwid,
             VirtualNetworkConfigOperation op,
             VirtualNetworkConfig config);

+ 1 - 1
java/src/com/zerotier/sdk/VirtualNetworkFrameListener.java

@@ -39,7 +39,7 @@ public interface VirtualNetworkFrameListener {
      * @param vlanId VLAN ID
      * @param frameData data to send
      */
-    public void onVirtualNetworkFrame(
+    void onVirtualNetworkFrame(
                 long nwid,
                 long srcMac,
                 long destMac,