import java.io.IOException;
import java.net.URI;
import java.util.Iterator;
-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(@Nonnull final String prefix) {
+ protected Module moduleForPrefix(final String prefix) {
final Iterator<Module> modules = context.findModules(prefix).iterator();
return modules.hasNext() ? modules.next() : null;
}
@Override
- protected String prefixForNamespace(@Nonnull final URI namespace) {
+ protected String prefixForNamespace(final URI namespace) {
final Iterator<Module> modules = context.findModules(namespace).iterator();
return modules.hasNext() ? modules.next().getName() : null;
}
- @Nonnull
@Override
protected DataSchemaContextTree getDataContextTree() {
return dataContextTree;