changes based on code review
This commit is contained in:
parent
6af7e6545c
commit
ac57eb813e
@ -60,12 +60,12 @@ final class SpreadsheetSerializer implements TabularSerializer {
|
|||||||
|
|
||||||
Sheets.Spreadsheets.BatchUpdate request;
|
Sheets.Spreadsheets.BatchUpdate request;
|
||||||
try {
|
try {
|
||||||
logger.info("spreadsheetId: " + spreadsheetId);
|
logger.debug("spreadsheetId: " + spreadsheetId);
|
||||||
logger.info("requestBody:" + requestBody.toString());
|
logger.debug("requestBody:" + requestBody.toString());
|
||||||
request = service.spreadsheets().batchUpdate(spreadsheetId, requestBody);
|
request = service.spreadsheets().batchUpdate(spreadsheetId, requestBody);
|
||||||
|
|
||||||
BatchUpdateSpreadsheetResponse response = request.execute();
|
BatchUpdateSpreadsheetResponse response = request.execute();
|
||||||
logger.info("response:" + response.toPrettyString());
|
logger.debug("response:" + response.toPrettyString());
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
exceptions.add(e);
|
exceptions.add(e);
|
||||||
}
|
}
|
||||||
@ -77,7 +77,7 @@ final class SpreadsheetSerializer implements TabularSerializer {
|
|||||||
batchRequest = new Request();
|
batchRequest = new Request();
|
||||||
rows = new ArrayList<RowData>(BATCH_SIZE);
|
rows = new ArrayList<RowData>(BATCH_SIZE);
|
||||||
}
|
}
|
||||||
List<com.google.api.services.sheets.v4.model.CellData> cellDatas = new ArrayList<com.google.api.services.sheets.v4.model.CellData>();
|
List<com.google.api.services.sheets.v4.model.CellData> cellDatas = new ArrayList<>();
|
||||||
RowData rowData = new RowData();
|
RowData rowData = new RowData();
|
||||||
|
|
||||||
for (int c = 0; c < cells.size(); c++) {
|
for (int c = 0; c < cells.size(); c++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user