commit | c4a77272e25e4cd4ee554dbec99a1ddc65b41bbc | [log] [tgz] |
---|---|---|
author | James Kaufman <jhkauf@us.ibm.com> | Thu Mar 04 16:38:38 2021 -0800 |
committer | James Kaufman <jhkauf@us.ibm.com> | Thu Mar 04 16:38:38 2021 -0800 |
tree | aa9b9fe55da11ed8922b351337cb157743bb6972 | |
parent | 0bfa93094f00946b513fc646c68996f6d66850e9 [diff] |
Fixed Java warnings: added Cast to Object[] to confirm the non-varargs invocation
diff --git a/org.eclipse.stem/core/org.eclipse.stem.ui.ge/src/org/eclipse/stem/ui/ge/views/GEViewContentProvider.java b/org.eclipse.stem/core/org.eclipse.stem.ui.ge/src/org/eclipse/stem/ui/ge/views/GEViewContentProvider.java index f85a562..e580336 100644 --- a/org.eclipse.stem/core/org.eclipse.stem.ui.ge/src/org/eclipse/stem/ui/ge/views/GEViewContentProvider.java +++ b/org.eclipse.stem/core/org.eclipse.stem.ui.ge/src/org/eclipse/stem/ui/ge/views/GEViewContentProvider.java
@@ -148,8 +148,8 @@ GELog.debug(this.getClass(),"simulationsChange: "); - viewer.remove(event.getSimulationsRemoved()); - viewer.add(event.getSimulationsAdded()); + viewer.remove((Object[])event.getSimulationsRemoved()); + viewer.add((Object[])event.getSimulationsAdded()); if (this.currentSimulation == null && event.getSimulationsAdded().length > 0) { currentSimulation = event.getSimulationsAdded()[0];
diff --git a/org.eclipse.stem/core/org.eclipse.stem.ui/src/org/eclipse/stem/ui/views/ActiveBatchesView.java b/org.eclipse.stem/core/org.eclipse.stem.ui/src/org/eclipse/stem/ui/views/ActiveBatchesView.java index f61922d..43b372c 100644 --- a/org.eclipse.stem/core/org.eclipse.stem.ui/src/org/eclipse/stem/ui/views/ActiveBatchesView.java +++ b/org.eclipse.stem/core/org.eclipse.stem.ui/src/org/eclipse/stem/ui/views/ActiveBatchesView.java
@@ -123,8 +123,8 @@ public void batchesChanged(final BatchManagerEvent event) { viewer.getList().setRedraw(false); try { - viewer.remove(event.getBatchesRemoved()); - viewer.add(event.getBatchesAdded()); + viewer.remove((Object[])event.getBatchesRemoved()); + viewer.add((Object[])event.getBatchesAdded()); } finally { viewer.getList().setRedraw(true); }
diff --git a/org.eclipse.stem/core/org.eclipse.stem.ui/src/org/eclipse/stem/ui/views/ActiveSimulationsView.java b/org.eclipse.stem/core/org.eclipse.stem.ui/src/org/eclipse/stem/ui/views/ActiveSimulationsView.java index cbd3c48..8aaed02 100644 --- a/org.eclipse.stem/core/org.eclipse.stem.ui/src/org/eclipse/stem/ui/views/ActiveSimulationsView.java +++ b/org.eclipse.stem/core/org.eclipse.stem.ui/src/org/eclipse/stem/ui/views/ActiveSimulationsView.java
@@ -124,8 +124,8 @@ public void simulationsChanged(final SimulationManagerEvent event) { viewer.getList().setRedraw(false); try { - viewer.remove(event.getSimulationsRemoved()); - viewer.add(event.getSimulationsAdded()); + viewer.remove((Object[])event.getSimulationsRemoved()); + viewer.add((Object[])event.getSimulationsAdded()); } finally { viewer.getList().setRedraw(true); }