ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sbaill...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/sitraka XMLReport.java
Date Sun, 18 Nov 2001 14:28:23 GMT
sbailliez    01/11/18 06:28:23

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional/sitraka
                        XMLReport.java
  Log:
  Fixed a couple of messages to make them more meaningful
  
  Revision  Changes    Path
  1.5       +3 -3      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/sitraka/XMLReport.java
  
  Index: XMLReport.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/sitraka/XMLReport.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- XMLReport.java	2001/11/18 11:41:06	1.4
  +++ XMLReport.java	2001/11/18 14:28:23	1.5
  @@ -283,7 +283,7 @@
               Element methodNode = (Element) methodNodeList.get(methodSig);
               if (methodNode != null &&
                       Utils.isAbstract(method.getAccessFlags())) {
  -                log("\tRemoving method " + methodSig);
  +                log("\tRemoving abstract method " + methodSig);
                   classNode.removeChild(methodNode);
               }
           }
  @@ -400,8 +400,8 @@
       }
   
       protected Vector getFilteredMethods(ClassFile classFile) {
  -        Vector methods = new Vector();
           MethodInfo[] methodlist = classFile.getMethods();
  +        Vector methods = new Vector(methodlist.length);
           for (int i = 0; i < methodlist.length; i++) {
               MethodInfo method = methodlist[i];
               String signature = getMethodSignature(classFile, method);
  @@ -454,7 +454,7 @@
                       pkg_hit_lines += Integer.parseInt(covdata.getAttribute("hit_lines"));
                       pkg_total_lines += Integer.parseInt(covdata.getAttribute("total_lines"));
                   } catch (NumberFormatException e) {
  -                    System.err.println("Error parsing '" + classname + "' (" + j + "/"
+ classes.length + ") in package '" + pkgname + "'");
  +                    log("Error parsing '" + classname + "' (" + j + "/" + classes.length
+ ") in package '" + pkgname + "'");
                       throw e;
                   }
               }
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message