提交 d37203db 编写于 作者: A attila

8043605: Enable history for empty property maps

Reviewed-by: jlaskey, sundar
上级 6cce3a0d
......@@ -651,13 +651,11 @@ public final class PropertyMap implements Iterable<Object> {
* @param newMap Modified {@link PropertyMap}.
*/
private void addToHistory(final Property property, final PropertyMap newMap) {
if (!properties.isEmpty()) {
if (history == null) {
history = new WeakHashMap<>();
}
history.put(property, new SoftReference<>(newMap));
if (history == null) {
history = new WeakHashMap<>();
}
history.put(property, new SoftReference<>(newMap));
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册