mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
removed isReadAccessAllowed() calls on each executeOnPooledThread() to reduce number of Reader objects allocated
This commit is contained in:
@@ -328,7 +328,6 @@ public class ApplicationImpl extends PlatformComponentManagerImpl implements App
|
||||
return ourThreadExecutorsService.submit(new Callable<T>() {
|
||||
@Override
|
||||
public T call() {
|
||||
assert !isReadAccessAllowed() : describe(Thread.currentThread());
|
||||
try {
|
||||
return action.call();
|
||||
}
|
||||
@@ -340,7 +339,6 @@ public class ApplicationImpl extends PlatformComponentManagerImpl implements App
|
||||
}
|
||||
finally {
|
||||
Thread.interrupted(); // reset interrupted status
|
||||
assert !isReadAccessAllowed() : describe(Thread.currentThread());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user