Skip to content

Commit 768e54b

Browse files
committed
Deleted code that was left in (commented out) following the api upgrade.
1 parent f22d91e commit 768e54b

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/net/foxopen/jira/changelog/JiraAPI.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import com.atlassian.jira.rest.client.JiraRestClient;
1212
import com.atlassian.jira.rest.client.JiraRestClientFactory;
1313
import com.atlassian.jira.rest.client.ProjectRestClient;
14-
//import com.atlassian.jira.rest.client.NullProgressMonitor;
1514
import com.atlassian.jira.rest.client.RestClientException;
1615
import com.atlassian.jira.rest.client.domain.BasicIssue;
1716
import com.atlassian.jira.rest.client.domain.Issue;
@@ -93,17 +92,14 @@ public void fetchVersionDetails(String projectKey, String versionLabel) {
9392
try {
9493
// Create the initial JIRA connection.
9594
Logger.log("Establishing JIRA API connection for generating changelog to " + jiraServerURI_ + ".");
96-
// final JerseyJiraRestClientFactory factory = new JerseyJirasRestClientFactory();
9795
JiraRestClientFactory factory = new AsynchronousJiraRestClientFactory();
9896
final JiraRestClient restClient = factory.createWithBasicHttpAuthentication(jiraServerURI_, username_, password_);
99-
// final NullProgressMonitor pm = new NullProgressMonitor();
10097

10198
// Get an instance of the JIRA Project
10299
Logger.log("Obtaining project information via JIRA API.");
103100
ProjectRestClient projectClient = restClient.getProjectClient();
104101
Promise<Project> promise = projectClient.getProject(projectKey);
105102
Project proj = promise.claim();
106-
// Project proj = restClient.getProjectClient().getProject(projectKey, pm);
107103

108104
// Get a list of versions for this project and identify the one were
109105
// currently trying to build.
@@ -152,8 +148,6 @@ public void fetchVersionDetails(String projectKey, String versionLabel) {
152148
try {
153149
Promise<SearchResult> searchJql = restClient.getSearchClient().searchJql("project = '" + projectKey + "' and fixVersion = '" + v.getName() + "'" + jql_);
154150
sr = searchJql.claim();
155-
// sr = restClient.getSearchClient().searchJql("project = '" + projectKey + "' and fixVersion = '" + v.getName() + "'" + jql_);
156-
// sr = restClient.getSearchClient().searchJql("project = '" + projectKey + "' and fixVersion = '" + v.getName() + "'" + jql_, pm);
157151

158152
for (BasicIssue bi : sr.getIssues()) {
159153
Logger.log("Obtaining further issue details for issue '" + bi.getKey() + "' via JIRA API.");
@@ -265,4 +259,4 @@ public int compare(VersionInfo a, VersionInfo b) {
265259
return -(a.getName().compareTo(b.getName()));
266260
}
267261
}
268-
}
262+
}

0 commit comments

Comments
 (0)