cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r527400 - /incubator/cxf/trunk/tools/javato/src/test/java/org/apache/cxf/tools/java2wsdl/processor/internal/jaxws/JaxwsServiceBuilderTest.java
Date Wed, 11 Apr 2007 07:04:50 GMT
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();



Mime
View raw message