File 0107-Fix-typos-in-lib-jinterface.patch of Package erlang

From 0f8e67f02d6e69b6804f9bc4783895ec5f15cfde Mon Sep 17 00:00:00 2001
From: "Kian-Meng, Ang" <kianmeng@cpan.org>
Date: Sat, 18 Dec 2021 13:19:59 +0800
Subject: [PATCH] Fix typos in lib/jinterface

---
 lib/jinterface/doc/src/notes.xml                            | 4 ++--
 .../com/ericsson/otp/erlang/AbstractConnection.java         | 2 +-
 .../java_src/com/ericsson/otp/erlang/OtpConnection.java     | 6 +++---
 .../com/ericsson/otp/erlang/OtpCookedConnection.java        | 2 +-
 .../java_src/com/ericsson/otp/erlang/OtpErlangAtom.java     | 2 +-
 .../java_src/com/ericsson/otp/erlang/OtpErlangLong.java     | 2 +-
 .../java_src/com/ericsson/otp/erlang/OtpErlangPort.java     | 2 +-
 .../java_src/com/ericsson/otp/erlang/OtpErlangRef.java      | 2 +-
 .../java_src/com/ericsson/otp/erlang/OtpInputStream.java    | 4 ++--
 .../java_src/com/ericsson/otp/erlang/OtpMbox.java           | 2 +-
 lib/jinterface/java_src/com/ericsson/otp/erlang/OtpMsg.java | 2 +-
 .../java_src/com/ericsson/otp/erlang/OtpNode.java           | 2 +-
 .../java_src/com/ericsson/otp/erlang/OtpSelf.java           | 2 +-
 .../java_src/com/ericsson/otp/erlang/OtpServer.java         | 2 +-
 .../java_src/com/ericsson/otp/erlang/package.html           | 2 +-
 .../test/jinterface_SUITE_data/MboxLinkUnlink.java          | 4 ++--
 16 files changed, 21 insertions(+), 21 deletions(-)

diff --git a/lib/jinterface/doc/src/notes.xml b/lib/jinterface/doc/src/notes.xml
index c7b013b6fe..d4f0c9e42c 100644
--- a/lib/jinterface/doc/src/notes.xml
+++ b/lib/jinterface/doc/src/notes.xml
@@ -270,7 +270,7 @@
       <list>
         <item>
           <p>
-	    Update build scripts to not make assumtions about where
+	    Update build scripts to not make assumptions about where
 	    env, cp and perl are located.</p>
           <p>
 	    Own Id: OTP-13800</p>
@@ -596,7 +596,7 @@
 	    Java 1.5 has a bug where detecting codepoint offsets in
 	    strings that are created by String.substring() gives
 	    wrong results. The new implementation uses a different
-	    method, avoinding the issue. (Thanks to Vlad Dumitrescu)</p>
+	    method, avoiding the issue. (Thanks to Vlad Dumitrescu)</p>
           <p>
 	    Own Id: OTP-9927</p>
         </item>
diff --git a/lib/jinterface/java_src/com/ericsson/otp/erlang/AbstractConnection.java b/lib/jinterface/java_src/com/ericsson/otp/erlang/AbstractConnection.java
index 75b538f085..5fd38ce145 100644
--- a/lib/jinterface/java_src/com/ericsson/otp/erlang/AbstractConnection.java
+++ b/lib/jinterface/java_src/com/ericsson/otp/erlang/AbstractConnection.java
@@ -79,7 +79,7 @@ public abstract class AbstractConnection extends Thread {
     protected static final int unlinkIdTag = 35;
     protected static final int unlinkIdAckTag = 36;
 
-    // MD5 challenge messsage tags
+    // MD5 challenge message tags
     protected static final int ChallengeReply = 'r';
     protected static final int ChallengeAck = 'a';
     protected static final int ChallengeStatus = 's';
diff --git a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpConnection.java b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpConnection.java
index 125004c9f6..5ca80038cd 100644
--- a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpConnection.java
+++ b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpConnection.java
@@ -38,7 +38,7 @@ import java.io.IOException;
  *
  * <p>
  * If an exception occurs in any of the methods in this class, the connection
- * will be closed and must be explicitely reopened in order to resume
+ * will be closed and must be explicitly reopened in order to resume
  * communication with the peer.
  *
  * <p>
@@ -317,7 +317,7 @@ public class OtpConnection extends AbstractConnection {
     }
 
     /**
-     * Receive a messge complete with sender and recipient information.
+     * Receive a message complete with sender and recipient information.
      *
      * @return an {@link OtpMsg OtpMsg} containing the header information about
      *         the sender and recipient, as well as the actual message contents.
@@ -352,7 +352,7 @@ public class OtpConnection extends AbstractConnection {
     }
 
     /**
-     * Receive a messge complete with sender and recipient information. This
+     * Receive a message complete with sender and recipient information. This
      * method blocks at most for the specified time.
      *
      * @param timeout
diff --git a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpCookedConnection.java b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpCookedConnection.java
index f70aa4e6e8..948c036e9f 100644
--- a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpCookedConnection.java
+++ b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpCookedConnection.java
@@ -182,7 +182,7 @@ public class OtpCookedConnection extends AbstractConnection {
     }
 
     /*
-     * this one called explicitely by user code => use exit2
+     * this one called explicitly by user code => use exit2
      */
     void exit2(final OtpErlangPid from, final OtpErlangPid to,
             final OtpErlangObject reason) {
diff --git a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangAtom.java b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangAtom.java
index d73bad5e4f..c01b9849de 100644
--- a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangAtom.java
+++ b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangAtom.java
@@ -28,7 +28,7 @@ public class OtpErlangAtom extends OtpErlangObject {
     // don't change this!
     private static final long serialVersionUID = -3204386396807876641L;
 
-    /** The maximun allowed length of an atom, in characters */
+    /** The maximum allowed length of an atom, in characters */
     public static final int maxAtomLength = 0xff; // one byte length
 
     private final String atom;
diff --git a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangLong.java b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangLong.java
index a2b4e30e18..deed565506 100644
--- a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangLong.java
+++ b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangLong.java
@@ -117,7 +117,7 @@ public class OtpErlangLong extends OtpErlangObject {
      * @return true if this value fits in a long, false otherwise.
      */
     public boolean isLong() {
-        // To just chech this.bigVal is a wee bit to simple, since
+        // To just check this.bigVal is a wee bit to simple, since
         // there just might have be a mean bignum that arrived on
         // a stream, and was a long disguised as more than 8 byte integer.
         if (bigVal != null) {
diff --git a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangPort.java b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangPort.java
index 42b306d023..a58101a492 100644
--- a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangPort.java
+++ b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangPort.java
@@ -32,7 +32,7 @@ public class OtpErlangPort extends OtpErlangObject {
 
     /*
      * Create a unique Erlang port belonging to the local node. Since it isn't
-     * meaninful to do so, this constructor is private...
+     * meaningful to do so, this constructor is private...
      *
      * @param self the local node.
      *
diff --git a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangRef.java b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangRef.java
index 973648ca80..7ce539dd94 100644
--- a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangRef.java
+++ b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpErlangRef.java
@@ -245,7 +245,7 @@ public class OtpErlangRef extends OtpErlangObject {
     /**
      * Determine if two refs are equal. Refs are equal if their components are
      * equal. New refs and old refs are considered equal if the node, creation
-     * and first id numnber are equal.
+     * and first id number are equal.
      *
      * @param o
      *            the other ref to compare to.
diff --git a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpInputStream.java b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpInputStream.java
index 7578f06ee5..cf4c5be388 100644
--- a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpInputStream.java
+++ b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpInputStream.java
@@ -750,7 +750,7 @@ public class OtpInputStream extends ByteArrayInputStream {
             nb = new byte[4];
             if (this.readN(nb) != 4) { // Big endian
                 throw new OtpErlangDecodeException(
-                        "Cannot read from intput stream");
+                        "Cannot read from input stream");
             }
             break;
 
@@ -775,7 +775,7 @@ public class OtpInputStream extends ByteArrayInputStream {
             // with one zero byte to make the value 2's complement positive.
             if (this.readN(nb, 0, arity) != arity) {
                 throw new OtpErlangDecodeException(
-                        "Cannot read from intput stream");
+                        "Cannot read from input stream");
             }
             // Reverse the array to make it big endian.
             for (int i = 0, j = nb.length; i < j--; i++) {
diff --git a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpMbox.java b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpMbox.java
index 18aad6a4a8..ff8b63e64a 100644
--- a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpMbox.java
+++ b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpMbox.java
@@ -128,7 +128,7 @@ public class OtpMbox {
      * mailbox enables others to send messages without knowing the
      * {@link OtpErlangPid pid} of the mailbox. A mailbox can have at most one
      * name; if the mailbox already had a name, calling this method will
-     * supercede that name.
+     * supersede that name.
      * </p>
      *
      * @param aname
diff --git a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpMsg.java b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpMsg.java
index e14b99d274..c44c0c5bdb 100644
--- a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpMsg.java
+++ b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpMsg.java
@@ -242,7 +242,7 @@ public class OtpMsg {
      * <p>
      * The first time this method is called the actual payload is deserialized
      * and the Erlang term is created. Calling this method subsequent times will
-     * not cuase the message to be deserialized additional times, instead the
+     * not cause the message to be deserialized additional times, instead the
      * same Erlang term object will be returned.
      * </p>
      *
diff --git a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpNode.java b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpNode.java
index e48e6e8633..3849c7e784 100644
--- a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpNode.java
+++ b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpNode.java
@@ -348,7 +348,7 @@ public class OtpNode extends OtpLocalNode {
      * mailbox enables others to send messages without knowing the
      * {@link OtpErlangPid pid} of the mailbox. A mailbox can have at most one
      * name; if the mailbox already had a name, calling this method will
-     * supercede that name.
+     * supersede that name.
      * </p>
      *
      * @param name
diff --git a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpSelf.java b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpSelf.java
index 97f7f037e7..7a04f0d79c 100644
--- a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpSelf.java
+++ b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpSelf.java
@@ -34,7 +34,7 @@ import java.net.UnknownHostException;
  * <p>
  * When you create an instance of this class, it will bind a socket to a port so
  * that incoming connections can be accepted. However the port number will not
- * be made available to other nodes wishing to connect until you explicitely
+ * be made available to other nodes wishing to connect until you explicitly
  * register with the port mapper daemon by calling {@link #publishPort()}.
  * </p>
  *
diff --git a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpServer.java b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpServer.java
index d6a143ca6a..bed999e63d 100644
--- a/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpServer.java
+++ b/lib/jinterface/java_src/com/ericsson/otp/erlang/OtpServer.java
@@ -27,7 +27,7 @@ import java.io.IOException;
  *
  * When you create an instance of this class, it will bind a socket to a port so
  * that incoming connections can be accepted. However the port number will not
- * be made available to other nodes wishing to connect until you explicitely
+ * be made available to other nodes wishing to connect until you explicitly
  * register with the port mapper daemon by calling {@link #publishPort()}.
  *
  * <p>
diff --git a/lib/jinterface/java_src/com/ericsson/otp/erlang/package.html b/lib/jinterface/java_src/com/ericsson/otp/erlang/package.html
index f7b4884851..5eedcb5b2f 100644
--- a/lib/jinterface/java_src/com/ericsson/otp/erlang/package.html
+++ b/lib/jinterface/java_src/com/ericsson/otp/erlang/package.html
@@ -105,7 +105,7 @@ com.ericsson.otp.erlang.OtpConnection}. </p>
 <p> The classes {@link com.ericsson.otp.erlang.OtpPeer}, {@link
 com.ericsson.otp.erlang.OtpSelf} and {@link
 com.ericsson.otp.erlang.OtpServer} are used to represent OTP nodes and
-are neccessary in order to set up communication between the Java
+are necessary in order to set up communication between the Java
 thread and a remote node. Once a connection has been established, it
 is represented by an {@link com.ericsson.otp.erlang.OtpConnection},
 through which all communication goes.
diff --git a/lib/jinterface/test/jinterface_SUITE_data/MboxLinkUnlink.java b/lib/jinterface/test/jinterface_SUITE_data/MboxLinkUnlink.java
index 560786c304..4af73e8fb4 100644
--- a/lib/jinterface/test/jinterface_SUITE_data/MboxLinkUnlink.java
+++ b/lib/jinterface/test/jinterface_SUITE_data/MboxLinkUnlink.java
@@ -188,7 +188,7 @@ class MboxLinkUnlink {
 		    waiting = true;
 		    expected = tuple.elementAt(2);
 		    mbox2.receive(1000); // hanging waiting for exit
-		    System.exit(4);  // got someting other than exit
+		    System.exit(4);  // got something other than exit
             break;
 		case internal_link_linked_exits:
 		    dbg("Java got \"internal_link_linked_exits\"");
@@ -198,7 +198,7 @@ class MboxLinkUnlink {
 		    waiting = true;
 		    expected = tuple.elementAt(2);
 		    mbox.receive(1000); // hanging waiting for exit
-		    System.exit(5);  // got someting other than exit
+		    System.exit(5);  // got something other than exit
             break;
 		case internal_unlink_linking_exits:
 		    dbg("Java got \"internal_unlink_linking_exits\"");
-- 
2.31.1

openSUSE Build Service is sponsored by