Skip to content

Commit

Permalink
use int instead of Integer (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbusche authored May 21, 2023
1 parent aa80a31 commit 0bd31da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/trap/model/TeamScore.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
@AllArgsConstructor
public class TeamScore {
String name;
Integer total;
int total;
}
4 changes: 2 additions & 2 deletions src/main/java/trap/report/ExcelHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public static void addCleanData(Row row, RoundScore rowData) {
cell.setCellValue(rowData.getType());
}

public static void addTeamData(Row row, int startColumn, String team, Integer total, CellStyle mainTextStyle) {
public static void addTeamData(Row row, int startColumn, String team, int total, CellStyle mainTextStyle) {
Cell cell = row.createCell(startColumn);
cell.setCellValue(team);
cell.setCellStyle(mainTextStyle);
Expand All @@ -122,7 +122,7 @@ public static void addTeamData(Row row, int startColumn, String team, Integer to
cell.setCellStyle(mainTextStyle);
}

public static void addPlayerData(Row row, int column, String athlete, Integer total, String team, CellStyle mainTextStyle) {
public static void addPlayerData(Row row, int column, String athlete, int total, String team, CellStyle mainTextStyle) {
if (row != null) {
Cell cell = row.createCell(column);
cell.setCellValue(athlete);
Expand Down

0 comments on commit 0bd31da

Please sign in to comment.