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/testcases/org/apache/tools/ant/taskdefs/optional/sitraka ClassFileTest.java
Date Sun, 18 Nov 2001 01:09:42 GMT
sbailliez    01/11/17 17:09:42

  Modified:    src/testcases/org/apache/tools/ant/taskdefs/optional/sitraka
                        ClassFileTest.java
  Log:
  Removing import that is no more needed... wiped out. :)
  
  Revision  Changes    Path
  1.2       +8 -9      jakarta-ant/src/testcases/org/apache/tools/ant/taskdefs/optional/sitraka/ClassFileTest.java
  
  Index: ClassFileTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/testcases/org/apache/tools/ant/taskdefs/optional/sitraka/ClassFileTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ClassFileTest.java	2001/11/18 01:05:20	1.1
  +++ ClassFileTest.java	2001/11/18 01:09:41	1.2
  @@ -53,13 +53,12 @@
    */
   package org.apache.tools.ant.taskdefs.optional.sitraka;
   
  -import java.io.InputStream;
   import java.io.IOException;
  +import java.io.InputStream;
   
   import junit.framework.TestCase;
   import org.apache.tools.ant.taskdefs.optional.sitraka.bytecode.ClassFile;
   import org.apache.tools.ant.taskdefs.optional.sitraka.bytecode.MethodInfo;
  -import org.apache.tools.ant.taskdefs.optional.sitraka.bytecode.attributes.LineNumberTable;
   
   /**
    * Nothing special about this testcase...
  @@ -72,7 +71,7 @@
       }
   
       public void testVector() throws IOException {
  -        String classname = ClassTest.class.getName().replace('.','/') + ".class";
  +        String classname = ClassTest.class.getName().replace('.', '/') + ".class";
           InputStream is = ClassLoader.getSystemResourceAsStream(classname);
           ClassFile clazzfile = new ClassFile(is);
           assertEquals("ClassTest", clazzfile.getName());
  @@ -84,11 +83,11 @@
           assertHasMethod("void testOneLine()", 3, methods);
       }
   
  -    protected void assertHasMethod(String methodsig, int line, MethodInfo[] methods){
  +    protected void assertHasMethod(String methodsig, int line, MethodInfo[] methods) {
           boolean found = false;
           for (int i = 0; i < methods.length; i++) {
               MethodInfo method = methods[i];
  -            if ( methodsig.equals(method.getFullSignature()) ){
  +            if (methodsig.equals(method.getFullSignature())) {
                   assertEquals(methodsig, line, method.getNumberOfLines());
                   return;
               }
  @@ -100,19 +99,19 @@
   class ClassTest {
   
       // 2 lines
  -    public ClassTest(){
  +            public ClassTest() {
       }
   
       // 2 lines
  -    public void testTwoLines(){
  +            public void testTwoLines() {
           System.out.println("This is 1 line");
       }
   
       // 1 line
  -    public void testOneLine() {
  +            public void testOneLine() {
           try {
               throw new Exception();
  -        } catch (Exception e){
  +        } catch (Exception 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