Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
SWEN90006-A1-2019
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lin Fan
SWEN90006-A1-2019
Commits
d44e52ff
Commit
d44e52ff
authored
5 years ago
by
Lin Fan
Browse files
Options
Downloads
Patches
Plain Diff
Update PassBook.java
parent
5cac2ade
Branches
master
No related tags found
No related merge requests found
Pipeline
#6252
failed
5 years ago
Stage: check_elig
Stage: validate_tests
Stage: validate_progs
Stage: submit
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
programs/mutant-4/swen90006/passbook/PassBook.java
+2
-2
2 additions, 2 deletions
programs/mutant-4/swen90006/passbook/PassBook.java
with
2 additions
and
2 deletions
programs/mutant-4/swen90006/passbook/PassBook.java
+
2
−
2
View file @
d44e52ff
...
...
@@ -39,7 +39,7 @@ public class PassBook
public
final
static
int
MINIMUM_PASSPHRASE_LENGTH
=
8
;
/** Valid URL protocols for the passbook */
public
final
static
String
[]
VALID_URL_PROTOCOLS
=
{
"http"
,
"https"
};
public
final
static
String
[]
VALID_URL_PROTOCOLS
=
{
"http"
,
"https"
,
"ftp"
};
//The passphrases (master passwords) for all users
private
Map
<
String
,
String
>
passphrases
;
...
...
@@ -250,7 +250,7 @@ public class PassBook
Pair
<
String
,
String
>
pair
=
pt
.
get
(
url
);
//if this returned nothing, the user does not have a login for this url
if
(
p
t
==
null
)
{
if
(
p
air
==
null
)
{
throw
new
NoSuchURLException
(
passbookUsername
,
url
);
}
...
...
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