Explicitly clone ID
This commit is contained in:
parent
3277f757d7
commit
688ccc9b45
@ -408,7 +408,8 @@ public abstract class RocketComponent implements ChangeSource, Cloneable, Iterab
|
|||||||
checkState();
|
checkState();
|
||||||
RocketComponent clone;
|
RocketComponent clone;
|
||||||
try {
|
try {
|
||||||
clone = (RocketComponent) this.clone();
|
clone = this.clone();
|
||||||
|
clone.id = this.id;
|
||||||
} catch (CloneNotSupportedException e) {
|
} catch (CloneNotSupportedException e) {
|
||||||
throw new BugException("CloneNotSupportedException encountered, report a bug!", e);
|
throw new BugException("CloneNotSupportedException encountered, report a bug!", e);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user