Skip to content
Snippets Groups Projects
Commit 7ebbcae4 authored by Harry Linrui XU's avatar Harry Linrui XU
Browse files

Made variables final

parent f859e52f
No related branches found
No related tags found
1 merge request!58Dynamic daysleft
......@@ -13,7 +13,7 @@ import javafx.beans.property.SimpleObjectProperty;
*/
public class Income extends Item {
private ObjectProperty<IncomeCategory> category;
private final ObjectProperty<IncomeCategory> category;
/**
* This constructor uses the super constructor to set the fields for 'amount' and 'recurring' and
......
......@@ -213,7 +213,7 @@ public abstract class Item {
*/
@Override
public String toString() {
String isRecurring = "";
String isRecurring;
if (recurring.get()) {
isRecurring = "Recurring";
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment