|
5 | 5 | import com.jsoniter.ValueType; |
6 | 6 | import com.jsoniter.output.JsonStream; |
7 | 7 | import com.jsoniter.spi.Encoder; |
8 | | -import com.jsoniter.spi.JsoniterSpi; |
9 | 8 | import com.jsoniter.spi.TypeLiteral; |
10 | 9 |
|
11 | 10 | import java.io.IOException; |
@@ -34,7 +33,7 @@ public Any wrap(Object obj) { |
34 | 33 | JsonStream.registerNativeEncoder(IntAny.class, anyEncoder); |
35 | 34 | JsonStream.registerNativeEncoder(LongAny.class, anyEncoder); |
36 | 35 | JsonStream.registerNativeEncoder(NullAny.class, anyEncoder); |
37 | | - JsonStream.registerNativeEncoder(NumberLazyAny.class, anyEncoder); |
| 36 | + JsonStream.registerNativeEncoder(DoubleLazyAny.class, anyEncoder); |
38 | 37 | JsonStream.registerNativeEncoder(ObjectLazyAny.class, anyEncoder); |
39 | 38 | JsonStream.registerNativeEncoder(StringAny.class, anyEncoder); |
40 | 39 | JsonStream.registerNativeEncoder(StringLazyAny.class, anyEncoder); |
@@ -285,8 +284,12 @@ public static Any lazyString(byte[] data, int head, int tail) { |
285 | 284 | return new StringLazyAny(data, head, tail); |
286 | 285 | } |
287 | 286 |
|
288 | | - public static Any lazyNumber(byte[] data, int head, int tail) { |
289 | | - return new NumberLazyAny(data, head, tail); |
| 287 | + public static Any lazyDouble(byte[] data, int head, int tail) { |
| 288 | + return new DoubleLazyAny(data, head, tail); |
| 289 | + } |
| 290 | + |
| 291 | + public static Any lazyLong(byte[] data, int head, int tail) { |
| 292 | + return new LongLazyAny(data, head, tail); |
290 | 293 | } |
291 | 294 |
|
292 | 295 | public static Any lazyArray(byte[] data, int head, int tail) { |
|
0 commit comments