Skip to content

Commit eb9d37f

Browse files
committed
Deprecate optionally() in favor of the new guard syntax
1 parent ec1233a commit eb9d37f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mug-guava/src/main/java/com/google/mu/safesql/SafeSql.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ public static SafeSql nonNegativeLiteral(int number) {
469469
* SafeSql.optionally("WHERE {filter}", getOptionalWhereClause()));
470470
* }</pre>
471471
*
472-
* @deprecated Use {@code SafeSql.of("{foo? -> OR foo?}", optionalFoo)} intead of
472+
* @deprecated Use {@code SafeSql.of("{foo? -> OR foo?}", optionalFoo)} instead of
473473
* {@code optionally("or {foo}", optionalFoo)} because the former allows
474474
* you to reference {@code foo?} multiple times in the right hand side snippet.
475475
*/

0 commit comments

Comments
 (0)