Skip to content

Commit a0058a1

Browse files
committed
fixes DynamoTableUtils
1 parent 1db10e9 commit a0058a1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

dynamodb-driver/src/main/java/org/jnosql/diana/dynamodb/DynamoTableUtils.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,17 +95,17 @@ public static Map<String, ScalarAttributeType> createAttributesType() {
9595

9696
public static void manageTables(String tableName, DynamoDbClient client, Long readCapacityUnits, Long writeCapacityUnit) {
9797

98-
boolean more_tables = true;
99-
String last_name = null;
98+
boolean hasTable = true;
99+
String lastName = null;
100100

101-
while (more_tables) {
101+
while (hasTable) {
102102
try {
103103
ListTablesResponse response = null;
104-
if (last_name == null) {
104+
if (lastName == null) {
105105
ListTablesRequest request = ListTablesRequest.builder().build();
106106
response = client.listTables(request);
107107
} else {
108-
ListTablesRequest request = ListTablesRequest.builder().exclusiveStartTableName(last_name).build();
108+
ListTablesRequest request = ListTablesRequest.builder().exclusiveStartTableName(lastName).build();
109109
response = client.listTables(request);
110110
}
111111

@@ -114,9 +114,9 @@ public static void manageTables(String tableName, DynamoDbClient client, Long re
114114
if (table_names.size() == 0) {
115115
createTable(tableName, client, readCapacityUnits, writeCapacityUnit);
116116
} else {
117-
last_name = response.lastEvaluatedTableName();
118-
if (last_name == null) {
119-
more_tables = false;
117+
lastName = response.lastEvaluatedTableName();
118+
if (lastName == null) {
119+
hasTable = false;
120120
}
121121
}
122122
} catch (DynamoDbException e) {

0 commit comments

Comments
 (0)