// No-op
break;
case WRITE:
- cursor.write(node.getIdentifier(), node.getDataAfter().get());
+ cursor.write(node.getIdentifier(), node.getDataAfter().orElseThrow());
break;
default:
throw new IllegalArgumentException("Unsupported modification " + node.getModificationType());
// No-op
break;
case WRITE:
- cursor.write(rootPath.getLastPathArgument(), node.getDataAfter().get());
+ cursor.write(rootPath.getLastPathArgument(), node.getDataAfter().orElseThrow());
break;
default:
throw new IllegalArgumentException("Unsupported modification " + node.getModificationType());
// No-op
break;
case WRITE:
- cursor.write(node.getIdentifier(), node.getDataAfter().get());
+ cursor.write(node.getIdentifier(), node.getDataAfter().orElseThrow());
break;
default:
throw new IllegalArgumentException("Unsupported modification " + node.getModificationType());