aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/bytecode/ClassFile.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/javassist/bytecode/ClassFile.java')
-rw-r--r--src/main/javassist/bytecode/ClassFile.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/javassist/bytecode/ClassFile.java b/src/main/javassist/bytecode/ClassFile.java
index 1cff98b2..aa8fefd6 100644
--- a/src/main/javassist/bytecode/ClassFile.java
+++ b/src/main/javassist/bytecode/ClassFile.java
@@ -350,7 +350,7 @@ public final class ClassFile {
while (it.hasNext()) {
FieldInfo minfo = (FieldInfo)it.next();
if (minfo.getName().equals(name))
- throw new CannotCompileException("duplicated field: " + name);
+ throw new CannotCompileException("duplicate field: " + name);
}
}
@@ -408,7 +408,7 @@ public final class ClassFile {
MethodInfo minfo = (MethodInfo)it.next();
if (minfo.getName().equals(name)
&& Descriptor.eqSignature(minfo.getDescriptor(), descriptor))
- throw new CannotCompileException("duplicated method: " + name);
+ throw new CannotCompileException("duplicate method: " + name);
}
}