1818package org .msgpack .util .json ;
1919
2020import java .io .IOException ;
21- import java .io .EOFException ;
2221import java .io .InputStream ;
2322import java .io .Reader ;
2423import java .io .InputStreamReader ;
25- import java .io .StringReader ;
2624import java .util .List ;
2725import java .util .Map ;
2826import java .util .Iterator ;
29- import java .math .BigInteger ;
3027import org .json .simple .parser .JSONParser ;
3128import org .json .simple .parser .ParseException ;
32- //import org.msgpack.io.Input;
33- //import org.msgpack.io.StreamInput;
3429import org .msgpack .MessagePack ;
35- import org .msgpack .MessageTypeException ;
36- import org .msgpack .unpacker .Unpacker ;
3730import org .msgpack .unpacker .Converter ;
3831import org .msgpack .type .Value ;
3932import org .msgpack .type .ValueFactory ;
@@ -69,6 +62,7 @@ protected Value nextValue() throws IOException {
6962 }
7063 }
7164
65+ @ SuppressWarnings ("rawtypes" )
7266 private Value objectToValue (Object obj ) {
7367 if (obj instanceof String ) {
7468 return ValueFactory .createRawValue ((String )obj );
@@ -89,6 +83,7 @@ private Value objectToValue(Object obj) {
8983 }
9084 }
9185
86+ @ SuppressWarnings ("rawtypes" )
9287 private Value listToValue (List list ) {
9388 Value [] array = new Value [list .size ()];
9489 for (int i =0 ; i < array .length ; i ++) {
@@ -97,6 +92,7 @@ private Value listToValue(List list) {
9792 return ValueFactory .createArrayValue (array , true );
9893 }
9994
95+ @ SuppressWarnings ({ "unchecked" , "rawtypes" })
10096 private Value mapToValue (Map map ) {
10197 Value [] kvs = new Value [map .size ()*2 ];
10298 Iterator <Map .Entry > it = map .entrySet ().iterator ();
0 commit comments