Skip to content

Commit

Permalink
Remove SafeQuery.of(String) after all
Browse files Browse the repository at this point in the history
  • Loading branch information
fluentfuture committed Nov 10, 2024
1 parent 7ea73ae commit 129c16b
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions mug-guava/src/main/java/com/google/mu/safesql/SafeQuery.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,6 @@ private SafeQuery(String query) {
this.query = query;
}

/** Returns a query using a constant query. */
@TemplateFormatMethod
public static SafeQuery of(@CompileTimeConstant @TemplateString String query) {
checkArgument(
anyOf("{}").matchesNoneOf(query),
"curly braces are reserved for template placeholders: %s", query);
return new SafeQuery(query);
}

/** Returns a query using a constant query template filled with {@code args}. */
@SuppressWarnings("StringFormatArgsCheck") // protected by @TemplateFormatMethod
@TemplateFormatMethod
Expand Down

0 comments on commit 129c16b

Please sign in to comment.