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 cecc6d92 Use preferred spelling for "cannot"
cecc6d92 is described below

commit cecc6d9240bbc39a29708d690165f3501cf84065
Author: Gary David Gregory (Code signing key) <ggreg...@apache.org>
AuthorDate: Mon Nov 4 17:58:52 2024 -0500

    Use preferred spelling for "cannot"
---
 src/examples/Mini/ASTProgram.java                              | 2 +-
 src/main/java/org/apache/bcel/generic/FieldGenOrMethodGen.java | 2 +-
 src/main/java/org/apache/bcel/generic/Instruction.java         | 4 ++--
 src/main/java/org/apache/bcel/util/InstructionFinder.java      | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/examples/Mini/ASTProgram.java 
b/src/examples/Mini/ASTProgram.java
index 683063a2..70879fdd 100644
--- a/src/examples/Mini/ASTProgram.java
+++ b/src/examples/Mini/ASTProgram.java
@@ -247,7 +247,7 @@ public class ASTProgram extends SimpleNode implements 
MiniParserConstants, MiniP
                 final ASTIdent name = fun_decl.getName();
 
                 if (name.getType() == Const.T_UNKNOWN) {
-                    MiniC.addError(name.getColumn(), name.getLine(), "Type of 
function " + name.getName() + " can not be determined (infinite recursion?).");
+                    MiniC.addError(name.getColumn(), name.getLine(), "Type of 
function " + name.getName() + " cannot be determined (infinite recursion?).");
                 }
             }
         }
diff --git a/src/main/java/org/apache/bcel/generic/FieldGenOrMethodGen.java 
b/src/main/java/org/apache/bcel/generic/FieldGenOrMethodGen.java
index 9b6fbabe..687c9105 100644
--- a/src/main/java/org/apache/bcel/generic/FieldGenOrMethodGen.java
+++ b/src/main/java/org/apache/bcel/generic/FieldGenOrMethodGen.java
@@ -167,7 +167,7 @@ public abstract class FieldGenOrMethodGen extends 
AccessFlags implements NamedAn
     @Override
     public void setType(final Type type) { // TODO could be package-protected?
         if (type.getType() == Const.T_ADDRESS) {
-            throw new IllegalArgumentException("Type can not be " + type);
+            throw new IllegalArgumentException("Type cannot be " + type);
         }
         this.type = type;
     }
diff --git a/src/main/java/org/apache/bcel/generic/Instruction.java 
b/src/main/java/org/apache/bcel/generic/Instruction.java
index 1d829132..921452b2 100644
--- a/src/main/java/org/apache/bcel/generic/Instruction.java
+++ b/src/main/java/org/apache/bcel/generic/Instruction.java
@@ -439,7 +439,7 @@ public abstract class Instruction implements Cloneable {
      * This method also gives right results for instructions whose effect on 
the stack depends on the constant pool entry
      * they reference.
      *
-     * @return Number of words consumed from stack by this instruction, or 
Constants.UNPREDICTABLE, if this can not be
+     * @return Number of words consumed from stack by this instruction, or 
Constants.UNPREDICTABLE, if this cannot be
      *         computed statically
      */
     public int consumeStack(final ConstantPoolGen cpg) {
@@ -541,7 +541,7 @@ public abstract class Instruction implements Cloneable {
      * This method also gives right results for instructions whose effect on 
the stack depends on the constant pool entry
      * they reference.
      *
-     * @return Number of words produced onto stack by this instruction, or 
Constants.UNPREDICTABLE, if this can not be
+     * @return Number of words produced onto stack by this instruction, or 
Constants.UNPREDICTABLE, if this cannot be
      *         computed statically
      */
     public int produceStack(final ConstantPoolGen cpg) {
diff --git a/src/main/java/org/apache/bcel/util/InstructionFinder.java 
b/src/main/java/org/apache/bcel/util/InstructionFinder.java
index a9baa14d..a633d822 100644
--- a/src/main/java/org/apache/bcel/util/InstructionFinder.java
+++ b/src/main/java/org/apache/bcel/util/InstructionFinder.java
@@ -64,7 +64,7 @@ public class InstructionFinder {
 
     /**
      * Code patterns found may be checked using an additional user-defined 
constraint object whether they really match the
-     * needed criterion. I.e., check constraints that can not expressed with 
regular expressions.
+     * needed criterion. I.e., check constraints that cannot expressed with 
regular expressions.
      */
     public interface CodeConstraint {
 

Reply via email to