Fixed Parsing error
This commit is contained in:
parent
65cc8979c0
commit
b155fb5d92
|
@ -252,7 +252,7 @@ public class JsonUtil
|
|||
short[] data = new short[array.size()];
|
||||
for(int i = 0,m=data.length;i<m;i++)
|
||||
{
|
||||
data[i] = array.get(i).getAsByte();
|
||||
data[i] = array.get(i).getAsShort();
|
||||
}
|
||||
return data;
|
||||
}
|
||||
|
@ -262,7 +262,7 @@ public class JsonUtil
|
|||
int[] data = new int[array.size()];
|
||||
for(int i = 0,m=data.length;i<m;i++)
|
||||
{
|
||||
data[i] = array.get(i).getAsByte();
|
||||
data[i] = array.get(i).getAsInt();
|
||||
}
|
||||
return data;
|
||||
}
|
||||
|
@ -272,7 +272,7 @@ public class JsonUtil
|
|||
long[] data = new long[array.size()];
|
||||
for(int i = 0,m=data.length;i<m;i++)
|
||||
{
|
||||
data[i] = array.get(i).getAsByte();
|
||||
data[i] = array.get(i).getAsLong();
|
||||
}
|
||||
return data;
|
||||
}
|
||||
|
@ -292,7 +292,7 @@ public class JsonUtil
|
|||
double[] data = new double[array.size()];
|
||||
for(int i = 0,m=data.length;i<m;i++)
|
||||
{
|
||||
data[i] = array.get(i).getAsFloat();
|
||||
data[i] = array.get(i).getAsDouble();
|
||||
}
|
||||
return data;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue