Deprecate all MD-SAL APIs
[controller.git] / opendaylight / md-sal / sal-common-api / src / main / java / org / opendaylight / controller / md / sal / common / api / data / OptimisticLockFailedException.java
index 5ddec6b1edfcec9c76425d8587bc989abf3d897f..163d6b2edccd3d8190ead796513b1e82495647c0 100644 (file)
@@ -1,22 +1,33 @@
+/*
+ * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+
 package org.opendaylight.controller.md.sal.common.api.data;
 
-import org.opendaylight.yangtools.yang.common.RpcResultBuilder;
 import org.opendaylight.yangtools.yang.common.RpcError.ErrorType;
+import org.opendaylight.yangtools.yang.common.RpcResultBuilder;
 
 /**
-*
 * Failure of asynchronous transaction commit caused by failure
 * of optimistic locking.
 *
+* <p>
 * This exception is raised and returned when transaction commit
 * failed, because other transaction finished successfully
 * and modified same data as failed transaction.
 *
+* <p>
 *  Clients may recover from this error condition by
 *  retrieving current state and submitting new updated
 *  transaction.
 *
+ * @deprecated Use {@link org.opendaylight.mdsal.common.api.OptimisticLockFailedException} instead.
 */
+@Deprecated
 public class OptimisticLockFailedException extends TransactionCommitFailedException {
 
     private static final long serialVersionUID = 1L;
@@ -29,5 +40,4 @@ public class OptimisticLockFailedException extends TransactionCommitFailedExcept
     public OptimisticLockFailedException(final String message) {
         this(message, null);
     }
-
 }