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 3ffe6712 Typo in error message (#161)
3ffe6712 is described below

commit 3ffe6712a64387174dc1b37f393af79adef28da8
Author: nbauma109 <nbauma...@users.noreply.github.com>
AuthorDate: Thu Nov 3 00:46:42 2022 +0100

    Typo in error message (#161)
    
    It seems it was a wrong copy/paste
---
 src/main/java/org/apache/bcel/classfile/SimpleElementValue.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/bcel/classfile/SimpleElementValue.java 
b/src/main/java/org/apache/bcel/classfile/SimpleElementValue.java
index 491bdf19..0a1096ba 100644
--- a/src/main/java/org/apache/bcel/classfile/SimpleElementValue.java
+++ b/src/main/java/org/apache/bcel/classfile/SimpleElementValue.java
@@ -100,7 +100,7 @@ public class SimpleElementValue extends ElementValue {
 
     public int getValueInt() {
         if (super.getType() != PRIMITIVE_INT) {
-            throw new IllegalStateException("Dont call getValueString() on a 
non STRING ElementValue");
+            throw new IllegalStateException("Dont call getValueInt() on a non 
INT ElementValue");
         }
         return 
super.getConstantPool().getConstantInteger(getIndex()).getBytes();
     }

Reply via email to