You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/08/26 12:49:32 UTC

[commons-bcel] branch master updated: Fix typos (#140)

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-bcel.git


The following commit(s) were added to refs/heads/master by this push:
     new 2595c568 Fix typos (#140)
2595c568 is described below

commit 2595c568c484c6614a8ce1ced1844614423ea6ca
Author: Michael Ernst <me...@cs.washington.edu>
AuthorDate: Fri Aug 26 02:49:27 2022 -1000

    Fix typos (#140)
---
 RELEASE-NOTES.txt                                                     | 2 +-
 docs/verifier/JustIce.lyx                                             | 2 +-
 src/examples/Mini/JJTMiniParserState.java                             | 2 +-
 src/main/java/org/apache/bcel/classfile/StackMapEntry.java            | 4 ++--
 src/main/java/org/apache/bcel/generic/CodeExceptionGen.java           | 2 +-
 src/main/java/org/apache/bcel/generic/LineNumberGen.java              | 2 +-
 src/main/java/org/apache/bcel/generic/LocalVariableGen.java           | 4 ++--
 .../java/org/apache/bcel/verifier/structurals/ExecutionVisitor.java   | 2 +-
 src/main/java/org/apache/bcel/verifier/structurals/OperandStack.java  | 2 +-
 .../java/org/apache/bcel/verifier/structurals/Pass3bVerifier.java     | 2 +-
 10 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt
index a90425fa..463faa23 100644
--- a/RELEASE-NOTES.txt
+++ b/RELEASE-NOTES.txt
@@ -46,7 +46,7 @@ o           Fix ConcurrentModificationException in the maven-bundle-plugin:4.2.1
 Historical list of changes: https://commons.apache.org/proper/commons-bcel/changes-report.html
 
 For complete information on Apache Commons BCEL, including instructions on how to submit bug reports,
-patches, or suggestions for improvement, see the Apache Apache Commons BCEL website:
+patches, or suggestions for improvement, see the Apache Commons BCEL website:
 
 https://commons.apache.org/proper/commons-bcel
 
diff --git a/docs/verifier/JustIce.lyx b/docs/verifier/JustIce.lyx
index e5827ed5..cb7bf4f9 100644
--- a/docs/verifier/JustIce.lyx
+++ b/docs/verifier/JustIce.lyx
@@ -11970,7 +11970,7 @@ However, normally web-browsing is considered harmless, so that the employees
  can unrestrictedly gather information, possibly visiting Java-enabled web
  sites.
  The JVMs built into the browser software run software downloaded from the
- World Wide Web; while the the built-in verifiers make sure that no dangerous
+ World Wide Web; while the built-in verifiers make sure that no dangerous
  code can be executed.
 \layout Standard
 
diff --git a/src/examples/Mini/JJTMiniParserState.java b/src/examples/Mini/JJTMiniParserState.java
index b16abe60..de0dad02 100644
--- a/src/examples/Mini/JJTMiniParserState.java
+++ b/src/examples/Mini/JJTMiniParserState.java
@@ -43,7 +43,7 @@ class JJTMiniParserState {
 
     /*
      * A conditional node is constructed if its condition is true. All the nodes that have been pushed since the node was
-     * opened are made children of the the conditional node, which is then pushed on to the stack. If the condition is false
+     * opened are made children of the conditional node, which is then pushed on to the stack. If the condition is false
      * the node is not constructed and they are left on the stack.
      */
     void closeNodeScope(final Node n, final boolean condition) {
diff --git a/src/main/java/org/apache/bcel/classfile/StackMapEntry.java b/src/main/java/org/apache/bcel/classfile/StackMapEntry.java
index 19071bd0..fbea575e 100644
--- a/src/main/java/org/apache/bcel/classfile/StackMapEntry.java
+++ b/src/main/java/org/apache/bcel/classfile/StackMapEntry.java
@@ -24,7 +24,7 @@ import java.io.IOException;
 import org.apache.bcel.Const;
 
 /**
- * This class represents a stack map entry recording the types of local variables and the the of stack items at a given
+ * This class represents a stack map entry recording the types of local variables and the of stack items at a given
  * byte code offset. See CLDC specification 5.3.1.2
  *
  * @see StackMap
@@ -395,7 +395,7 @@ public final class StackMapEntry implements Node, Cloneable {
     }
 
     /**
-     * Update the distance (as an offset delta) from this StackMap entry to the next. Note that this might cause the the
+     * Update the distance (as an offset delta) from this StackMap entry to the next. Note that this might cause the
      * frame type to change. Note also that delta may be negative.
      *
      * @param delta offset delta
diff --git a/src/main/java/org/apache/bcel/generic/CodeExceptionGen.java b/src/main/java/org/apache/bcel/generic/CodeExceptionGen.java
index 918fcd86..72b42b30 100644
--- a/src/main/java/org/apache/bcel/generic/CodeExceptionGen.java
+++ b/src/main/java/org/apache/bcel/generic/CodeExceptionGen.java
@@ -78,7 +78,7 @@ public final class CodeExceptionGen implements InstructionTargeter, Cloneable {
     /**
      * Get CodeException object.<BR>
      *
-     * This relies on that the instruction list has already been dumped to byte code or or that the `setPositions' methods
+     * This relies on that the instruction list has already been dumped to byte code or that the `setPositions' methods
      * has been called for the instruction list.
      *
      * @param cp constant pool
diff --git a/src/main/java/org/apache/bcel/generic/LineNumberGen.java b/src/main/java/org/apache/bcel/generic/LineNumberGen.java
index b9761f8b..253e2f5a 100644
--- a/src/main/java/org/apache/bcel/generic/LineNumberGen.java
+++ b/src/main/java/org/apache/bcel/generic/LineNumberGen.java
@@ -67,7 +67,7 @@ public class LineNumberGen implements InstructionTargeter, Cloneable {
     /**
      * Get LineNumber attribute .
      *
-     * This relies on that the instruction list has already been dumped to byte code or or that the `setPositions' methods
+     * This relies on that the instruction list has already been dumped to byte code or that the `setPositions' methods
      * has been called for the instruction list.
      */
     public LineNumber getLineNumber() {
diff --git a/src/main/java/org/apache/bcel/generic/LocalVariableGen.java b/src/main/java/org/apache/bcel/generic/LocalVariableGen.java
index d7343694..ed089227 100644
--- a/src/main/java/org/apache/bcel/generic/LocalVariableGen.java
+++ b/src/main/java/org/apache/bcel/generic/LocalVariableGen.java
@@ -49,7 +49,7 @@ public class LocalVariableGen implements InstructionTargeter, NamedAndTyped, Clo
      */
     public LocalVariableGen(final int index, final String name, final Type type, final InstructionHandle start, final InstructionHandle end) {
         if (index < 0 || index > Const.MAX_SHORT) {
-            throw new ClassGenException("Invalid index index: " + index);
+            throw new ClassGenException("Invalid index: " + index);
         }
         this.name = name;
         this.type = type;
@@ -129,7 +129,7 @@ public class LocalVariableGen implements InstructionTargeter, NamedAndTyped, Clo
     /**
      * Gets LocalVariable object.
      *
-     * This relies on that the instruction list has already been dumped to byte code or or that the `setPositions' methods
+     * This relies on that the instruction list has already been dumped to byte code or that the `setPositions' methods
      * has been called for the instruction list.
      *
      * Note that due to the conversion from byte code offset to InstructionHandle, it is impossible to tell the difference
diff --git a/src/main/java/org/apache/bcel/verifier/structurals/ExecutionVisitor.java b/src/main/java/org/apache/bcel/verifier/structurals/ExecutionVisitor.java
index a348b785..458512c1 100644
--- a/src/main/java/org/apache/bcel/verifier/structurals/ExecutionVisitor.java
+++ b/src/main/java/org/apache/bcel/verifier/structurals/ExecutionVisitor.java
@@ -1334,7 +1334,7 @@ public class ExecutionVisitor extends EmptyVisitor {
     @Override
     public void visitRET(final RET o) {
         // do nothing, return address
-        // is in in the local variables.
+        // is in the local variables.
     }
 
     /** Symbolically executes the corresponding Java Virtual Machine instruction. */
diff --git a/src/main/java/org/apache/bcel/verifier/structurals/OperandStack.java b/src/main/java/org/apache/bcel/verifier/structurals/OperandStack.java
index 8f4d911e..cfb3cce7 100644
--- a/src/main/java/org/apache/bcel/verifier/structurals/OperandStack.java
+++ b/src/main/java/org/apache/bcel/verifier/structurals/OperandStack.java
@@ -26,7 +26,7 @@ import org.apache.bcel.verifier.exc.AssertionViolatedException;
 import org.apache.bcel.verifier.exc.StructuralCodeConstraintException;
 
 /**
- * This class implements a stack used for symbolic JVM stack simulation. [It's used an an operand stack substitute.]
+ * This class implements a stack used for symbolic JVM stack simulation. [It's used as an operand stack substitute.]
  * Elements of this stack are {@link Type} objects.
  *
  */
diff --git a/src/main/java/org/apache/bcel/verifier/structurals/Pass3bVerifier.java b/src/main/java/org/apache/bcel/verifier/structurals/Pass3bVerifier.java
index 6193490c..91c8ae41 100644
--- a/src/main/java/org/apache/bcel/verifier/structurals/Pass3bVerifier.java
+++ b/src/main/java/org/apache/bcel/verifier/structurals/Pass3bVerifier.java
@@ -304,7 +304,7 @@ public final class Pass3bVerifier extends PassVerifier {
                                 invalidReturnTypeError(returnedType, m);
                             }
                         } catch (final ClassNotFoundException e) {
-                            // Don't know what do do now, so raise RuntimeException
+                            // Don't know what to do now, so raise RuntimeException
                             throw new IllegalArgumentException(e);
                         }
                     } else if (!returnedType.equals(m.getReturnType().normalizeForStackOrLocal())) {