This is just a reference to the argument, there is no point in
forcing implementations to deal with this.
Change-Id: I40cb0c349694f9fe9e224e4458fea2b2c05fa870
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
*/
package org.opendaylight.yangtools.yang.model.api.stmt;
+import static com.google.common.base.Verify.verifyNotNull;
+
import com.google.common.annotations.Beta;
import java.util.Set;
import java.util.function.Predicate;
* @return Predicate on a collection of QNames against which to evaluate
*/
@Beta
- @NonNull Predicate<Set<QName>> getIfFeaturePredicate();
+ default @NonNull Predicate<Set<QName>> getIfFeaturePredicate() {
+ // FIXME: YANGTOOLS-908: verifyNotNull() should not be needed here
+ return verifyNotNull(argument());
+ }
}
*/
package org.opendaylight.yangtools.yang.parser.rfc7950.stmt.if_feature;
-import static com.google.common.base.Verify.verifyNotNull;
-
import java.util.Set;
import java.util.function.Predicate;
import org.opendaylight.yangtools.yang.common.QName;
IfFeatureStatementImpl(final StmtContext<Predicate<Set<QName>>, IfFeatureStatement, ?> context) {
super(context);
}
-
- @Override
- public Predicate<Set<QName>> getIfFeaturePredicate() {
- // FIXME: YANGTOOLS-908: verifyNotNull() should not be needed here
- return verifyNotNull(argument());
- }
}