From f415af710c2c71a2a23b276a26dbc413cf7b77b5 Mon Sep 17 00:00:00 2001 From: Ed Merks Date: Sun, 11 Feb 2024 08:50:23 +0100 Subject: [PATCH] Eliminate compiler warnings that show up in the Tycho build --- .../nebula/jface/viewer/radiogroup/RadioGroupViewer.java | 4 ++-- .../xviewer/util/internal/FilteredTreeComposite.java | 6 +++--- .../widgets/xviewer/util/internal/dialog/XFilteredTree.java | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/widgets/radiogroup/org.eclipse.nebula.widgets.radiogroup/src/org/eclipse/nebula/jface/viewer/radiogroup/RadioGroupViewer.java b/widgets/radiogroup/org.eclipse.nebula.widgets.radiogroup/src/org/eclipse/nebula/jface/viewer/radiogroup/RadioGroupViewer.java index d7134a9e9..2780edee9 100644 --- a/widgets/radiogroup/org.eclipse.nebula.widgets.radiogroup/src/org/eclipse/nebula/jface/viewer/radiogroup/RadioGroupViewer.java +++ b/widgets/radiogroup/org.eclipse.nebula.widgets.radiogroup/src/org/eclipse/nebula/jface/viewer/radiogroup/RadioGroupViewer.java @@ -102,7 +102,7 @@ public void add(Object element) { * AbstractListViewer API. */ @Override - public void add(Object[] elements) { + public void add(Object... elements) { super.add(elements); } @@ -321,7 +321,7 @@ public void remove(Object element) { * AbstractListViewer API. */ @Override - public void remove(Object[] elements) { + public void remove(Object... elements) { super.remove(elements); } diff --git a/widgets/xviewer/org.eclipse.nebula.widgets.xviewer/src/org/eclipse/nebula/widgets/xviewer/util/internal/FilteredTreeComposite.java b/widgets/xviewer/org.eclipse.nebula.widgets.xviewer/src/org/eclipse/nebula/widgets/xviewer/util/internal/FilteredTreeComposite.java index 762dce982..a845392e1 100644 --- a/widgets/xviewer/org.eclipse.nebula.widgets.xviewer/src/org/eclipse/nebula/widgets/xviewer/util/internal/FilteredTreeComposite.java +++ b/widgets/xviewer/org.eclipse.nebula.widgets.xviewer/src/org/eclipse/nebula/widgets/xviewer/util/internal/FilteredTreeComposite.java @@ -749,7 +749,7 @@ public void add(Object parentElementOrTreePath, Object childElement) { } @Override - public void add(Object parentElementOrTreePath, Object[] childElements) { + public void add(Object parentElementOrTreePath, Object... childElements) { getPatternFilter().clearCaches(); super.add(parentElementOrTreePath, childElements); } @@ -797,13 +797,13 @@ public void remove(Object elementsOrTreePaths) { } @Override - public void remove(Object parent, Object[] elements) { + public void remove(Object parent, Object... elements) { getPatternFilter().clearCaches(); super.remove(parent, elements); } @Override - public void remove(Object[] elementsOrTreePaths) { + public void remove(Object... elementsOrTreePaths) { getPatternFilter().clearCaches(); super.remove(elementsOrTreePaths); } diff --git a/widgets/xviewer/org.eclipse.nebula.widgets.xviewer/src/org/eclipse/nebula/widgets/xviewer/util/internal/dialog/XFilteredTree.java b/widgets/xviewer/org.eclipse.nebula.widgets.xviewer/src/org/eclipse/nebula/widgets/xviewer/util/internal/dialog/XFilteredTree.java index 2ff966971..3d97f6fd8 100644 --- a/widgets/xviewer/org.eclipse.nebula.widgets.xviewer/src/org/eclipse/nebula/widgets/xviewer/util/internal/dialog/XFilteredTree.java +++ b/widgets/xviewer/org.eclipse.nebula.widgets.xviewer/src/org/eclipse/nebula/widgets/xviewer/util/internal/dialog/XFilteredTree.java @@ -985,7 +985,7 @@ public void add(Object parentElementOrTreePath, Object childElement) { } @Override - public void add(Object parentElementOrTreePath, Object[] childElements) { + public void add(Object parentElementOrTreePath, Object... childElements) { getPatternFilter().clearCaches(); super.add(parentElementOrTreePath, childElements); } @@ -1033,13 +1033,13 @@ public void remove(Object elementsOrTreePaths) { } @Override - public void remove(Object parent, Object[] elements) { + public void remove(Object parent, Object... elements) { getPatternFilter().clearCaches(); super.remove(parent, elements); } @Override - public void remove(Object[] elementsOrTreePaths) { + public void remove(Object... elementsOrTreePaths) { getPatternFilter().clearCaches(); super.remove(elementsOrTreePaths); }