Skip to content

Commit

Permalink
use better javadoc for template()
Browse files Browse the repository at this point in the history
  • Loading branch information
fluentfuture committed Nov 10, 2024
1 parent a513944 commit 900fe90
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mug-guava/src/main/java/com/google/mu/safesql/SafeSql.java
Original file line number Diff line number Diff line change
Expand Up @@ -497,9 +497,8 @@ private boolean lookbehind(String leftPattern, Substring.Match placeholder) {
placeholders
.peek(SafeSql::checkMisuse)
.forEachOrdered(new SqlWriter()::writePlaceholder);
builder.appendSql(texts.pop());
checkState(texts.isEmpty());
return builder.build();
checkState(texts.size() == 1);
return builder.appendSql(texts.pop()).build();
});
}

Expand Down

0 comments on commit 900fe90

Please # to comment.