We are invoking these methods from anonymous subclasses, hence
keeping them private forces redirection via synthetic accessors:
at org.opendaylight.controller.cluster.datastore.FrontendReadWriteTransaction.successfulDirectCanCommit
at org.opendaylight.controller.cluster.datastore.FrontendReadWriteTransaction.access$300
at org.opendaylight.controller.cluster.datastore.FrontendReadWriteTransaction$5.onSuccess
This patch makes the methods package-private, which will eliminate
the accessor, improving the stack trace.
Change-Id: Idbd803c43d7ed7333fc392a17edaf61c9721d76f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit
abe229278329771993cc6ae09eef2a0a7afc2598)
- private void successfulDirectCanCommit(final RequestEnvelope envelope, final long startTime) {
+ void successfulDirectCanCommit(final RequestEnvelope envelope, final long startTime) {
readyCohort.preCommit(new FutureCallback<DataTreeCandidate>() {
@Override
public void onSuccess(final DataTreeCandidate result) {
readyCohort.preCommit(new FutureCallback<DataTreeCandidate>() {
@Override
public void onSuccess(final DataTreeCandidate result) {
- private void successfulDirectPreCommit(final RequestEnvelope envelope, final long startTime) {
+ void successfulDirectPreCommit(final RequestEnvelope envelope, final long startTime) {
readyCohort.commit(new FutureCallback<UnsignedLong>() {
@Override
public void onSuccess(final UnsignedLong result) {
readyCohort.commit(new FutureCallback<UnsignedLong>() {
@Override
public void onSuccess(final UnsignedLong result) {
- private void successfulCommit(final RequestEnvelope envelope, final long startTime) {
+ void successfulCommit(final RequestEnvelope envelope, final long startTime) {
recordAndSendSuccess(envelope, startTime, new TransactionCommitSuccess(readyCohort.getIdentifier(),
envelope.getMessage().getSequence()));
readyCohort = null;
recordAndSendSuccess(envelope, startTime, new TransactionCommitSuccess(readyCohort.getIdentifier(),
envelope.getMessage().getSequence()));
readyCohort = null;