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 6183a0a3 Format: "catch(" -> "catch ("
6183a0a3 is described below
commit 6183a0a31be5ea29be5246e751df9ba2ff4d9f4d
Author: Gary David Gregory (Code signing key) <[email protected]>
AuthorDate: Tue Apr 18 10:29:50 2023 -0400
Format: "catch(" -> "catch ("
---
src/examples/HelloWorldBuilder.java | 2 +-
src/examples/Mini/ASTFunDecl.java | 2 +-
src/examples/Mini/Environment.java | 2 +-
src/main/java/org/apache/bcel/classfile/Code.java | 2 +-
src/main/java/org/apache/bcel/generic/TargetLostException.java | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/examples/HelloWorldBuilder.java
b/src/examples/HelloWorldBuilder.java
index c5d5721e..8c1ce733 100644
--- a/src/examples/HelloWorldBuilder.java
+++ b/src/examples/HelloWorldBuilder.java
@@ -111,7 +111,7 @@ public class HelloWorldBuilder {
final InstructionHandle tryEnd = il.append(g);
/*
- * } catch() { ... } Add exception handler: print exception and return
from method
+ * } catch () { ... } Add exception handler: print exception and
return from method
*/
final InstructionHandle handler =
il.append(factory.createFieldAccess("java.lang.System", "out", pStream,
Const.GETSTATIC));
// Little trick in order not to save exception object temporarily
diff --git a/src/examples/Mini/ASTFunDecl.java
b/src/examples/Mini/ASTFunDecl.java
index 52feecbb..379789e0 100644
--- a/src/examples/Mini/ASTFunDecl.java
+++ b/src/examples/Mini/ASTFunDecl.java
@@ -331,7 +331,7 @@ public class ASTFunDecl extends SimpleNode implements
MiniParserTreeConstants {
out.println(expr);
if (main) {
- out.println(" } catch(Exception e) { System.err.println(e);
}\n }\n");
+ out.println(" } catch (Exception e) {
System.err.println(e); }\n }\n");
} else {
out.println("\n return " + pop() + ";\n }\n");
}
diff --git a/src/examples/Mini/Environment.java
b/src/examples/Mini/Environment.java
index 11faba8e..98d54708 100644
--- a/src/examples/Mini/Environment.java
+++ b/src/examples/Mini/Environment.java
@@ -76,7 +76,7 @@ public class Environment implements Cloneable {
* int len = table[i].size();
*
* copy[i] = new Vector(len); try { for(int j=0; j < len; j++)
copy[i].addElement(table[i].elementAt(j)); }
- * catch(ArrayIndexOutOfBoundsException e) {}
+ * catch (ArrayIndexOutOfBoundsException e) {}
*/
}
}
diff --git a/src/main/java/org/apache/bcel/classfile/Code.java
b/src/main/java/org/apache/bcel/classfile/Code.java
index 09163047..5e12d00d 100644
--- a/src/main/java/org/apache/bcel/classfile/Code.java
+++ b/src/main/java/org/apache/bcel/classfile/Code.java
@@ -89,7 +89,7 @@ public final class Code extends Attribute {
code = new byte[codeLength]; // Read byte code
file.readFully(code);
/*
- * Read exception table that contains all regions where an exception
handler is active, i.e., a try { ... } catch()
+ * Read exception table that contains all regions where an exception
handler is active, i.e., a try { ... } catch ()
* block.
*/
final int exceptionTableLength = file.readUnsignedShort();
diff --git a/src/main/java/org/apache/bcel/generic/TargetLostException.java
b/src/main/java/org/apache/bcel/generic/TargetLostException.java
index 43bd458a..94abf594 100644
--- a/src/main/java/org/apache/bcel/generic/TargetLostException.java
+++ b/src/main/java/org/apache/bcel/generic/TargetLostException.java
@@ -30,7 +30,7 @@ package org.apache.bcel.generic;
* ...
* try {
* il.delete(start_ih, end_ih);
- * } catch(TargetLostException e) {
+ * } catch (TargetLostException e) {
* for (InstructionHandle target : e.getTargets()) {
* for (InstructionTargeter targeter : target.getTargeters()) {
* targeter.updateTarget(target, new_target);