Remove concepts.(Checked)Builder 35/98935/5
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 10 Dec 2021 06:38:41 +0000 (07:38 +0100)
committerRobert Varga <nite@hq.sk>
Sat, 23 Apr 2022 11:53:50 +0000 (11:53 +0000)
The Builder concept has been deprecated in yangtools-8.0.0, remove
it now.

JIRA: YANGTOOLS-1322
Change-Id: Ie4b06fbd6f81cffb1967c73b13842b032cbb4d78
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
common/concepts/src/main/java/org/opendaylight/yangtools/concepts/Builder.java [deleted file]
common/concepts/src/main/java/org/opendaylight/yangtools/concepts/CheckedBuilder.java [deleted file]

diff --git a/common/concepts/src/main/java/org/opendaylight/yangtools/concepts/Builder.java b/common/concepts/src/main/java/org/opendaylight/yangtools/concepts/Builder.java
deleted file mode 100644 (file)
index feec797..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * Copyright (c) 2013 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.yangtools.concepts;
-
-/**
- * Builder object which produces a product.
- *
- * @param <P> Product of builder
- * @author Tony Tkacik &lt;ttkacik@cisco.com&gt;
- * @deprecated This is an over-arching concept whose {@link #build()} method hides caller hierarchy. Users are advised
- *             to migrate away, either without a replacement interface, or with a proper domain-specific interface.
- */
-@Deprecated(since = "8.0.0", forRemoval = true)
-public interface Builder<P> extends CheckedBuilder<P, IllegalArgumentException> {
-    @Override
-    P build();
-}
diff --git a/common/concepts/src/main/java/org/opendaylight/yangtools/concepts/CheckedBuilder.java b/common/concepts/src/main/java/org/opendaylight/yangtools/concepts/CheckedBuilder.java
deleted file mode 100644 (file)
index 511decf..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Copyright (c) 2018 Pantheon Technologies, s.r.o. 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.yangtools.concepts;
-
-import org.eclipse.jdt.annotation.NonNull;
-
-/**
- * Builder object which produces a product.
- *
- * @param <P> Product of builder
- * @deprecated This is an over-arching concept whose {@link #build()} method hides caller hierarchy. Users are advised
- *             to migrate away, either without a replacement interface, or with a proper domain-specific interface.
- */
-@Deprecated(since = "8.0.0", forRemoval = true)
-public interface CheckedBuilder<P, E extends Exception> extends Mutable {
-    /**
-     * Returns instance of the product. Multiple calls to this method are not required to return same instance if
-     * the state of the builder has changed.
-     *
-     * @return A newly-built instance
-     * @throws E if the builder's state is not sufficiently initialized
-     */
-    @NonNull P build() throws E;
-}