Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Keppler2019-11-20 13:03:34 +0000
committerMichael Keppler2019-12-29 18:07:03 +0000
commit781d1874f60a40cb260426084d2847b5b0c6840f (patch)
tree8c5aaf8625ebbbca2223f2ab8e3cf8ac76c82c08 /org.eclipse.egit.github.core
parent4c03807f5f3c7c1e06689e5777f1a3ec101c36b1 (diff)
downloadegit-github-781d1874f60a40cb260426084d2847b5b0c6840f.tar.gz
egit-github-781d1874f60a40cb260426084d2847b5b0c6840f.tar.xz
egit-github-781d1874f60a40cb260426084d2847b5b0c6840f.zip
Remove redundant type arguments
Execute the "Remove redundant type arguments" cleanup on all egit-github projects. Also enable the save action in all project properties for future automated cleanups. Change-Id: Ice37fa348e34677aa24b6e856ef2c6e1a0b160dc Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
Diffstat (limited to 'org.eclipse.egit.github.core')
-rw-r--r--org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/Issue.java2
-rw-r--r--org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service/GitHubService.java6
2 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/Issue.java b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/Issue.java
index 86cc00ba..2e11005c 100644
--- a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/Issue.java
+++ b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/Issue.java
@@ -157,7 +157,7 @@ public class Issue implements Serializable {
* @return this issue
*/
public Issue setLabels(List<Label> labels) {
- this.labels = labels != null ? new ArrayList<Label>(labels) : null;
+ this.labels = labels != null ? new ArrayList<>(labels) : null;
return this;
}
diff --git a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service/GitHubService.java b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service/GitHubService.java
index c86e31a8..90ff26fc 100644
--- a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service/GitHubService.java
+++ b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service/GitHubService.java
@@ -146,7 +146,7 @@ public abstract class GitHubService {
* @return request
*/
protected <V> PagedRequest<V> createPagedRequest(int start, int size) {
- return new PagedRequest<V>(start, size);
+ return new PagedRequest<>(start, size);
}
/**
@@ -157,7 +157,7 @@ public abstract class GitHubService {
* @return iterator
*/
protected <V> PageIterator<V> createPageIterator(PagedRequest<V> request) {
- return new PageIterator<V>(request, client);
+ return new PageIterator<>(request, client);
}
/**
@@ -183,7 +183,7 @@ public abstract class GitHubService {
* @throws IOException
*/
protected <V> List<V> getAll(PageIterator<V> iterator) throws IOException {
- List<V> elements = new ArrayList<V>();
+ List<V> elements = new ArrayList<>();
try {
while (iterator.hasNext())
elements.addAll(iterator.next());

Back to the top