1
0
Fork 0

Get outward issue instead of inward issue.

master
Kyle Chaplin 2013-09-19 20:03:48 -05:00
parent c70c708d0a
commit 7b27bcb9be
1 changed files with 5 additions and 5 deletions

View File

@ -30,7 +30,7 @@ import net.sf.json.JSONObject;
public final class IssueLink extends Resource {
private LinkType type = null;
private Issue inwardIssue = null;
private Issue outwardIssue = null;
/**
* Creates a issue link from a JSON payload.
@ -51,7 +51,7 @@ public final class IssueLink extends Resource {
self = Field.getString(map.get("self"));
id = Field.getString(map.get("id"));
type = Field.getResource(LinkType.class, map.get("type"), restclient);
inwardIssue = Field.getResource(Issue.class, map.get("inwardIssue"), restclient);
outwardIssue = Field.getResource(Issue.class, map.get("outwardIssue"), restclient);
}
/**
@ -97,15 +97,15 @@ public final class IssueLink extends Resource {
@Override
public String toString() {
return String.format("%s %s", getType().getInward(), getInwardIssue());
return String.format("%s %s", getType().getInward(), getOutwardIssue());
}
public LinkType getType() {
return type;
}
public Issue getInwardIssue() {
return inwardIssue;
public Issue getOutwardIssue() {
return outwardIssue;
}
}