Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSarika Sinha2015-11-20 01:29:54 -0500
committerSarika Sinha2015-11-20 01:29:54 -0500
commit7524d39c4f2f8b62e7bf82363ccc1f4be0b7697a (patch)
tree1f0eca0701fd4fe938dd4f8792828b378519ed9c /org.eclipse.debug.tests
parent447cb82aa1ba84445f8f84dff2449eddb599f73a (diff)
downloadeclipse.platform.debug-7524d39c4f2f8b62e7bf82363ccc1f4be0b7697a.tar.gz
eclipse.platform.debug-7524d39c4f2f8b62e7bf82363ccc1f4be0b7697a.tar.xz
eclipse.platform.debug-7524d39c4f2f8b62e7bf82363ccc1f4be0b7697a.zip
Bug 482570 - Compiler warning in platform.debug.ui
Diffstat (limited to 'org.eclipse.debug.tests')
-rw-r--r--org.eclipse.debug.tests/src/org/eclipse/debug/tests/viewer/model/ChildrenUpdateTests.java5
-rw-r--r--org.eclipse.debug.tests/src/org/eclipse/debug/tests/viewer/model/FilterTests.java10
2 files changed, 9 insertions, 6 deletions
diff --git a/org.eclipse.debug.tests/src/org/eclipse/debug/tests/viewer/model/ChildrenUpdateTests.java b/org.eclipse.debug.tests/src/org/eclipse/debug/tests/viewer/model/ChildrenUpdateTests.java
index 62ead990d..863b4a785 100644
--- a/org.eclipse.debug.tests/src/org/eclipse/debug/tests/viewer/model/ChildrenUpdateTests.java
+++ b/org.eclipse.debug.tests/src/org/eclipse/debug/tests/viewer/model/ChildrenUpdateTests.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2013 IBM Corporation and others.
+ * Copyright (c) 2007, 2015 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -159,7 +159,8 @@ public class ChildrenUpdateTests extends TestCase {
@Override
public void addFilter(ViewerFilter filter) {}
@Override
- public void setFilters(ViewerFilter[] filters) {}
+ public void setFilters(ViewerFilter... filters) {
+ }
@Override
public boolean getExpandedState(Object elementOrTreePath) {
diff --git a/org.eclipse.debug.tests/src/org/eclipse/debug/tests/viewer/model/FilterTests.java b/org.eclipse.debug.tests/src/org/eclipse/debug/tests/viewer/model/FilterTests.java
index 6e9b6f608..f7f9ae78d 100644
--- a/org.eclipse.debug.tests/src/org/eclipse/debug/tests/viewer/model/FilterTests.java
+++ b/org.eclipse.debug.tests/src/org/eclipse/debug/tests/viewer/model/FilterTests.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009, 2013 Wind River Systems and others.
+ * Copyright (c) 2009, 2015 Wind River Systems and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -370,6 +370,7 @@ abstract public class FilterTests extends TestCase implements ITestModelUpdatesL
* Fire CONTENT delta on parent.
*/
private void doTestRefreshToUnfilterElements(ViewerFilter[] filters) throws InterruptedException {
+ ViewerFilter[] filters1 = filters;
// Populate a view with a large model (only first 100 elements will be visible in virtual viewer).
TestModel model = TestModel.simpleMultiLevel();
@@ -391,8 +392,9 @@ abstract public class FilterTests extends TestCase implements ITestModelUpdatesL
}
// Turn off filters and refresh.
- filters = new ViewerFilter[0];
- fViewer.setFilters(filters);
+ filters1 = new ViewerFilter[0];
+ fViewer.setFilters(filters1);
+
fListener.reset();
model.postDelta(new ModelDelta(model.getRootElement(), IModelDelta.CONTENT));
while (!fListener.isFinished(ALL_UPDATES_COMPLETE)) {
@@ -401,7 +403,7 @@ abstract public class FilterTests extends TestCase implements ITestModelUpdatesL
}
}
- model.validateData(fViewer, TreePath.EMPTY, false, filters);
+ model.validateData(fViewer, TreePath.EMPTY, false, filters1);
}
public void testPreserveExpandedOnMultLevelContent() throws InterruptedException {

Back to the top