From 91a1c094f0df80bf0e4e48a88cd74ace0411538f Mon Sep 17 00:00:00 2001 From: chiba Date: Thu, 22 Jul 2010 02:01:32 +0000 Subject: [PATCH] fixed typos. git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@561 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- src/main/javassist/CtClass.java | 2 +- src/main/javassist/bytecode/ClassFile.java | 2 +- src/main/javassist/compiler/JvstCodeGen.java | 2 +- src/main/javassist/compiler/MemberCodeGen.java | 2 +- src/main/javassist/util/HotSwapper.java | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/javassist/CtClass.java b/src/main/javassist/CtClass.java index bbf21b87..adb81455 100644 --- a/src/main/javassist/CtClass.java +++ b/src/main/javassist/CtClass.java @@ -766,7 +766,7 @@ public abstract class CtClass { public CtConstructor getConstructor(String desc) throws NotFoundException { - throw new NotFoundException("no such a constructor"); + throw new NotFoundException("no such constructor"); } /** diff --git a/src/main/javassist/bytecode/ClassFile.java b/src/main/javassist/bytecode/ClassFile.java index e6017aac..7c0662c3 100644 --- a/src/main/javassist/bytecode/ClassFile.java +++ b/src/main/javassist/bytecode/ClassFile.java @@ -580,7 +580,7 @@ public final class ClassFile { * Returns the method with the specified name. If there are multiple methods * with that name, this method returns one of them. * - * @return null if no such a method is found. + * @return null if no such method is found. */ public MethodInfo getMethod(String name) { ArrayList list = methods; diff --git a/src/main/javassist/compiler/JvstCodeGen.java b/src/main/javassist/compiler/JvstCodeGen.java index 47188504..91b0eca7 100644 --- a/src/main/javassist/compiler/JvstCodeGen.java +++ b/src/main/javassist/compiler/JvstCodeGen.java @@ -254,7 +254,7 @@ public class JvstCodeGen extends MemberCodeGen { String name = sbuf.toString(); Object[] names = resolver.getClassPool().lookupCflow(name); if (names == null) - throw new CompileError("no such a " + cflowName + ": " + name); + throw new CompileError("no such " + cflowName + ": " + name); bytecode.addGetstatic((String)names[0], (String)names[1], "Ljavassist/runtime/Cflow;"); diff --git a/src/main/javassist/compiler/MemberCodeGen.java b/src/main/javassist/compiler/MemberCodeGen.java index 892fc154..cbff0a44 100644 --- a/src/main/javassist/compiler/MemberCodeGen.java +++ b/src/main/javassist/compiler/MemberCodeGen.java @@ -590,7 +590,7 @@ public class MemberCodeGen extends CodeGen { if (mname.equals(MethodInfo.nameInit)) { isSpecial = true; if (declClass != targetClass) - throw new CompileError("no such a constructor"); + throw new CompileError("no such constructor"); if (declClass != thisClass && AccessFlag.isPrivate(acc)) { desc = getAccessibleConstructor(desc, declClass, minfo); diff --git a/src/main/javassist/util/HotSwapper.java b/src/main/javassist/util/HotSwapper.java index ac1dd78a..3536adf8 100644 --- a/src/main/javassist/util/HotSwapper.java +++ b/src/main/javassist/util/HotSwapper.java @@ -185,7 +185,7 @@ public class HotSwapper { private ReferenceType toRefType(String className) { List list = jvm.classesByName(className); if (list == null || list.isEmpty()) - throw new RuntimeException("no such a class: " + className); + throw new RuntimeException("no such class: " + className); else return (ReferenceType)list.get(0); } -- 2.39.5