doc the use of mapbuilder

This commit is contained in:
kimchy 2010-09-23 20:06:42 +02:00
parent 097071a9d2
commit 31fd196687
1 changed files with 1 additions and 0 deletions

View File

@ -51,6 +51,7 @@ public abstract class AbstractFsBlobContainer extends AbstractBlobContainer {
if (files == null || files.length == 0) {
return ImmutableMap.of();
}
// using MapBuilder and not ImmutableMap.Builder as it seems like File#listFiles might return duplicate files!
MapBuilder<String, BlobMetaData> builder = MapBuilder.newMapBuilder();
for (File file : files) {
if (file.isFile()) {