From 99586f2d67c2d8fa0c66e829ce048c64d9262d91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Einar=20Sk=C3=B8ien?= Date: Mon, 9 Feb 2026 13:46:41 +0100 Subject: [PATCH] Format code according to checkstyle --- .../idi/idatt2003/gruppe42/Model/Stock.java | 36 +++++++++++-------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/src/main/java/edu/ntnu/idi/idatt2003/gruppe42/Model/Stock.java b/src/main/java/edu/ntnu/idi/idatt2003/gruppe42/Model/Stock.java index 81f15fc..b818084 100644 --- a/src/main/java/edu/ntnu/idi/idatt2003/gruppe42/Model/Stock.java +++ b/src/main/java/edu/ntnu/idi/idatt2003/gruppe42/Model/Stock.java @@ -4,21 +4,29 @@ import java.util.List; public class Stock { - private String symbol; - private String company; - private List prices; - public Stock(String symbol, String company, List prices) { - this.symbol = symbol; - this.company = company; - this.prices = prices; - } - public String getSymbol() {return symbol;} - public String getCompany() {return company;} - public List getSalesPrices() {return prices;} - public void addNewSalesPrices(List prices) { - this.prices = prices; - } + private final String symbol; + private final String company; + private List prices; + public Stock(String symbol, String company, List prices) { + this.symbol = symbol; + this.company = company; + this.prices = prices; + } + public String getSymbol() { + return symbol; + } + public String getCompany() { + return company; + } + + public List getSalesPrices() { + return prices; + } + + public void addNewSalesPrices(List prices) { + this.prices = prices; + } }