incubator-adffaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mat...@apache.org
Subject svn commit: r468583 - /incubator/adffaces/trunk/plugins/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/GenerateComponentsMojo.java
Date Fri, 27 Oct 2006 23:18:19 GMT
Author: matzew
Date: Fri Oct 27 16:18:19 2006
New Revision: 468583

URL: http://svn.apache.org/viewvc?view=rev&rev=468583
Log:
added support for double to mojo file

Modified:
    incubator/adffaces/trunk/plugins/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/GenerateComponentsMojo.java

Modified: incubator/adffaces/trunk/plugins/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/GenerateComponentsMojo.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/plugins/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/GenerateComponentsMojo.java?view=diff&rev=468583&r1=468582&r2=468583
==============================================================================
--- incubator/adffaces/trunk/plugins/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/GenerateComponentsMojo.java
(original)
+++ incubator/adffaces/trunk/plugins/maven-faces-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/faces/GenerateComponentsMojo.java
Fri Oct 27 16:18:19 2006
@@ -659,6 +659,10 @@
     {
       return "new Integer(" + value + ")";
     }
+    else if ("double".equals(className))
+    {
+      return "new Double(" + value + ")";
+    }
     else if ("float".equals(className))
     {
       return "new Float(" + value + ")";
@@ -1329,6 +1333,7 @@
     //resolvableTypes.put("java.util.Date", "Date");
     resolvableTypes.put("int", "Integer");
     resolvableTypes.put("float", "Float");
+    resolvableTypes.put("double", "Double");
     resolvableTypes.put("java.util.Locale", "Locale");
     resolvableTypes.put("long", "Long");
     resolvableTypes.put("java.lang.String", "String");



Mime
View raw message