Skip to content

Commit

Permalink
chore: #81 Make fields final when they can be final (found by the…
Browse files Browse the repository at this point in the history
… corresponding inspection).
  • Loading branch information
dmitry-weirdo committed Nov 22, 2024
1 parent 2e76770 commit 7aa1fdd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

public class VocabularyTopByBestSpeedExcelTemplate extends ExcelTemplate<PlayerVocabularyDto> {

private String sheetName;
private final String sheetName;

public VocabularyTopByBestSpeedExcelTemplate(final String sheetName) {
this.sheetName = sheetName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

public class VocabularyTopByHaulExcelTemplate extends ExcelTemplate<PlayerVocabularyDto> {

private String sheetName;
private final String sheetName;

public VocabularyTopByHaulExcelTemplate(final String sheetName) {
this.sheetName = sheetName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

public class VocabularyTopByRacesCountExcelTemplate extends ExcelTemplate<PlayerVocabularyDto> {

private String sheetName;
private final String sheetName;

public VocabularyTopByRacesCountExcelTemplate(final String sheetName) {
this.sheetName = sheetName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class DatabaseImporter {
// todo: autowire it, @see https://mapstruct.org/documentation/stable/reference/html/#using-dependency-injection
private final PlayerVocabularyStatsMapper statsMapper = Mappers.getMapper(PlayerVocabularyStatsMapper.class);

private List<PlayerEntity> playersBatch = new ArrayList<>(); // todo: find a nicer solution
private final List<PlayerEntity> playersBatch = new ArrayList<>(); // todo: find a nicer solution

public void importJsonToDatabase(final Config config) {
// todo: move all related logic to a separate Spring component
Expand Down

0 comments on commit 7aa1fdd

Please sign in to comment.