mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
remove unneeded check...
This commit is contained in:
parent
afa0ab6226
commit
633e781204
@ -145,12 +145,7 @@ public final class ImmutableOpenMap<KType, VType> implements Iterable<ObjectObje
|
||||
}
|
||||
|
||||
public Builder(ImmutableOpenMap<KType, VType> map) {
|
||||
if (map == EMPTY) {
|
||||
// create a new instance if this is the shared EMPTY one
|
||||
this.map = new ObjectObjectOpenHashMap<KType, VType>();
|
||||
} else {
|
||||
this.map = map.map.clone();
|
||||
}
|
||||
this.map = map.map.clone();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user