|
1 | 1 | package decoder.java.util.List_java.lang; |
2 | | -public class String implements com.jsoniter.spi.Decoder { |
3 | | -public static Object decode_(com.jsoniter.JsonIterator iter) throws java.io.IOException { if (iter.readNull()) { return null; } |
| 2 | +public class Integer implements com.jsoniter.spi.Decoder { |
| 3 | +public static java.lang.Object decode_(com.jsoniter.JsonIterator iter) throws java.io.IOException { if (iter.readNull()) { return null; } |
4 | 4 | java.util.ArrayList col = (java.util.ArrayList)com.jsoniter.CodegenAccess.resetExistingObject(iter); |
5 | 5 | if (!com.jsoniter.CodegenAccess.readArrayStart(iter)) { |
6 | 6 | return col == null ? new java.util.ArrayList(0): (java.util.ArrayList)com.jsoniter.CodegenAccess.reuseCollection(col); |
7 | 7 | } |
8 | | -Object a1 = iter.readString(); |
| 8 | +Object a1 = java.lang.Integer.valueOf(iter.readInt()); |
9 | 9 | if (com.jsoniter.CodegenAccess.nextToken(iter) != ',') { |
10 | 10 | java.util.ArrayList obj = col == null ? new java.util.ArrayList(1): (java.util.ArrayList)com.jsoniter.CodegenAccess.reuseCollection(col); |
11 | 11 | obj.add(a1); |
12 | 12 | return obj; |
13 | 13 | } |
14 | | -Object a2 = iter.readString(); |
| 14 | +Object a2 = java.lang.Integer.valueOf(iter.readInt()); |
15 | 15 | if (com.jsoniter.CodegenAccess.nextToken(iter) != ',') { |
16 | 16 | java.util.ArrayList obj = col == null ? new java.util.ArrayList(2): (java.util.ArrayList)com.jsoniter.CodegenAccess.reuseCollection(col); |
17 | 17 | obj.add(a1); |
18 | 18 | obj.add(a2); |
19 | 19 | return obj; |
20 | 20 | } |
21 | | -Object a3 = iter.readString(); |
| 21 | +Object a3 = java.lang.Integer.valueOf(iter.readInt()); |
22 | 22 | if (com.jsoniter.CodegenAccess.nextToken(iter) != ',') { |
23 | 23 | java.util.ArrayList obj = col == null ? new java.util.ArrayList(3): (java.util.ArrayList)com.jsoniter.CodegenAccess.reuseCollection(col); |
24 | 24 | obj.add(a1); |
25 | 25 | obj.add(a2); |
26 | 26 | obj.add(a3); |
27 | 27 | return obj; |
28 | 28 | } |
29 | | -Object a4 = iter.readString(); |
| 29 | +Object a4 = java.lang.Integer.valueOf(iter.readInt()); |
30 | 30 | java.util.ArrayList obj = col == null ? new java.util.ArrayList(8): (java.util.ArrayList)com.jsoniter.CodegenAccess.reuseCollection(col); |
31 | 31 | obj.add(a1); |
32 | 32 | obj.add(a2); |
33 | 33 | obj.add(a3); |
34 | 34 | obj.add(a4); |
35 | 35 | while (com.jsoniter.CodegenAccess.nextToken(iter) == ',') { |
36 | | -obj.add(iter.readString()); |
| 36 | +obj.add(java.lang.Integer.valueOf(iter.readInt())); |
37 | 37 | } |
38 | 38 | return obj; |
39 | | -}public Object decode(com.jsoniter.JsonIterator iter) throws java.io.IOException { |
| 39 | +}public java.lang.Object decode(com.jsoniter.JsonIterator iter) throws java.io.IOException { |
40 | 40 | return decode_(iter); |
41 | 41 | } |
42 | 42 | } |
0 commit comments