diff options
author | Michael Keppler | 2018-10-18 18:04:17 +0000 |
---|---|---|
committer | Michael Keppler | 2018-10-18 18:04:17 +0000 |
commit | 88bb9c3ef10601e7820c3e1fc337994ea986d3cd (patch) | |
tree | 2595d13649d0c1f3103fe9025ba63a0fc597329c /org.eclipse.egit.github.core | |
parent | 319c8ef33f07ec09b34585c3e970fa9d01269676 (diff) | |
download | egit-github-88bb9c3ef10601e7820c3e1fc337994ea986d3cd.tar.gz egit-github-88bb9c3ef10601e7820c3e1fc337994ea986d3cd.tar.xz egit-github-88bb9c3ef10601e7820c3e1fc337994ea986d3cd.zip |
[releng] Fix all boxing/unboxing warnings
Make all type conversions with an Eclipse compiler warning explicit.
Change-Id: I3eb1f57c1a556a17cc4dd15b58fa394ce641721c
Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
Diffstat (limited to 'org.eclipse.egit.github.core')
2 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service/DataService.java b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service/DataService.java index 439b12ec..2be89508 100644 --- a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service/DataService.java +++ b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service/DataService.java @@ -332,7 +332,7 @@ public class DataService extends GitHubService { Map<String, Object> params = new HashMap<>(); params.put("sha", object.getSha()); //$NON-NLS-1$ if (force) - params.put("force", true); //$NON-NLS-1$ + params.put("force", Boolean.TRUE); //$NON-NLS-1$ return client.post(uri.toString(), params, Reference.class); } diff --git a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service/PullRequestService.java b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service/PullRequestService.java index 41f4b275..7c69150f 100644 --- a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service/PullRequestService.java +++ b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service/PullRequestService.java @@ -271,7 +271,7 @@ public class PullRequestService extends GitHubService { uri.append('/').append(id); uri.append(SEGMENT_PULLS); Map<String, Object> params = new HashMap<>(); - params.put("issue", issueId); //$NON-NLS-1$ + params.put("issue", Integer.valueOf(issueId)); //$NON-NLS-1$ params.put("head", head); //$NON-NLS-1$ params.put("base", base); //$NON-NLS-1$ return client.post(uri.toString(), params, PullRequest.class); |