Skip to content

Commit 69954cc

Browse files
Collections.enforceValueClass()
1 parent 8ee0ccc commit 69954cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

laboratory/src/org/labkey/laboratory/assay/AssayHelper.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import org.labkey.api.assay.AssayService;
3030
import org.labkey.api.cache.CacheManager;
3131
import org.labkey.api.collections.CaseInsensitiveHashMap;
32+
import org.labkey.api.collections.CollectionUtils;
3233
import org.labkey.api.data.Container;
3334
import org.labkey.api.data.ContainerManager;
3435
import org.labkey.api.data.RuntimeSQLException;
@@ -112,7 +113,7 @@ public Map<String, FileLike> saveResultsFile(List<Map<String, Object>> results,
112113
throw new ExperimentException(e.getMessage());
113114
}
114115

115-
Map<String, FileLike> files = new HashMap<String, FileLike>();
116+
Map<String, FileLike> files = CollectionUtils.enforceValueClass(new HashMap<>(),FileLike.class);
116117
files.put(AssayDataCollector.PRIMARY_FILE, FileSystemLike.wrapFile(newFile));
117118
return files;
118119
}

0 commit comments

Comments
 (0)