mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
using SmartList for small lists
This commit is contained in:
@@ -429,7 +429,7 @@ public class BuildManager implements ApplicationComponent{
|
||||
}
|
||||
|
||||
private void runAutoMake() {
|
||||
final List<RequestFuture> futures = new ArrayList<RequestFuture>();
|
||||
final List<RequestFuture> futures = new SmartList<RequestFuture>();
|
||||
for (final Project project : getActiveProjects()) {
|
||||
if (!canStartAutoMake(project)) {
|
||||
continue;
|
||||
@@ -482,7 +482,7 @@ public class BuildManager implements ApplicationComponent{
|
||||
}
|
||||
|
||||
public Collection<RequestFuture> cancelAutoMakeTasks(Project project) {
|
||||
final Collection<RequestFuture> futures = new ArrayList<RequestFuture>();
|
||||
final Collection<RequestFuture> futures = new SmartList<RequestFuture>();
|
||||
synchronized (myAutomakeFutures) {
|
||||
for (Map.Entry<RequestFuture, Project> entry : myAutomakeFutures.entrySet()) {
|
||||
if (entry.getValue().equals(project)) {
|
||||
|
||||
Reference in New Issue
Block a user