import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.net.URI;
+import javax.annotation.Nonnull;
import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
import org.opendaylight.yangtools.yang.data.util.AbstractModuleStringInstanceIdentifierCodec;
import org.opendaylight.yangtools.yang.data.util.DataSchemaContextTree;
}
@Override
- protected Module moduleForPrefix(final String prefix) {
+ protected Module moduleForPrefix(@Nonnull final String prefix) {
return context.findModuleByName(prefix, null);
}
@Override
- protected String prefixForNamespace(final URI namespace) {
+ protected String prefixForNamespace(@Nonnull final URI namespace) {
final Module module = context.findModuleByNamespaceAndRevision(namespace, null);
return module == null ? null : module.getName();
}
+ @Nonnull
@Override
protected DataSchemaContextTree getDataContextTree() {
return dataContextTree;