Skip to content

Commit

Permalink
Fix excel export (#50)
Browse files Browse the repository at this point in the history
* fix: revert sonarlint suggestions

(cherry picked from commit 77f0154)
  • Loading branch information
f-necas committed Oct 30, 2024
1 parent 5440897 commit 90b64eb
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public StreamingRow newRow() {
if (null == lastRow) {
lastRow = new StreamingRow(1, sheetWriter, this);
} else {
lastRow.nextRow();
lastRow = lastRow.nextRow();
}
return lastRow;
}
Expand Down Expand Up @@ -192,15 +192,15 @@ private static class ColumnNames {
private int index = 0;

public String nextColumn() {
StringBuilder colName = new StringBuilder();
String colName = "";
int n = ++index;

while (n > 0) {
int i = (n - 1) % letters.size();
colName.append(letters.get(i)).append(colName);
colName = letters.get(i) + colName;
n = (n - 1) / letters.size();
}
return colName.append(rowNum).toString();
return colName + rowNum;
}
}
}

0 comments on commit 90b64eb

Please sign in to comment.