Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
SWEN90006-A1-2018
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
Model registry
Operate
Environments
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
Tim Miller
SWEN90006-A1-2018
Merge requests
!1
WIP: Master
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
WIP: Master
zlang/SWEN90006-A1-2018:master
into
master
Overview
0
Commits
17
Pipelines
0
Changes
1
Open
Zhuolun Lang
requested to merge
zlang/SWEN90006-A1-2018:master
into
master
6 years ago
Overview
0
Commits
17
Pipelines
0
Changes
1
Expand
Update xml
0
0
Merge request reports
Viewing commit
cc86db4d
Prev
Next
Show latest version
1 file
+
1
−
1
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
cc86db4d
Update Machine.java
· cc86db4d
Zhuolun Lang
authored
6 years ago
mutants/mutant-2/swen90006/machine/Machine.java
+
1
−
1
Options
@@ -106,7 +106,7 @@ public class Machine
@@ -106,7 +106,7 @@ public class Machine
private
int
parseReg
(
String
s
)
throws
InvalidInstructionException
private
int
parseReg
(
String
s
)
throws
InvalidInstructionException
{
{
if
(
s
.
length
()
<
2
){
if
(
s
.
length
()
<
3
){
throw
new
InvalidInstructionException
();
throw
new
InvalidInstructionException
();
}
}
if
(
s
.
charAt
(
0
)
!=
'r'
){
if
(
s
.
charAt
(
0
)
!=
'r'
){
Loading