Quantcast
Channel: Mobile - Couchbase Forums
Viewing all articles
Browse latest Browse all 1117

Expression.isNullOrMissing documents that Expression.isValued is the replacement, when it should be Expression.isNotValued

$
0
0

Here is the documentation for the now deprecated Expression.isNullOrMissing:

/**
 * Creates an IS NULL OR MISSING expression that evaluates whether or not the current
 * expression is null or missing.
 *
 * @return An IS NULL expression.
 * @deprecated use Expression.isValued
 */
@Deprecated
@SuppressWarnings("PMD.LinguisticNaming")
@NonNull
public Expression isNullOrMissing() {
    return new UnaryExpression(this, UnaryExpression.OpType.Null)
        .or(new UnaryExpression(this, UnaryExpression.OpType.Missing));
}

Expression.isNotValued is the proper function to replace this. Most of the documentation can do some improvement instead of just paraphrasing the function name IMO.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 1117

Trending Articles