[jOOQ/jOOQ#11056] Updated annotations to reflect status quo

This commit is contained in:
Lukas Eder 2020-12-01 12:49:57 +01:00
parent a7812c8fac
commit 4c4c0ebcb2
2 changed files with 9 additions and 9 deletions

View File

@ -81,7 +81,7 @@ public interface Parser {
* @param sql The SQL string
* @throws ParserException If the SQL string could not be parsed.
*/
@NotNull
@Nullable
@Support
@PlainSQL
Query parseQuery(String sql) throws ParserException;
@ -93,7 +93,7 @@ public interface Parser {
* @param bindings The bind variables
* @throws ParserException If the SQL string could not be parsed.
*/
@NotNull
@Nullable
@Support
@PlainSQL
Query parseQuery(String sql, Object... bindings) throws ParserException;
@ -104,7 +104,7 @@ public interface Parser {
* @param sql The SQL string
* @throws ParserException If the SQL string could not be parsed.
*/
@NotNull
@Nullable
@Support
@PlainSQL
Statement parseStatement(String sql) throws ParserException;
@ -116,7 +116,7 @@ public interface Parser {
* @param bindings The bind variables
* @throws ParserException If the SQL string could not be parsed.
*/
@NotNull
@Nullable
@Support
@PlainSQL
Statement parseStatement(String sql, Object... bindings) throws ParserException;
@ -156,7 +156,7 @@ public interface Parser {
* @param sql The SQL string
* @throws ParserException If the SQL string could not be parsed.
*/
@NotNull
@Nullable
@Support
@PlainSQL
ResultQuery<?> parseResultQuery(String sql) throws ParserException;
@ -168,7 +168,7 @@ public interface Parser {
* @param bindings The bind variables
* @throws ParserException If the SQL string could not be parsed.
*/
@NotNull
@Nullable
@Support
@PlainSQL
ResultQuery<?> parseResultQuery(String sql, Object... bindings) throws ParserException;
@ -179,7 +179,7 @@ public interface Parser {
* @param sql The SQL string
* @throws ParserException If the SQL string could not be parsed.
*/
@NotNull
@Nullable
@Support
@PlainSQL
Select<?> parseSelect(String sql) throws ParserException;
@ -191,7 +191,7 @@ public interface Parser {
* @param bindings The bind variables
* @throws ParserException If the SQL string could not be parsed.
*/
@NotNull
@Nullable
@Support
@PlainSQL
Select<?> parseSelect(String sql, Object... bindings) throws ParserException;

View File

@ -12174,7 +12174,7 @@ final class ParserContext {
this.locale = parseLocale(dsl.settings());
this.meta = meta;
this.metaLookups = metaLookups;
this.sql = sqlString.toCharArray();
this.sql = sqlString != null ? sqlString.toCharArray() : new char[0];
this.bindings = bindings;
}