[jboss-cvs] jboss-seam/src/main/org/jboss/seam/remoting ...

Shane Bryzak Shane_Bryzak at symantec.com
Wed Oct 11 20:05:43 EDT 2006


  User: sbryzak2
  Date: 06/10/11 20:05:43

  Modified:    src/main/org/jboss/seam/remoting  InterfaceGenerator.java
  Log:
  Added support for BigInteger/BigDecimal, refactored StringWrapper
  
  Revision  Changes    Path
  1.22      +4 -1      jboss-seam/src/main/org/jboss/seam/remoting/InterfaceGenerator.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: InterfaceGenerator.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/remoting/InterfaceGenerator.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -b -r1.21 -r1.22
  --- InterfaceGenerator.java	11 Oct 2006 03:09:07 -0000	1.21
  +++ InterfaceGenerator.java	12 Oct 2006 00:05:43 -0000	1.22
  @@ -8,6 +8,8 @@
   import java.lang.reflect.Modifier;
   import java.lang.reflect.ParameterizedType;
   import java.lang.reflect.Type;
  +import java.math.BigDecimal;
  +import java.math.BigInteger;
   import java.util.Collection;
   import java.util.Date;
   import java.util.HashMap;
  @@ -636,7 +638,8 @@
      */
     private String getFieldType(Type type)
     {
  -    if (type.equals(String.class) || (type instanceof Class && ((Class) type).isEnum()))
  +    if (type.equals(String.class) || (type instanceof Class && ((Class) type).isEnum()) ||
  +        type.equals(BigInteger.class) || type.equals(BigDecimal.class))
         return "str";
       else if (type.equals(Boolean.class) || type.equals(Boolean.TYPE))
         return "bool";
  
  
  



More information about the jboss-cvs-commits mailing list