mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 01:15:29 +02:00
Fix compiler errors in CElementSorter
Change-Id: I8c105b7649c688bbb02ae64b5f74a0f8dedeb468 Signed-off-by: Stefan Xenos <sxenos@gmail.com>
This commit is contained in:
parent
ea0064b77b
commit
b7eb62ae3b
1 changed files with 2 additions and 4 deletions
|
@ -277,8 +277,7 @@ public class CElementSorter extends ViewerSorter {
|
|||
|
||||
// cat1 == cat2
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
final Comparator<Object> comparator = getComparator();
|
||||
final Comparator<? super String> comparator = getComparator();
|
||||
if (cat1 == PROJECTS) {
|
||||
IWorkbenchAdapter a1= ((IAdaptable)e1).getAdapter(IWorkbenchAdapter.class);
|
||||
IWorkbenchAdapter a2= ((IAdaptable)e2).getAdapter(IWorkbenchAdapter.class);
|
||||
|
@ -415,8 +414,7 @@ public class CElementSorter extends ViewerSorter {
|
|||
String name1 = lprov.getText(e1);
|
||||
String name2 = lprov.getText(e2);
|
||||
if (name1 != null && name2 != null) {
|
||||
@SuppressWarnings("unchecked")
|
||||
final Comparator<Object> comparator = getComparator();
|
||||
final Comparator<? super String> comparator = getComparator();
|
||||
return comparator.compare(name1, name2);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue