diff --git a/java/jni/ZT_jnilookup.cpp b/java/jni/ZT_jnilookup.cpp index 51d9c0739..4d867a35c 100644 --- a/java/jni/ZT_jnilookup.cpp +++ b/java/jni/ZT_jnilookup.cpp @@ -62,7 +62,7 @@ jclass JniLookup::findClass(const std::string &name) JNIEnv *env = NULL; if(m_jvm->GetEnv((void**)&env, JNI_VERSION_1_6) != JNI_OK) { - LOGE("Error retreiving JNI Environment"); + LOGE("Error retrieving JNI Environment"); return NULL; } const char *c = name.c_str(); diff --git a/java/jni/ZT_jniutils.cpp b/java/jni/ZT_jniutils.cpp index bcbd31916..bfb969abb 100644 --- a/java/jni/ZT_jniutils.cpp +++ b/java/jni/ZT_jniutils.cpp @@ -296,7 +296,7 @@ jobject newInetAddress(JNIEnv *env, const sockaddr_storage &addr) inetAddressClass, "getByAddress", "([B)Ljava/net/InetAddress;"); if(env->ExceptionCheck() || inetAddress_getByAddress == NULL) { - LOGE("Erorr finding getByAddress() static method"); + LOGE("Error finding getByAddress() static method"); return NULL; } diff --git a/java/jni/com_zerotierone_sdk_Node.cpp b/java/jni/com_zerotierone_sdk_Node.cpp index 6ddc35565..50dfd22e6 100644 --- a/java/jni/com_zerotierone_sdk_Node.cpp +++ b/java/jni/com_zerotierone_sdk_Node.cpp @@ -107,7 +107,7 @@ namespace { enum ZT_VirtualNetworkConfigOperation operation, const ZT_VirtualNetworkConfig *config) { - LOGV("VritualNetworkConfigFunctionCallback"); + LOGV("VirtualNetworkConfigFunctionCallback"); JniRef *ref = (JniRef*)userData; JNIEnv *env = NULL; ref->jvm->GetEnv((void**)&env, JNI_VERSION_1_6); @@ -1025,7 +1025,7 @@ JNIEXPORT jobject JNICALL Java_com_zerotier_sdk_Node_processWirePacket( inetAddressClass, "getAddress", "()[B"); if(getAddressMethod == NULL) { - // cant find InetAddress.getAddres() + // cant find InetAddress.getAddress() return createResultObject(env, ZT_RESULT_FATAL_ERROR_INTERNAL); } diff --git a/java/src/com/zerotier/sdk/NativeUtils.java b/java/src/com/zerotier/sdk/NativeUtils.java index 07e1ef5bc..4932a6c71 100644 --- a/java/src/com/zerotier/sdk/NativeUtils.java +++ b/java/src/com/zerotier/sdk/NativeUtils.java @@ -43,7 +43,7 @@ public class NativeUtils { String[] parts = path.split("/"); String filename = (parts.length > 1) ? parts[parts.length - 1] : null; - // Split filename to prexif and suffix (extension) + // Split filename to prefix and suffix (extension) String prefix = ""; String suffix = null; if (filename != null) { diff --git a/java/src/com/zerotier/sdk/Node.java b/java/src/com/zerotier/sdk/Node.java index ef6ac9d2d..1b3a4901f 100644 --- a/java/src/com/zerotier/sdk/Node.java +++ b/java/src/com/zerotier/sdk/Node.java @@ -84,7 +84,7 @@ public class Node { * * @param now Current clock in milliseconds * @param getListener User written instance of the {@link DataStoreGetListener} interface called to get objects from persistent storage. This instance must be unique per Node object. - * @param putListener User written intstance of the {@link DataStorePutListener} interface called to put objects in persistent storage. This instance must be unique per Node object. + * @param putListener User written instance of the {@link DataStorePutListener} interface called to put objects in persistent storage. This instance must be unique per Node object. * @param sender * @param eventListener User written instance of the {@link EventListener} interface to receive status updates and non-fatal error notices. This instance must be unique per Node object. * @param frameListener @@ -197,7 +197,7 @@ public class Node { * Join a network * *
This may generate calls to the port config callback before it returns, - * or these may be deffered if a netconf is not available yet.
+ * or these may be deferred if a netconf is not available yet. * *If we are already a member of the network, nothing is done and OK is * returned.
diff --git a/node/Bond.cpp b/node/Bond.cpp index 23c309acf..14bf95ad8 100644 --- a/node/Bond.cpp +++ b/node/Bond.cpp @@ -428,7 +428,7 @@ void Bond::recordOutgoingPacket(const SharedPtr