FeatureVisitors on Long fields fail because of typo in CalcUtil
---------------------------------------------------------------

                 Key: GEOT-2894
                 URL: http://jira.codehaus.org/browse/GEOT-2894
             Project: GeoTools
          Issue Type: Bug
          Components: core feature
            Reporter: Ariel Núñez
         Attachments: calcutil_long_bug.diff

Float.class is duplicated where Long.class should be.


Index: 
modules/library/main/src/main/java/org/geotools/feature/visitor/CalcUtil.java
===================================================================
--- 
modules/library/main/src/main/java/org/geotools/feature/visitor/CalcUtil.java   
    (revision 34687)
+++ 
modules/library/main/src/main/java/org/geotools/feature/visitor/CalcUtil.java   
    (working copy)
@@ -253,7 +253,7 @@
             return new Double(0);
         } else if (bestClass == Float.class) {
             return new Float(0);
-        } else if (bestClass == Float.class) {
+        } else if (bestClass == Long.class) {
             return new Long(0);
         } else if (bestClass == Integer.class) {
             return new Integer(0);

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to