import com.google.common.annotations.Beta;
import com.google.common.base.Preconditions;
-import javax.annotation.Nonnull;
+import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.mdsal.eos.common.api.GenericEntity;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.core.general.entity.rev150930.EntityKey;
import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
* @param type the entity type
* @param id the entity id.
*/
- public Entity(@Nonnull final String type, @Nonnull final InstanceIdentifier<?> id) {
+ public Entity(final @NonNull String type, final @NonNull InstanceIdentifier<?> id) {
super(type, id);
}
* @param type the type of the entity
* @param entityName the name of the entity used to construct a general-entity InstanceIdentifier
*/
- public Entity(@Nonnull String type, @Nonnull String entityName) {
+ public Entity(final @NonNull String type, final @NonNull String entityName) {
super(type, InstanceIdentifier.builder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang
.mdsal.core.general.entity.rev150930.Entity.class,
new EntityKey(Preconditions.checkNotNull(entityName, "entityName should not be null"))).build());