This is a trivial use of @Nonnull, migrate it over to @NonNull.
Change-Id: Ie2167fa3574441fbb859b4ea5c56fdefe3b1b264
JIRA: YANGTOOLS-907
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
import com.google.common.annotations.Beta;
import java.util.Collection;
-import javax.annotation.Nonnull;
import org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement;
/**
@Beta
public interface ActionStatementAwareDeclaredStatement<A> extends DeclaredStatement<A>, ActionStatementContainer {
@Override
- default @Nonnull Collection<? extends ActionStatement> getActions() {
+ default Collection<? extends ActionStatement> getActions() {
return declaredSubstatements(ActionStatement.class);
}
}
import com.google.common.annotations.Beta;
import java.util.Collection;
-import javax.annotation.Nonnull;
+import org.eclipse.jdt.annotation.NonNull;
/**
* Statement which can contain action statements.
*
* @return collection of action statements
*/
- @Nonnull Collection<? extends ActionStatement> getActions();
+ @NonNull Collection<? extends ActionStatement> getActions();
}