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
commit 0a7841e5e547493f9b1286ce3e3bfb337caf13f0 Author: Gary David Gregory (Code signing key) <ggreg...@apache.org> AuthorDate: Fri Oct 7 10:37:04 2022 -0400 Fix spelling --- src/examples/Mini/TokenMgrError.java | 6 +++--- src/main/java/org/apache/bcel/verifier/statics/Pass1Verifier.java | 4 ++-- .../org/apache/bcel/verifier/structurals/InstConstraintVisitor.java | 2 +- .../java/org/apache/bcel/verifier/structurals/Pass3bVerifier.java | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/examples/Mini/TokenMgrError.java b/src/examples/Mini/TokenMgrError.java index 962a8bd2..0bfc39f2 100644 --- a/src/examples/Mini/TokenMgrError.java +++ b/src/examples/Mini/TokenMgrError.java @@ -26,7 +26,7 @@ public class TokenMgrError extends Error { private static final long serialVersionUID = 1L; /** - * Lexical error occured. + * Lexical error occurred. */ static final int LEXICAL_ERROR = 0; @@ -95,8 +95,8 @@ public class TokenMgrError extends Error { /** * Returns a detailed message for the Error when it is thrown by the token manager to indicate a lexical error. * Parameters : EOFSeen : indicates if EOF caused the lexicl error curLexState : lexical state in which this error - * occured errorLine : line number when the error occured errorColumn : column number when the error occured errorAfter - * : prefix that was seen before this error occured curchar : the offending character Note: You can customize the + * occurred errorLine : line number when the error occurred errorColumn : column number when the error occurred errorAfter + * : prefix that was seen before this error occurred curchar : the offending character Note: You can customize the * lexical error message by modifying this method. */ private static String LexicalError(final boolean EOFSeen, final int lexState, final int errorLine, final int errorColumn, final String errorAfter, diff --git a/src/main/java/org/apache/bcel/verifier/statics/Pass1Verifier.java b/src/main/java/org/apache/bcel/verifier/statics/Pass1Verifier.java index 36481356..3a64cd52 100644 --- a/src/main/java/org/apache/bcel/verifier/statics/Pass1Verifier.java +++ b/src/main/java/org/apache/bcel/verifier/statics/Pass1Verifier.java @@ -140,9 +140,9 @@ public final class Pass1Verifier extends PassVerifier { } catch (final RuntimeException e) { // BCEL does not catch every possible RuntimeException; e.g. if // a constant pool index is referenced that does not exist. - return new VerificationResult(VerificationResult.VERIFIED_REJECTED, "Parsing via BCEL did not succeed. " + " exception occured:\n" + e.toString()); + return new VerificationResult(VerificationResult.VERIFIED_REJECTED, "Parsing via BCEL did not succeed. " + " exception occurred:\n" + e.toString()); // Don't think we want to dump a stack trace unless we have some sort of a debug option. - // e.getClass().getName()+" occured:\n"+Utility.getStackTrace(e)); + // e.getClass().getName()+" occurred:\n"+Utility.getStackTrace(e)); } if (jc != null) { diff --git a/src/main/java/org/apache/bcel/verifier/structurals/InstConstraintVisitor.java b/src/main/java/org/apache/bcel/verifier/structurals/InstConstraintVisitor.java index 7948810a..2e21bd61 100644 --- a/src/main/java/org/apache/bcel/verifier/structurals/InstConstraintVisitor.java +++ b/src/main/java/org/apache/bcel/verifier/structurals/InstConstraintVisitor.java @@ -121,7 +121,7 @@ public class InstConstraintVisitor extends EmptyVisitor { /** * This method is called by the visitXXX() to notify the acceptor of this InstConstraintVisitor that a constraint - * violation has occured. This is done by throwing an instance of a StructuralCodeConstraintException. + * violation has occurred. This is done by throwing an instance of a StructuralCodeConstraintException. * * @throws StructuralCodeConstraintException always. */ 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 91c8ae41..03a93fb1 100644 --- a/src/main/java/org/apache/bcel/verifier/structurals/Pass3bVerifier.java +++ b/src/main/java/org/apache/bcel/verifier/structurals/Pass3bVerifier.java @@ -396,7 +396,7 @@ public final class Pass3bVerifier extends PassVerifier { final PrintWriter pw = new PrintWriter(sw); re.printStackTrace(pw); - throw new AssertionViolatedException("Some RuntimeException occured while verify()ing class '" + jc.getClassName() + "', method '" + throw new AssertionViolatedException("Some RuntimeException occurred while verify()ing class '" + jc.getClassName() + "', method '" + methods[methodNo] + "'. Original RuntimeException's stack trace:\n---\n" + sw + "---\n", re); } return VerificationResult.VR_OK;