Skip to content

Commit 8984821

Browse files
Fix checkstyle violations
1 parent f7bcb62 commit 8984821

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

samples/snippets/src/main/java/com/example/spanner/SpannerSample.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1575,21 +1575,21 @@ static void isolationLevelSetting(DatabaseId db) {
15751575
.readWriteTransaction(Options.isolationLevel(IsolationLevel.REPEATABLE_READ))
15761576
.run(transaction -> {
15771577
// Read an AlbumTitle.
1578-
String select_sql =
1578+
String selectSql =
15791579
"SELECT AlbumTitle from Albums WHERE SingerId = 1 and AlbumId = 1";
1580-
ResultSet resultSet = transaction.executeQuery(Statement.of(select_sql));
1580+
ResultSet resultSet = transaction.executeQuery(Statement.of(selectSql));
15811581
String title = null;
15821582
while (resultSet.next()) {
15831583
title = resultSet.getString("AlbumTitle");
15841584
}
15851585
System.out.printf("Current album title: %s\n", title);
15861586

15871587
// Update the title.
1588-
String update_sql =
1588+
String updateSql =
15891589
"UPDATE Albums "
15901590
+ "SET AlbumTitle = 'New Album Title' "
15911591
+ "WHERE SingerId = 1 and AlbumId = 1";
1592-
long rowCount = transaction.executeUpdate(Statement.of(update_sql));
1592+
long rowCount = transaction.executeUpdate(Statement.of(updateSql));
15931593
System.out.printf("%d record updated.\n", rowCount);
15941594
return null;
15951595
});

0 commit comments

Comments
 (0)