X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=common%2Fconcepts%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fconcepts%2FBuilder.java;h=feec797b0711aa40a8d173e8ae9c858ad84f19f8;hb=db8732c024c02cadb7814149fe23fab85533944b;hp=e33eca895665bf15b2bbf8922fababb07caf3e94;hpb=c6ad58834b6c00f7612496418bdfd53bc63dcfda;p=yangtools.git 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 index e33eca8956..feec797b07 100644 --- a/common/concepts/src/main/java/org/opendaylight/yangtools/concepts/Builder.java +++ b/common/concepts/src/main/java/org/opendaylight/yangtools/concepts/Builder.java @@ -11,16 +11,12 @@ 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. */ -public interface Builder

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 IllegalStateException if the builder's state is not sufficiently initialized - */ +@Deprecated(since = "8.0.0", forRemoval = true) +public interface Builder

extends CheckedBuilder { + @Override P build(); }