You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ma...@apache.org on 2022/11/15 09:53:19 UTC
[commons-bcel] branch master updated: Fix line length
This is an automated email from the ASF dual-hosted git repository.
markt 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 915cfeff Fix line length
915cfeff is described below
commit 915cfeffff72ace10618b2b81e29922b250db126
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Tue Nov 15 09:53:14 2022 +0000
Fix line length
---
src/main/java/org/apache/bcel/classfile/ConstantPool.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/bcel/classfile/ConstantPool.java b/src/main/java/org/apache/bcel/classfile/ConstantPool.java
index 05bf8674..410da1c3 100644
--- a/src/main/java/org/apache/bcel/classfile/ConstantPool.java
+++ b/src/main/java/org/apache/bcel/classfile/ConstantPool.java
@@ -304,7 +304,8 @@ public class ConstantPool implements Cloneable, Node, Iterable<Constant> {
throw new ClassFormatException("Invalid constant pool reference using index: " + index + ". Constant pool size is: " + constantPool.length);
}
if (constantPool[index] != null && !castTo.isAssignableFrom(constantPool[index].getClass())) {
- throw new ClassFormatException("Invalid constant pool reference at index: " + index + ". Expected " + castTo + " but was " + constantPool[index].getClass());
+ throw new ClassFormatException("Invalid constant pool reference at index: " + index +
+ ". Expected " + castTo + " but was " + constantPool[index].getClass());
}
// Previous check ensures this won't throw a ClassCastException
final T c = castTo.cast(constantPool[index]);