activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r464745 - /incubator/activemq/activemq-cpp/trunk/activemq-cpp/temp-scripts/AmqCppClassesGenerator.java
Date Mon, 16 Oct 2006 23:55:26 GMT
Author: tabish
Date: Mon Oct 16 16:55:25 2006
New Revision: 464745

URL: http://svn.apache.org/viewvc?view=rev&rev=464745
Log:
Store in progress openwire generator scripts here for now

Modified:
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/temp-scripts/AmqCppClassesGenerator.java

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/temp-scripts/AmqCppClassesGenerator.java
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/temp-scripts/AmqCppClassesGenerator.java?view=diff&rev=464745&r1=464744&r2=464745
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/temp-scripts/AmqCppClassesGenerator.java
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/temp-scripts/AmqCppClassesGenerator.java
Mon Oct 16 16:55:25 2006
@@ -281,7 +281,7 @@
 out.println("////////////////////////////////////////////////////////////////////////////////");
 out.println(className+"* "+className+"::clone() const {");
 
-    String newInstance = decaptialize(className);
+    String newInstance = decapitalize(className);
 
 out.println("    "+className+"* "+newInstance+" = ");
 out.println("        new "+className+"();");
@@ -297,8 +297,8 @@
         if( !property.getType().isPrimitiveType() &&
             !property.getType().getSimpleName().equals("ByteSequence") && 
             !type.startsWith("std::vector") ) {
-               
-out.println("    "+newInstance+"->"+parameterName+" = this->get"+propertyName"();");
           
+
+out.println("    "+newInstance+"->"+parameterName+" = this->get"+propertyName+"();");
         } else if( property.getType().getSimpleName().startsWith("std::vector") &&
                    type.contains( "*" ) ) {
 out.println("    for( size_t i" + parameterName + " = 0; i" + parameterName + " < " +
parameterName + ".size(); ++i" + parameterName + " ) {");
@@ -306,7 +306,7 @@
 out.println("            this->"+parameterName+"[i"+parameterName+"]->clone();"); 
          
 out.println("    }");
         } else {
-out.println("    "+newInstance+"->"+parameterName+" = this->get"+propertyName"()->clone();");
           
+out.println("    "+newInstance+"->"+parameterName+" = this->get"+propertyName+"()->clone();");
         }
     }
 



Mime
View raw message