import java.util.Objects;
import org.opendaylight.yangtools.yang.common.QNameModule;
-import org.opendaylight.yangtools.yang.common.SimpleDateFormatUtil;
import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.BelongsToStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.SubmoduleStatement;
final QNameModule belongsToModuleQName = ctx.getFromNamespace(ModuleNameToModuleQName.class,
belongsToModuleName);
final RevisionEffectiveStatementImpl submoduleRevision = firstEffective(RevisionEffectiveStatementImpl.class);
- this.qnameModule = (submoduleRevision == null
- ? QNameModule.create(belongsToModuleQName.getNamespace(), SimpleDateFormatUtil.DEFAULT_DATE_REV)
- : QNameModule.create(belongsToModuleQName.getNamespace(), submoduleRevision.argument()))
- .intern();
+ this.qnameModule = QNameModule.create(belongsToModuleQName.getNamespace(),
+ submoduleRevision == null ? null : submoduleRevision.argument()).intern();
}
@Override