Skip to content

Commit e320c20

Browse files
committed
downgrade to 1.6
1 parent f195f14 commit e320c20

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454
<artifactId>maven-compiler-plugin</artifactId>
5555
<version>2.5.1</version>
5656
<configuration>
57-
<source>1.7</source>
58-
<target>1.7</target>
57+
<source>1.6</source>
58+
<target>1.6</target>
5959
<encoding>UTF-8</encoding>
6060
</configuration>
6161
</plugin>

src/main/java/com/jsoniter/Codegen.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Codegen {
3535
add(HashSet.class);
3636
add(Vector.class);
3737
}};
38-
static volatile Map<String, Decoder> cache = new HashMap<>();
38+
static volatile Map<String, Decoder> cache = new HashMap<String, Decoder>();
3939
static ClassPool pool = ClassPool.getDefault();
4040

4141
static Decoder getDecoder(String cacheKey, Type type, Type... typeArgs) {
@@ -152,25 +152,25 @@ private static String genNative(Class clazz) {
152152
}
153153

154154
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);
156156
newCache.put(cacheKey, decoder);
157157
cache = newCache;
158158
}
159159

160160
private static String genObject(Class clazz, String cacheKey) {
161-
Map<Integer, Object> map = new HashMap<>();
161+
Map<Integer, Object> map = new HashMap<Integer, Object>();
162162
for (Field field : clazz.getFields()) {
163163
byte[] fieldName = field.getName().getBytes();
164164
Map<Byte, Object> current = (Map<Byte, Object>) map.get(fieldName.length);
165165
if (current == null) {
166-
current = new HashMap<>();
166+
current = new HashMap<Byte, Object>();
167167
map.put(fieldName.length, current);
168168
}
169169
for (int i = 0; i < fieldName.length - 1; i++) {
170170
byte b = fieldName[i];
171171
Map<Byte, Object> next = (Map<Byte, Object>) current.get(b);
172172
if (next == null) {
173-
next = new HashMap<>();
173+
next = new HashMap<Byte, Object>();
174174
current.put(b, next);
175175
}
176176
current = next;

0 commit comments

Comments
 (0)