mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
external system: unmodifiable children view list should be transient
This commit is contained in:
+7
-1
@@ -45,7 +45,7 @@ public class DataNode<T> implements Serializable {
|
||||
private static final Logger LOG = Logger.getInstance(DataNode.class);
|
||||
|
||||
@NotNull private final List<DataNode<?>> myChildren = ContainerUtilRt.newArrayList();
|
||||
@NotNull private final List<DataNode<?>> myChildrenView = Collections.unmodifiableList(myChildren);
|
||||
@NotNull private transient List<DataNode<?>> myChildrenView = Collections.unmodifiableList(myChildren);
|
||||
|
||||
@NotNull private final Key<T> myKey;
|
||||
private transient T myData;
|
||||
@@ -241,6 +241,12 @@ public class DataNode<T> implements Serializable {
|
||||
out.defaultWriteObject();
|
||||
}
|
||||
|
||||
private void readObject(ObjectInputStream in)
|
||||
throws IOException, ClassNotFoundException {
|
||||
in.defaultReadObject();
|
||||
myChildrenView = Collections.unmodifiableList(myChildren);
|
||||
}
|
||||
|
||||
public byte[] getDataBytes() throws IOException {
|
||||
if (myRawData != null) return myRawData;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user