Make fields immutable (final) where possible

This commit is contained in:
René Scheibe
2022-06-08 16:13:03 +02:00
committed by GitHub
parent 9f4428153c
commit 80af14a2e6
40 changed files with 80 additions and 84 deletions

View File

@@ -23,9 +23,9 @@ import java.math.BigDecimal;
*/
public class Quote {
private String ticker;
private final String ticker;
private BigDecimal price;
private final BigDecimal price;
public Quote(String ticker, BigDecimal price) {
this.ticker = ticker;