Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
idatt1002_2023_9
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andreas Kluge Svendsrud
idatt1002_2023_9
Commits
b66c50e6
Commit
b66c50e6
authored
1 year ago
by
Andreas
Browse files
Options
Downloads
Patches
Plain Diff
Renamed duplicate methods, and removed FileHandlingBudget class
parent
c79f4134
Branches
issue-13-gpx
Branches containing commit
No related tags found
1 merge request
!21
Add Javadoc to GeneralBudget, and reworked method addBudget
Pipeline
#212344
passed with stages
in 1 minute and 43 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/no/ntnu/idatt1002/demo/data/Budget/GeneralBudget.java
+1
-1
1 addition, 1 deletion
...ava/no/ntnu/idatt1002/demo/data/Budget/GeneralBudget.java
with
1 addition
and
1 deletion
src/main/java/no/ntnu/idatt1002/demo/data/Budget/GeneralBudget.java
+
1
−
1
View file @
b66c50e6
...
...
@@ -112,7 +112,7 @@ public class GeneralBudget {
}
}
public
void
addToBudget
BudgetItem
(
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"
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment