incubator-groovy git commit: Documentation: Update Javadoc to reflect actual behaviour of JsonSlurper with decimal numbers

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

incubator-groovy git commit: Documentation: Update Javadoc to reflect actual behaviour of JsonSlurper with decimal numbers

pascalschumacher
Repository: incubator-groovy
Updated Branches:
  refs/heads/master 87988e101 -> 5ad18ced6


Documentation: Update Javadoc to reflect actual behaviour of JsonSlurper with decimal numbers


Project: http://git-wip-us.apache.org/repos/asf/incubator-groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-groovy/commit/5ad18ced
Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/5ad18ced
Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/5ad18ced

Branch: refs/heads/master
Commit: 5ad18ced6e0282dbb50e878dec65c5e0645c6c5a
Parents: 87988e1
Author: Alex Spurling <[hidden email]>
Authored: Fri Apr 17 12:15:30 2015 +0100
Committer: pascalschumacher <[hidden email]>
Committed: Sat Apr 18 10:44:40 2015 +0200

----------------------------------------------------------------------
 .../groovy-json/src/main/java/groovy/json/JsonToken.java     | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/5ad18ced/subprojects/groovy-json/src/main/java/groovy/json/JsonToken.java
----------------------------------------------------------------------
diff --git a/subprojects/groovy-json/src/main/java/groovy/json/JsonToken.java b/subprojects/groovy-json/src/main/java/groovy/json/JsonToken.java
index e6eb262..7bd92c7 100644
--- a/subprojects/groovy-json/src/main/java/groovy/json/JsonToken.java
+++ b/subprojects/groovy-json/src/main/java/groovy/json/JsonToken.java
@@ -35,10 +35,6 @@ public class JsonToken {
     private static final BigInteger MIN_LONG    = BigInteger.valueOf(Long.MIN_VALUE);
     private static final BigInteger MAX_INTEGER = BigInteger.valueOf(Integer.MAX_VALUE);
     private static final BigInteger MIN_INTEGER = BigInteger.valueOf(Integer.MIN_VALUE);
-    private static final BigDecimal MAX_DOUBLE  = new BigDecimal(String.valueOf(Double.MAX_VALUE));
-    private static final BigDecimal MIN_DOUBLE  = MAX_DOUBLE.negate();
-    private static final BigDecimal MAX_FLOAT   = new BigDecimal(String.valueOf(Float.MAX_VALUE));
-    private static final BigDecimal MIN_FLOAT   = MAX_FLOAT.negate();
 
     /** Start line position */
     private long startLine;
@@ -57,8 +53,8 @@ public class JsonToken {
 
     /**
      * Return the value represented by this token (ie. a number, a string, a boolean or null).
-     * For numbers, the most appropriate type is returned (Float, Double, BigDecimal for decimal numbers,
-     * and Integer, Long and BigInteger for integral numbers).
+     * For numbers, BigDecimal is returned for decimals and Integer, Long or BigInteger for
+     * integral numbers.
      *
      * @return the represented value
      */


Loading...