Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/pr/PullRequestAdapter.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/pr/PullRequestAdapter.java b/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/pr/PullRequestAdapter.java
index c2a64015..81fa8fee 100644
--- a/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/pr/PullRequestAdapter.java
+++ b/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/pr/PullRequestAdapter.java
@@ -28,17 +28,16 @@ public class PullRequestAdapter extends WorkbenchAdapter {
/**
* Create pull request adapter
- *
+ *
* @param request
*/
public PullRequestAdapter(PullRequestComposite request) {
- List<PullRequestCommitAdapter> prCommits = new ArrayList<PullRequestCommitAdapter>();
+ List<PullRequestCommitAdapter> prCommits = new ArrayList<>();
List<RepositoryCommit> requestCommits = request.getCommits();
if (requestCommits != null)
for (RepositoryCommit commit : requestCommits)
prCommits.add(new PullRequestCommitAdapter(commit));
- commits = prCommits.toArray(new PullRequestCommitAdapter[prCommits
- .size()]);
+ commits = prCommits.toArray(new PullRequestCommitAdapter[0]);
}
@Override

Back to the top