You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by jl...@apache.org on 2007/04/11 09:04:50 UTC

svn commit: r527400 - /incubator/cxf/trunk/tools/javato/src/test/java/org/apache/cxf/tools/java2wsdl/processor/internal/jaxws/JaxwsServiceBuilderTest.java

Author: jliu
Date: Wed Apr 11 00:04:50 2007
New Revision: 527400

URL: http://svn.apache.org/viewvc?view=rev&rev=527400
Log:
Fixed the PMD failure. though I have not figured yet why I got this failure, it passed on my Windows box. 

Modified:
    incubator/cxf/trunk/tools/javato/src/test/java/org/apache/cxf/tools/java2wsdl/processor/internal/jaxws/JaxwsServiceBuilderTest.java

Modified: incubator/cxf/trunk/tools/javato/src/test/java/org/apache/cxf/tools/java2wsdl/processor/internal/jaxws/JaxwsServiceBuilderTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/javato/src/test/java/org/apache/cxf/tools/java2wsdl/processor/internal/jaxws/JaxwsServiceBuilderTest.java?view=diff&rev=527400&r1=527399&r2=527400
==============================================================================
--- incubator/cxf/trunk/tools/javato/src/test/java/org/apache/cxf/tools/java2wsdl/processor/internal/jaxws/JaxwsServiceBuilderTest.java (original)
+++ incubator/cxf/trunk/tools/javato/src/test/java/org/apache/cxf/tools/java2wsdl/processor/internal/jaxws/JaxwsServiceBuilderTest.java Wed Apr 11 00:04:50 2007
@@ -144,12 +144,11 @@
         String comment = "<!-- Generated by <javatowsdl>";
 
         try {
-            while ((line = in.readLine()) != null) {
-                if (!commentChecked) {
-                    if (line.startsWith(comment)) {
-                        commentChecked = true;
-                        continue;
-                    }
+            line = in.readLine();
+            while (line != null) {
+                if (!commentChecked && line.startsWith(comment)) {
+                    commentChecked = true;
+                    continue;
                 }
 
                 StringTokenizer tok = new StringTokenizer(line);
@@ -158,6 +157,7 @@
                     String token = tok.nextToken();
                     result.append("  " + token);
                 }
+                line = in.readLine();
             }
         } catch (Exception ex) {
             ex.printStackTrace();