Skip to content

Commit

Permalink
refactor: add missing final var
Browse files Browse the repository at this point in the history
  • Loading branch information
songyi00 committed Feb 10, 2024
1 parent 52f2395 commit 8a12de8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public record SectorRatioResponse(
String sectorName,
Double sectorRatio
) {
public static List<SectorRatioResponse> fromMap(Map<Sector, Double> sectorRatioMap) {
public static List<SectorRatioResponse> fromMap(final Map<Sector, Double> sectorRatioMap) {
return sectorRatioMap.entrySet()
.stream()
.map(entry -> new SectorRatioResponse(entry.getKey().getName(), entry.getValue()))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public Stock(
this.volume = volume;
}

private void validateTicker(String ticker) {
private void validateTicker(final String ticker) {
if (ticker.isBlank()) {
throw new IllegalArgumentException("ticker must not be null or empty");
}
Expand Down

0 comments on commit 8a12de8

Please sign in to comment.