Deprecate MappingCheckedFuture 24/74824/2
authorRobert Varga <robert.varga@pantheon.tech>
Sat, 4 Aug 2018 00:55:20 +0000 (02:55 +0200)
committerRobert Varga <nite@hq.sk>
Sat, 4 Aug 2018 20:38:29 +0000 (20:38 +0000)
CheckedFutures are not used anywhere in MD-SAL, this class is moved
to Controller.

JIRA: MDSAL-229
Change-Id: I5ce538edca4c902cc38b8aad0457927563f2f8b8
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
common/mdsal-common-api/src/main/java/org/opendaylight/mdsal/common/api/MappingCheckedFuture.java
common/mdsal-common-api/src/test/java/org/opendaylight/mdsal/common/api/MappingCheckedFutureTest.java

index 56afe83d031a9501fc82ef22a62cac9369356401..89a669f43baa672cfbe46641c93b04adce11c933 100644 (file)
@@ -5,7 +5,6 @@
  * 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.mdsal.common.api;
 
 import static java.util.Objects.requireNonNull;
@@ -33,7 +32,9 @@ import javax.annotation.Nonnull;
  *
  * @param <V> The result type returned by this Future's get method
  * @param <X> The checked exception type
+ * @deprecated Use {@code org.opendaylight.controller.md.sal.common.api.MappingCheckedFuture} instead.
  */
+@Deprecated
 public final class MappingCheckedFuture<V, X extends Exception> extends AbstractCheckedFuture<V, X> {
 
     private final Function<Exception, X> mapper;
index af5e8fba5405ae61126b0322c2fd7b51a27555ec..ae3b39a95fd154b3d287ae03ba0ab5f146fda035 100644 (file)
@@ -5,7 +5,6 @@
  * 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.mdsal.common.api;
 
 import static org.junit.Assert.assertEquals;
@@ -29,7 +28,9 @@ import org.opendaylight.yangtools.util.concurrent.ExceptionMapper;
  * Unit tests for MappingCheckedFuture.
  *
  * @author Thomas Pantelis
+ *
  */
+@Deprecated
 public class MappingCheckedFutureTest {
 
     interface FutureInvoker {