Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/BackgroundEventHandler.java')
-rw-r--r--bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/BackgroundEventHandler.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/BackgroundEventHandler.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/BackgroundEventHandler.java
index 82eb1c4a5..bfe55bb88 100644
--- a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/BackgroundEventHandler.java
+++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/BackgroundEventHandler.java
@@ -59,7 +59,7 @@ public abstract class BackgroundEventHandler {
public static final int RUNNABLE_EVENT = 1000;
// Events that need to be processed
- private List awaitingProcessing = new ArrayList();
+ private List<Event> awaitingProcessing = new ArrayList<>();
// The job that runs when events need to be processed
private Job eventHandlerJob;
@@ -329,14 +329,14 @@ public abstract class BackgroundEventHandler {
if (isShutdown() || isQueueEmpty()) {
return null;
}
- return (Event) awaitingProcessing.remove(0);
+ return awaitingProcessing.remove(0);
}
protected synchronized Event peek() {
if (isShutdown() || isQueueEmpty()) {
return null;
}
- return (Event) awaitingProcessing.get(0);
+ return awaitingProcessing.get(0);
}
/**

Back to the top