Skip to content

Commit 0e910f5

Browse files
authored
Fixes javadoc comment.
This method already has a snippet. It was manually changed to put under <code> block instead of @code in #2208 due to javadoc bug https://bugs.openjdk.java.net/browse/JDK-8130754 When I reran the add snippets tool to add the snippets for a different method, it did not detect the existing snippet on readWriteTransaction and again added the same snippet under @code block which fails. My change removes the duplicate snippet but next time we add a new spanner snippet, we will again run into this issue. Ideally we should fix the add snippet tool to handle this case.
1 parent 25f6594 commit 0e910f5

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

google-cloud-spanner/src/main/java/com/google/cloud/spanner/DatabaseClient.java

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -237,26 +237,6 @@ public interface DatabaseClient {
237237
* });
238238
* </code></pre>
239239
*
240-
* <p>Example of a read write transaction.
241-
* <pre> {@code
242-
* long singerId = my_singer_id;
243-
* TransactionRunner runner = dbClient.readWriteTransaction();
244-
* runner.run(
245-
* new TransactionCallable<Void>() {
246-
*
247-
* @Override
248-
* public Void run(TransactionContext transaction) throws Exception {
249-
* String column = "FirstName";
250-
* Struct row =
251-
* transaction.readRow("Singers", Key.of(singerId), Collections.singleton(column));
252-
* String name = row.getString(column);
253-
* transaction.buffer(
254-
* Mutation.newUpdateBuilder("Singers").set(column).to(name.toUpperCase()).build());
255-
* return null;
256-
* }
257-
* });
258-
* }</pre>
259-
*
260240
*/
261241
TransactionRunner readWriteTransaction();
262242

0 commit comments

Comments
 (0)