This commit is contained in:
kamhung
2015-11-16 17:41:28 +08:00
parent 865289a1fc
commit 17a0b49c85

View File

@@ -95,7 +95,7 @@ public final class EntityInfo<T> {
synchronized (entityInfos) {
rs = entityInfos.get(clazz);
if (rs == null) {
rs = new EntityInfo(clazz, nodeid, cacheForbidden, fullloader);
rs = new EntityInfo(clazz, nodeid, cacheForbidden);
entityInfos.put(clazz, rs);
AutoLoad auto = clazz.getAnnotation(AutoLoad.class);
if (rs.cache != null && auto != null && auto.value() && fullloader != null) {
@@ -106,7 +106,7 @@ public final class EntityInfo<T> {
}
}
private EntityInfo(Class<T> type, int nodeid, final boolean cacheForbidden, Function<Class<T>, List<T>> fullloader) {
private EntityInfo(Class<T> type, int nodeid, final boolean cacheForbidden) {
this.type = type;
//---------------------------------------------
this.nodeid = nodeid;