Fixup checkstyle
[controller.git] / opendaylight / md-sal / cds-access-api / src / main / java / org / opendaylight / controller / cluster / access / commands / ModifyTransactionSuccessProxyV1.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.controller.cluster.access.commands;
9
10 import org.opendaylight.controller.cluster.access.concepts.TransactionIdentifier;
11
12 /**
13  * Externalizable proxy for use with {@link ModifyTransactionSuccess}. It implements the initial (Boron) serialization
14  * format.
15  *
16  * @author Robert Varga
17  */
18 final class ModifyTransactionSuccessProxyV1 extends AbstractTransactionSuccessProxy<ModifyTransactionSuccess> {
19     private static final long serialVersionUID = 1L;
20
21     // checkstyle flags the public modifier as redundant however it is explicitly needed for Java serialization to
22     // be able to create instances via reflection.
23     @SuppressWarnings("checkstyle:RedundantModifier")
24     public ModifyTransactionSuccessProxyV1() {
25         // For Externalizable
26     }
27
28     ModifyTransactionSuccessProxyV1(final ModifyTransactionSuccess success) {
29         super(success);
30     }
31
32     @Override
33     protected ModifyTransactionSuccess createSuccess(final TransactionIdentifier target, final long sequence) {
34         return new ModifyTransactionSuccess(target, sequence);
35     }
36 }