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 efaba554 Fix spelling
efaba554 is described below
commit efaba5541f5199103bc2734fc454be01796abb39
Author: Gary David Gregory (Code signing key) <[email protected]>
AuthorDate: Fri Jan 27 08:50:36 2023 -0500
Fix spelling
---
.../org/apache/bcel/classfile/SimpleElementValue.java | 18 +++++++++---------
.../org/apache/bcel/generic/SimpleElementValueGen.java | 4 ++--
2 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/src/main/java/org/apache/bcel/classfile/SimpleElementValue.java
b/src/main/java/org/apache/bcel/classfile/SimpleElementValue.java
index a9021579..c84c64ae 100644
--- a/src/main/java/org/apache/bcel/classfile/SimpleElementValue.java
+++ b/src/main/java/org/apache/bcel/classfile/SimpleElementValue.java
@@ -62,7 +62,7 @@ public class SimpleElementValue extends ElementValue {
public boolean getValueBoolean() {
if (super.getType() != PRIMITIVE_BOOLEAN) {
- throw new IllegalStateException("Dont call getValueBoolean() on a
non BOOLEAN ElementValue");
+ throw new IllegalStateException("Don't call getValueBoolean() on a
non BOOLEAN ElementValue");
}
final ConstantInteger bo = (ConstantInteger)
super.getConstantPool().getConstant(getIndex());
return bo.getBytes() != 0;
@@ -70,21 +70,21 @@ public class SimpleElementValue extends ElementValue {
public byte getValueByte() {
if (super.getType() != PRIMITIVE_BYTE) {
- throw new IllegalStateException("Dont call getValueByte() on a non
BYTE ElementValue");
+ throw new IllegalStateException("Don't call getValueByte() on a
non BYTE ElementValue");
}
return (byte)
super.getConstantPool().getConstantInteger(getIndex()).getBytes();
}
public char getValueChar() {
if (super.getType() != PRIMITIVE_CHAR) {
- throw new IllegalStateException("Dont call getValueChar() on a non
CHAR ElementValue");
+ throw new IllegalStateException("Don't call getValueChar() on a
non CHAR ElementValue");
}
return (char)
super.getConstantPool().getConstantInteger(getIndex()).getBytes();
}
public double getValueDouble() {
if (super.getType() != PRIMITIVE_DOUBLE) {
- throw new IllegalStateException("Dont call getValueDouble() on a
non DOUBLE ElementValue");
+ throw new IllegalStateException("Don't call getValueDouble() on a
non DOUBLE ElementValue");
}
final ConstantDouble d = (ConstantDouble)
super.getConstantPool().getConstant(getIndex());
return d.getBytes();
@@ -92,7 +92,7 @@ public class SimpleElementValue extends ElementValue {
public float getValueFloat() {
if (super.getType() != PRIMITIVE_FLOAT) {
- throw new IllegalStateException("Dont call getValueFloat() on a
non FLOAT ElementValue");
+ throw new IllegalStateException("Don't call getValueFloat() on a
non FLOAT ElementValue");
}
final ConstantFloat f = (ConstantFloat)
super.getConstantPool().getConstant(getIndex());
return f.getBytes();
@@ -100,14 +100,14 @@ public class SimpleElementValue extends ElementValue {
public int getValueInt() {
if (super.getType() != PRIMITIVE_INT) {
- throw new IllegalStateException("Dont call getValueInt() on a non
INT ElementValue");
+ throw new IllegalStateException("Don't call getValueInt() on a non
INT ElementValue");
}
return
super.getConstantPool().getConstantInteger(getIndex()).getBytes();
}
public long getValueLong() {
if (super.getType() != PRIMITIVE_LONG) {
- throw new IllegalStateException("Dont call getValueLong() on a non
LONG ElementValue");
+ throw new IllegalStateException("Don't call getValueLong() on a
non LONG ElementValue");
}
final ConstantLong j = (ConstantLong)
super.getConstantPool().getConstant(getIndex());
return j.getBytes();
@@ -115,7 +115,7 @@ public class SimpleElementValue extends ElementValue {
public short getValueShort() {
if (super.getType() != PRIMITIVE_SHORT) {
- throw new IllegalStateException("Dont call getValueShort() on a
non SHORT ElementValue");
+ throw new IllegalStateException("Don't call getValueShort() on a
non SHORT ElementValue");
}
final ConstantInteger s = (ConstantInteger)
super.getConstantPool().getConstant(getIndex());
return (short) s.getBytes();
@@ -123,7 +123,7 @@ public class SimpleElementValue extends ElementValue {
public String getValueString() {
if (super.getType() != STRING) {
- throw new IllegalStateException("Dont call getValueString() on a
non STRING ElementValue");
+ throw new IllegalStateException("Don't call getValueString() on a
non STRING ElementValue");
}
return super.getConstantPool().getConstantUtf8(getIndex()).getBytes();
}
diff --git a/src/main/java/org/apache/bcel/generic/SimpleElementValueGen.java
b/src/main/java/org/apache/bcel/generic/SimpleElementValueGen.java
index dce79d28..d8f6bf89 100644
--- a/src/main/java/org/apache/bcel/generic/SimpleElementValueGen.java
+++ b/src/main/java/org/apache/bcel/generic/SimpleElementValueGen.java
@@ -179,7 +179,7 @@ public class SimpleElementValueGen extends ElementValueGen {
public int getValueInt() {
if (super.getElementValueType() != PRIMITIVE_INT) {
- throw new IllegalStateException("Dont call getValueString() on a
non STRING ElementValue");
+ throw new IllegalStateException("Don't call getValueString() on a
non STRING ElementValue");
}
final ConstantInteger c = (ConstantInteger)
getConstantPool().getConstant(idx);
return c.getBytes();
@@ -187,7 +187,7 @@ public class SimpleElementValueGen extends ElementValueGen {
public String getValueString() {
if (super.getElementValueType() != STRING) {
- throw new IllegalStateException("Dont call getValueString() on a
non STRING ElementValue");
+ throw new IllegalStateException("Don't call getValueString() on a
non STRING ElementValue");
}
final ConstantUtf8 c = (ConstantUtf8)
getConstantPool().getConstant(idx);
return c.getBytes();