diff --git a/mug-guava/src/main/java/com/google/mu/safesql/GoogleSql.java b/mug-guava/src/main/java/com/google/mu/safesql/GoogleSql.java
index 600e95b109..a3155eb27b 100644
--- a/mug-guava/src/main/java/com/google/mu/safesql/GoogleSql.java
+++ b/mug-guava/src/main/java/com/google/mu/safesql/GoogleSql.java
@@ -23,9 +23,11 @@ public final class GoogleSql {
/**
- * Similar to {@link SafeQuery#template}, except {@link Instant} are translated to `TIMESTAMP()` GoogleSql function,
- * {@link ZonedDateTime} are translated to `DTETIME()` GoogleSql function, and {@link LocalDate} are translated
- * to `DATE()` GoogleSql function.
+ * Much like {@link SafeQuery#template}, but with additional GoogleSQL translation rules.
+ *
+ *
Specifically, {@link Instant} are translated to `TIMESTAMP()` GoogleSql function,
+ * {@link ZonedDateTime} are translated to `DATETIME()` GoogleSql function,
+ * and {@link LocalDate} are translated to `DATE()` GoogleSql function.
*/
public static StringFormat.To template(@CompileTimeConstant String formatString) {
return SafeQuery.template(formatString, value -> {
diff --git a/mug-guava/src/main/java/com/google/mu/safesql/SafeQuery.java b/mug-guava/src/main/java/com/google/mu/safesql/SafeQuery.java
index 88cc20bd43..9d7a429cc5 100644
--- a/mug-guava/src/main/java/com/google/mu/safesql/SafeQuery.java
+++ b/mug-guava/src/main/java/com/google/mu/safesql/SafeQuery.java
@@ -132,7 +132,8 @@ static StringFormat.To template(
placeholders
.collect(
new StringBuilder(),
- (b, p, v) -> b.append(it.next()).append(fillInPlaceholder(p, v, defaultConverter)))
+ (b, p, v) ->
+ b.append(it.next()).append(fillInPlaceholder(p, v, defaultConverter)))
.append(it.next())
.toString());
});
@@ -158,7 +159,7 @@ public int hashCode() {
}
private static String fillInPlaceholder(
- Substring.Match placeholder, Object value, Function