cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r1065203 - in /cxf/trunk/tools/corba/src: main/java/org/apache/cxf/tools/corba/idlpreprocessor/IdlPreprocessorReader.java test/resources/idl/ExternalInterfaceRef.idl
Date Sun, 30 Jan 2011 07:21:04 GMT
Author: ffang
Date: Sun Jan 30 07:21:04 2011
New Revision: 1065203

URL: http://svn.apache.org/viewvc?rev=1065203&view=rev
Log:
[CXF-3295]idl2wsdl tool fails for some comment format

Modified:
    cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/idlpreprocessor/IdlPreprocessorReader.java
    cxf/trunk/tools/corba/src/test/resources/idl/ExternalInterfaceRef.idl

Modified: cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/idlpreprocessor/IdlPreprocessorReader.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/idlpreprocessor/IdlPreprocessorReader.java?rev=1065203&r1=1065202&r2=1065203&view=diff
==============================================================================
--- cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/idlpreprocessor/IdlPreprocessorReader.java
(original)
+++ cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/idlpreprocessor/IdlPreprocessorReader.java
Sun Jan 30 07:21:04 2011
@@ -198,8 +198,8 @@ public final class IdlPreprocessorReader
         int pos = line.indexOf("**/");
         //The comments need to be end with */, so if the line has ****/,
         //we need to insert space to make it *** */
-        if ((pos != -1) && (pos != 0)) {
-            line = line.substring(0, pos) + " " + line.substring(pos + 1);
+        if (pos != -1) {
+            line = line.substring(0, pos + 1) + " " + line.substring(pos + 1);
         }
         return line;
     }

Modified: cxf/trunk/tools/corba/src/test/resources/idl/ExternalInterfaceRef.idl
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/corba/src/test/resources/idl/ExternalInterfaceRef.idl?rev=1065203&r1=1065202&r2=1065203&view=diff
==============================================================================
--- cxf/trunk/tools/corba/src/test/resources/idl/ExternalInterfaceRef.idl (original)
+++ cxf/trunk/tools/corba/src/test/resources/idl/ExternalInterfaceRef.idl Sun Jan 30 07:21:04
2011
@@ -23,6 +23,10 @@
 #include "PragmaPrefix.idl"
 
 module ExternalInterfaceRef {
+
+/**
+some comment
+**/
   
   interface TestForExternalInterfaceRef 
   {



Mime
View raw message