Make fields immutable (final) where possible
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user