@@ -35,7 +35,7 @@ class Codegen {
35
35
add (HashSet .class );
36
36
add (Vector .class );
37
37
}};
38
- static volatile Map <String , Decoder > cache = new HashMap <>();
38
+ static volatile Map <String , Decoder > cache = new HashMap <String , Decoder >();
39
39
static ClassPool pool = ClassPool .getDefault ();
40
40
41
41
static Decoder getDecoder (String cacheKey , Type type , Type ... typeArgs ) {
@@ -152,25 +152,25 @@ private static String genNative(Class clazz) {
152
152
}
153
153
154
154
public static void addNewDecoder (String cacheKey , Decoder decoder ) {
155
- HashMap <String , Decoder > newCache = new HashMap <>(cache );
155
+ HashMap <String , Decoder > newCache = new HashMap <String , Decoder >(cache );
156
156
newCache .put (cacheKey , decoder );
157
157
cache = newCache ;
158
158
}
159
159
160
160
private static String genObject (Class clazz , String cacheKey ) {
161
- Map <Integer , Object > map = new HashMap <>();
161
+ Map <Integer , Object > map = new HashMap <Integer , Object >();
162
162
for (Field field : clazz .getFields ()) {
163
163
byte [] fieldName = field .getName ().getBytes ();
164
164
Map <Byte , Object > current = (Map <Byte , Object >) map .get (fieldName .length );
165
165
if (current == null ) {
166
- current = new HashMap <>();
166
+ current = new HashMap <Byte , Object >();
167
167
map .put (fieldName .length , current );
168
168
}
169
169
for (int i = 0 ; i < fieldName .length - 1 ; i ++) {
170
170
byte b = fieldName [i ];
171
171
Map <Byte , Object > next = (Map <Byte , Object >) current .get (b );
172
172
if (next == null ) {
173
- next = new HashMap <>();
173
+ next = new HashMap <Byte , Object >();
174
174
current .put (b , next );
175
175
}
176
176
current = next ;
0 commit comments