[jboss-cvs] JBossAS SVN: r106160 - projects/jboss-jca/trunk/codegenerator/src/main/java/org/jboss/jca/codegenerator.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Jun 18 09:14:54 EDT 2010


Author: jeff.zhang
Date: 2010-06-18 09:14:54 -0400 (Fri, 18 Jun 2010)
New Revision: 106160

Modified:
   projects/jboss-jca/trunk/codegenerator/src/main/java/org/jboss/jca/codegenerator/BasicType.java
Log:
change 'basic' type default value to null

Modified: projects/jboss-jca/trunk/codegenerator/src/main/java/org/jboss/jca/codegenerator/BasicType.java
===================================================================
--- projects/jboss-jca/trunk/codegenerator/src/main/java/org/jboss/jca/codegenerator/BasicType.java	2010-06-18 12:42:01 UTC (rev 106159)
+++ projects/jboss-jca/trunk/codegenerator/src/main/java/org/jboss/jca/codegenerator/BasicType.java	2010-06-18 13:14:54 UTC (rev 106160)
@@ -138,22 +138,22 @@
    {
       if (type.equals("String"))
          return "null";
-      else if (type.equals("boolean") || type.equals("Boolean"))
+      else if (type.equals("boolean"))
          return "false";
-      else if (type.equals("int") || type.equals("Integer"))
+      else if (type.equals("int"))
          return "0";
-      else if (type.equals("double") || type.equals("Double"))
+      else if (type.equals("double"))
          return "0.0";
-      else if (type.equals("long") || type.equals("Long"))
-         return "0l";
-      else if (type.equals("byte") || type.equals("Byte"))
+      else if (type.equals("long"))
          return "0";
-      else if (type.equals("short") || type.equals("Short"))
+      else if (type.equals("byte"))
          return "0";
-      else if (type.equals("float") || type.equals("Float"))
-         return "0.0f";
-      else if (type.equals("char") || type.equals("Character"))
+      else if (type.equals("short"))
+         return "0";
+      else if (type.equals("float"))
+         return "0.0";
+      else if (type.equals("char"))
          return "''";
-      return null;
+      return "null";
    }
 }



More information about the jboss-cvs-commits mailing list