private void commitVersionCheck(ObjectVersionID vUid, ObjectVersionID precedingVUid) { if (versionCount() > 0 && !hasVersionID(precedingVUid)) { throw new IllegalArgumentException("precedingVersionID not found"); } if(!vUid.objectID().equals(this.uid.root())) { throw new IllegalArgumentException("ownerID different from versionedObject"); } }
private void commitVersionCheck(ObjectVersionID vUid, ObjectVersionID precedingVUid) { if (versionCount() > 0 && !hasVersionID(precedingVUid)) { throw new IllegalArgumentException("precedingVersionID not found"); } if(!vUid.objectID().equals(this.uid.root())) { throw new IllegalArgumentException("ownerID different from versionedObject"); } }