- @Override
- @Deprecated
- public Object toSerializable() {
- return PersistentMessages.Modification.newBuilder().setType(this.getClass().toString())
- .setPath(InstanceIdentifierUtils.toSerializable(getPath())).build();
- }
-
- @Deprecated
- public static DeleteModification fromSerializable(Object serializable) {
- PersistentMessages.Modification o = (PersistentMessages.Modification) serializable;
- return new DeleteModification(InstanceIdentifierUtils.fromSerializable(o.getPath()));
- }
-
- public static DeleteModification fromStream(ObjectInput in) throws ClassNotFoundException, IOException {
- DeleteModification mod = new DeleteModification();
+ public static DeleteModification fromStream(ObjectInput in, short version)
+ throws ClassNotFoundException, IOException {
+ DeleteModification mod = new DeleteModification(version);