Ensure profile results are immutable after serialization

This commit is contained in:
Zachary Tong 2015-12-18 14:59:16 -05:00
parent 10dfa32f9d
commit 41139c6b15
1 changed files with 2 additions and 1 deletions

View File

@ -62,8 +62,9 @@ public final class InternalProfileShardResults implements Writeable<InternalProf
ProfileShardResult result = new ProfileShardResult(in);
shardResult.add(result);
}
shardResults.put(key, shardResult);
shardResults.put(key, Collections.unmodifiableList(shardResult));
}
shardResults = Collections.unmodifiableMap(shardResults);
}
public Map<String, List<ProfileShardResult>> getShardResults() {