aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2010-07-22 02:01:32 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2010-07-22 02:01:32 +0000
commit91a1c094f0df80bf0e4e48a88cd74ace0411538f (patch)
tree63c4a903ad534b9cd79d5bf7e31dda9e156d00c4 /src
parentb8b4b628bf069474152419b0451c9f0165faa97e (diff)
downloadjavassist-91a1c094f0df80bf0e4e48a88cd74ace0411538f.tar.gz
javassist-91a1c094f0df80bf0e4e48a88cd74ace0411538f.zip
fixed typos.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@561 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src')
-rw-r--r--src/main/javassist/CtClass.java2
-rw-r--r--src/main/javassist/bytecode/ClassFile.java2
-rw-r--r--src/main/javassist/compiler/JvstCodeGen.java2
-rw-r--r--src/main/javassist/compiler/MemberCodeGen.java2
-rw-r--r--src/main/javassist/util/HotSwapper.java2
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);
}