emanuelteixeira / google-gson

Automatically exported from code.google.com/p/google-gson
0 stars 0 forks source link

number double or integer #525

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
com.google.gson.internal.bind.ObjectTypeAdapter
line 78;

    case NUMBER:
      double tmp = in.nextDouble();
      if(tmp>Math.floor(tmp))
          return tmp;
      else
          return new Double(tmp).intValue();

Original issue reported on code.google.com by sunju...@gmail.com on 20 Jun 2013 at 6:59