Drop @Beta annotations, as the contracts here are sufficiently stable.
Change-Id: Id72dd37da28daf6c53d7ad7037dc2ed76c547a95
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
import static java.util.Objects.requireNonNull;
-import com.google.common.annotations.Beta;
import com.google.common.collect.ImmutableSet;
import java.util.HashSet;
import java.util.Set;
*
* @author Robert Varga
*/
-@Beta
@NonNullByDefault
public final class DeclaredStatementFormatter implements Immutable {
private static final DeclaredStatementFormatter DEFAULT = new DeclaredStatementFormatter(ImmutableSet.of(), true);
/**
* Builder class for instantiation of a customized {@link DeclaredStatementFormatter}.
*/
- @Beta
public static final class Builder implements Mutable {
private final Set<StatementDefinition> ignoredStatements = new HashSet<>(4);
private boolean retainDefaultStatements;
- Builder() {
-
+ private Builder() {
+ // Hidden on purpose
}
/**
import static org.eclipse.jdt.annotation.DefaultLocation.PARAMETER;
import static org.eclipse.jdt.annotation.DefaultLocation.RETURN_TYPE;
-import com.google.common.annotations.Beta;
import java.util.Iterator;
import java.util.Set;
import java.util.Spliterator;
*
* @author Robert Varga
*/
-@Beta
@NonNullByDefault({ PARAMETER, RETURN_TYPE })
public final class YangTextSnippet implements Immutable, Iterable<@NonNull String> {
private final Set<@NonNull StatementDefinition> ignoredStatements;
import static java.util.Objects.requireNonNull;
-import com.google.common.annotations.Beta;
import java.io.OutputStream;
import java.util.Optional;
import javax.xml.stream.XMLEventReader;
* @throws NullPointerException if any of of the parameters is null
* @throws XMLStreamException if an input-output error occurs
*/
- @Beta
public static void writeModuleAsYinText(final ModuleEffectiveStatement module, final OutputStream output)
throws XMLStreamException {
writeReaderToOutput(YinXMLEventReaderFactory.defaultInstance().createXMLEventReader(module), output);
* @throws NullPointerException if any of of the parameters is null
* @throws XMLStreamException if an input-output error occurs
*/
- @Beta
public static void writeSubmoduleAsYinText(final ModuleEffectiveStatement parentModule,
final SubmoduleEffectiveStatement submodule, final OutputStream output) throws XMLStreamException {
writeReaderToOutput(YinXMLEventReaderFactory.defaultInstance().createXMLEventReader(parentModule, submodule),
import static com.google.common.base.Preconditions.checkArgument;
import static java.util.Objects.requireNonNull;
-import com.google.common.annotations.Beta;
import javax.xml.stream.Location;
import javax.xml.stream.XMLEventFactory;
import javax.xml.stream.XMLEventReader;
* Factory for creating {@link XMLEventReader} instances reporting events equivalent to reading a YIN document defining
* a specified {@link ModuleEffectiveStatement}. This class is thread-safe.
*/
-@Beta
public final class YinXMLEventReaderFactory {
private static final Location DUMMY_LOCATION = new Location() {