db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r918870 - /db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/gf/generator/java/CamelbackGenerator.java
Date Thu, 04 Mar 2010 06:30:18 GMT
Author: tfischer
Date: Thu Mar  4 06:30:17 2010
New Revision: 918870

URL: http://svn.apache.org/viewvc?rev=918870&view=rev
Log:
set the default value of wrapReservedJavaWords to false as a default value of true can lead
to hard-to-explain behaviour

Modified:
    db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/gf/generator/java/CamelbackGenerator.java

Modified: db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/gf/generator/java/CamelbackGenerator.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/gf/generator/java/CamelbackGenerator.java?rev=918870&r1=918869&r2=918870&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/gf/generator/java/CamelbackGenerator.java
(original)
+++ db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/gf/generator/java/CamelbackGenerator.java
Thu Mar  4 06:30:17 2010
@@ -32,6 +32,10 @@
  * The name can be truncated before/after special characters, other
  * special characters can be removed, and still other characters can be removed
  * plus the next character is transformed into upper case.
+ * 
+ * If wrapReservedJavaWords is set to true, the result will be prepended with
+ * an underscore if the result of the transwormation would be a reserved word
+ * within the java syntax (e.g. int, for etc...)
  */
 public class CamelbackGenerator extends StringInputGenerator
 {
@@ -47,7 +51,7 @@
         = new WrapReservedJavaWords();
 
     /** Whether reserved java words are wrapped. */
-    private boolean wrapReservedJavaWords = true;
+    private boolean wrapReservedJavaWords = false;
 
     /**
      * Constructor.



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message