[jboss-cvs] javassist SVN: r561 - in trunk/src/main/javassist: bytecode and 2 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Jul 21 22:01:33 EDT 2010


Author: chiba
Date: 2010-07-21 22:01:32 -0400 (Wed, 21 Jul 2010)
New Revision: 561

Modified:
   trunk/src/main/javassist/CtClass.java
   trunk/src/main/javassist/bytecode/ClassFile.java
   trunk/src/main/javassist/compiler/JvstCodeGen.java
   trunk/src/main/javassist/compiler/MemberCodeGen.java
   trunk/src/main/javassist/util/HotSwapper.java
Log:
fixed typos.

Modified: trunk/src/main/javassist/CtClass.java
===================================================================
--- trunk/src/main/javassist/CtClass.java	2010-07-20 16:43:48 UTC (rev 560)
+++ trunk/src/main/javassist/CtClass.java	2010-07-22 02:01:32 UTC (rev 561)
@@ -766,7 +766,7 @@
     public CtConstructor getConstructor(String desc)
         throws NotFoundException
     {
-        throw new NotFoundException("no such a constructor");
+        throw new NotFoundException("no such constructor");
     }
 
     /**

Modified: trunk/src/main/javassist/bytecode/ClassFile.java
===================================================================
--- trunk/src/main/javassist/bytecode/ClassFile.java	2010-07-20 16:43:48 UTC (rev 560)
+++ trunk/src/main/javassist/bytecode/ClassFile.java	2010-07-22 02:01:32 UTC (rev 561)
@@ -580,7 +580,7 @@
      * 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;

Modified: trunk/src/main/javassist/compiler/JvstCodeGen.java
===================================================================
--- trunk/src/main/javassist/compiler/JvstCodeGen.java	2010-07-20 16:43:48 UTC (rev 560)
+++ trunk/src/main/javassist/compiler/JvstCodeGen.java	2010-07-22 02:01:32 UTC (rev 561)
@@ -254,7 +254,7 @@
         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;");

Modified: trunk/src/main/javassist/compiler/MemberCodeGen.java
===================================================================
--- trunk/src/main/javassist/compiler/MemberCodeGen.java	2010-07-20 16:43:48 UTC (rev 560)
+++ trunk/src/main/javassist/compiler/MemberCodeGen.java	2010-07-22 02:01:32 UTC (rev 561)
@@ -590,7 +590,7 @@
         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);

Modified: trunk/src/main/javassist/util/HotSwapper.java
===================================================================
--- trunk/src/main/javassist/util/HotSwapper.java	2010-07-20 16:43:48 UTC (rev 560)
+++ trunk/src/main/javassist/util/HotSwapper.java	2010-07-22 02:01:32 UTC (rev 561)
@@ -185,7 +185,7 @@
     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);
     }



More information about the jboss-cvs-commits mailing list