enjoy 3.5

This commit is contained in:
James
2018-08-12 12:15:01 +08:00
parent 3e89651aa4
commit 1ce7068072
16 changed files with 183 additions and 95 deletions

View File

@@ -18,13 +18,14 @@ package com.jfinal.template.expr.ast;
import java.lang.reflect.Field;
import java.util.HashMap;
import com.jfinal.kit.SyncWriteMap;
/**
* FieldKit
*/
public class FieldKit {
private static final HashMap<Long, Object> fieldCache = new HashMap<Long, Object>();
private static final HashMap<Long, Object> fieldCache = new SyncWriteMap<Long, Object>(512, 0.5F);
public static Field getField(Long key, Class<?> targetClass, String fieldName) {
Object field = fieldCache.get(key);