[ISSUE ##7131] replaced with lambda (#7136)
* can be replaced with lambda * can be replaced with <>
This commit is contained in:
parent
70f7c5674e
commit
72bbd24c88
@ -284,9 +284,7 @@ public class CacheData {
|
|||||||
name, dataId, group, md5, listener);
|
name, dataId, group, md5, listener);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Runnable job = new Runnable() {
|
Runnable job = () -> {
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
long start = System.currentTimeMillis();
|
long start = System.currentTimeMillis();
|
||||||
ClassLoader myClassLoader = Thread.currentThread().getContextClassLoader();
|
ClassLoader myClassLoader = Thread.currentThread().getContextClassLoader();
|
||||||
ClassLoader appClassLoader = listener.getClass().getClassLoader();
|
ClassLoader appClassLoader = listener.getClass().getClassLoader();
|
||||||
@ -332,7 +330,6 @@ public class CacheData {
|
|||||||
listenerWrap.inNotifying = false;
|
listenerWrap.inNotifying = false;
|
||||||
Thread.currentThread().setContextClassLoader(myClassLoader);
|
Thread.currentThread().setContextClassLoader(myClassLoader);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
final long startNotify = System.currentTimeMillis();
|
final long startNotify = System.currentTimeMillis();
|
||||||
@ -396,7 +393,7 @@ public class CacheData {
|
|||||||
this.dataId = dataId;
|
this.dataId = dataId;
|
||||||
this.group = group;
|
this.group = group;
|
||||||
this.tenant = TenantUtil.getUserTenantForAcm();
|
this.tenant = TenantUtil.getUserTenantForAcm();
|
||||||
listeners = new CopyOnWriteArrayList<ManagerListenerWrap>();
|
listeners = new CopyOnWriteArrayList<>();
|
||||||
this.isInitializing = true;
|
this.isInitializing = true;
|
||||||
this.content = loadCacheContentFromDiskLocal(name, dataId, group, tenant);
|
this.content = loadCacheContentFromDiskLocal(name, dataId, group, tenant);
|
||||||
this.md5 = getMd5String(content);
|
this.md5 = getMd5String(content);
|
||||||
@ -413,7 +410,7 @@ public class CacheData {
|
|||||||
this.dataId = dataId;
|
this.dataId = dataId;
|
||||||
this.group = group;
|
this.group = group;
|
||||||
this.tenant = tenant;
|
this.tenant = tenant;
|
||||||
listeners = new CopyOnWriteArrayList<ManagerListenerWrap>();
|
listeners = new CopyOnWriteArrayList<>();
|
||||||
this.isInitializing = true;
|
this.isInitializing = true;
|
||||||
this.content = loadCacheContentFromDiskLocal(name, dataId, group, tenant);
|
this.content = loadCacheContentFromDiskLocal(name, dataId, group, tenant);
|
||||||
this.md5 = getMd5String(content);
|
this.md5 = getMd5String(content);
|
||||||
|
Loading…
Reference in New Issue
Block a user