diff --git a/jOOQ/src/main/java/org/jooq/Context.java b/jOOQ/src/main/java/org/jooq/Context.java index 65f92d31c3..7fb09e7ceb 100644 --- a/jOOQ/src/main/java/org/jooq/Context.java +++ b/jOOQ/src/main/java/org/jooq/Context.java @@ -343,10 +343,12 @@ public interface Context> extends Scope { C scopeRegister(QueryPart part, boolean forceNew, QueryPart mapped); /** - * Retrieve the registered mapping for a query part in the current scope, or - * null if no such mapping exists. + * Retrieve the registered mapping for a query part in the current scope. + *

+ * If no such mapping exists, the argument {@link QueryPart} itself is + * returned. */ - @Nullable + @NotNull QueryPart scopeMapping(QueryPart part); /**