Skip to content
Snippets Groups Projects
Commit b66c50e6 authored by Andreas's avatar Andreas
Browse files

Renamed duplicate methods, and removed FileHandlingBudget class

parent c79f4134
No related branches found
No related tags found
1 merge request!21Add Javadoc to GeneralBudget, and reworked method addBudget
Pipeline #212344 passed
......@@ -112,7 +112,7 @@ public class GeneralBudget {
}
}
public void addToBudgetBudgetItem(double budgetAmount, String description, ExpenseCategory category) {
public void addToBudget(double budgetAmount, String description, ExpenseCategory category) {
if ((totalSum() + budgetAmount) > maxAmount) {
throw new IllegalArgumentException("Amount to be added goes over the max value of the budget");
}
......
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