]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/util/ConsistsOfProcess.java
Fixed yet another fallout bug caused by commit b9b77f42
[simantics/platform.git] / bundles / org.simantics.db.layer0 / src / org / simantics / db / layer0 / util / ConsistsOfProcess.java
index 4124add429dd76d4ae2756a6b3e0404e0d214f01..691f8864c94c7e89630ff3e5de840fa92a41aaac 100644 (file)
@@ -35,7 +35,7 @@ class ConsistsOfProcess {
 
        public static Pair<List<ConsistsOfProcessEntry>,Set<Resource>> walk(ReadGraph graph, ResourceMap<ExtentStatus> status, Collection<SeedSpec> specs, boolean ignoreVirtual) throws DatabaseException {
                
-               Collection<ConsistsOfProcessEntry> entries = new ArrayList<>();
+               Collection<ConsistsOfProcessEntry> entries = new ArrayList<>(specs.size());
                for(SeedSpec r : specs) {
                        if(SeedSpecType.INTERNAL.equals(r.specType))
                            entries.add(new ConsistsOfProcessEntry(null, r.resource, true));