Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
assignment-1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package 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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
YUE SONG
assignment-1
Commits
00d8d192
Commit
00d8d192
authored
3 years ago
by
Tim Miller
Browse files
Options
Downloads
Patches
Plain Diff
BUGFIX: Make sure that ADMIN account is initialised correctly.
parent
4ec7f52e
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
programs/original/swen90006/fotbot/FotBot.java
+2
-1
2 additions, 1 deletion
programs/original/swen90006/fotbot/FotBot.java
with
2 additions
and
1 deletion
programs/original/swen90006/fotbot/FotBot.java
+
2
−
1
View file @
00d8d192
...
@@ -56,6 +56,7 @@ public class FotBot
...
@@ -56,6 +56,7 @@ public class FotBot
* Constructs a new FotBot server with no users
* Constructs a new FotBot server with no users
*/
*/
public
FotBot
()
public
FotBot
()
throws
DuplicateUserException
,
InvalidUsernameException
,
InvalidPasswordException
{
{
passwords
=
new
HashMap
<
String
,
String
>();
passwords
=
new
HashMap
<
String
,
String
>();
stepData
=
new
HashMap
<
String
,
List
<
Integer
>>();
stepData
=
new
HashMap
<
String
,
List
<
Integer
>>();
...
@@ -63,7 +64,7 @@ public class FotBot
...
@@ -63,7 +64,7 @@ public class FotBot
friends
=
new
HashMap
<
String
,
Set
<
String
>>();
friends
=
new
HashMap
<
String
,
Set
<
String
>>();
currentDay
=
new
Date
(
1
,
1
,
2021
);
currentDay
=
new
Date
(
1
,
1
,
2021
);
passwords
.
put
(
ADMIN_USERNAME
,
ADMIN_PASSWORD
);
this
.
register
(
ADMIN_USERNAME
,
ADMIN_PASSWORD
);
}
}
/**
/**
...
...
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