From: Robert Varga Date: Fri, 10 Dec 2021 06:38:41 +0000 (+0100) Subject: Remove concepts.(Checked)Builder X-Git-Tag: v9.0.0~129 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=yangtools.git;a=commitdiff_plain;h=85b43e277d2fc06997bda736ec2ca9fe8020e1ea Remove concepts.(Checked)Builder 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 --- 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 index feec797b07..0000000000 --- a/common/concepts/src/main/java/org/opendaylight/yangtools/concepts/Builder.java +++ /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

Product of builder - * @author Tony Tkacik <ttkacik@cisco.com> - * @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

extends CheckedBuilder { - @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 index 511decfdc4..0000000000 --- a/common/concepts/src/main/java/org/opendaylight/yangtools/concepts/CheckedBuilder.java +++ /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

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 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; -}