Toggle navigation
Home
boolean to java.util.Optional<org.apache.james.mailbox.model.MailboxACL>
No. of Instances - 2
No. of Commits - 1
No. of Projects - {'james-project'}
Hierarchy/Composition: -
Primitive Info: -
NameSpace: Jdk -> Jdk
Mapping:
Rename Method invocation
executor.executeReturnApplied(conditionalInsertStatement.bind().setUUID(CassandraACLTable.ID,cassandraId.asUuid()).setString(CassandraACLTable.ACL,MailboxACLJsonConverter.toJson(acl)))
to
executor.executeReturnApplied(conditionalInsertStatement.bind().setUUID(CassandraACLTable.ID,cassandraId.asUuid()).setString(CassandraACLTable.ACL,MailboxACLJsonConverter.toJson(acl))).thenApply(Optional::of).thenApply(optional -> optional.filter(b -> b).map(any -> acl))
executor.executeReturnApplied(conditionalUpdateStatement.bind().setUUID(CassandraACLTable.ID,cassandraId.asUuid()).setString(CassandraACLTable.ACL,MailboxACLJsonConverter.toJson(aclWithVersion.mailboxACL)).setLong(CassandraACLTable.VERSION,aclWithVersion.version + 1).setLong(OLD_VERSION,aclWithVersion.version))
to
executor.executeReturnApplied(conditionalUpdateStatement.bind().setUUID(CassandraACLTable.ID,cassandraId.asUuid()).setString(CassandraACLTable.ACL,MailboxACLJsonConverter.toJson(aclWithVersion.mailboxACL)).setLong(CassandraACLTable.VERSION,aclWithVersion.version + 1).setLong(OLD_VERSION,aclWithVersion.version)).thenApply(Optional::of).thenApply(optional -> optional.filter(b -> b).map(any -> aclWithVersion.mailboxACL))