Skip to content

Commit 6e19205

Browse files
EcljpseB0Tjukzi
authored andcommitted
remove unchecked warnings
Depending on the amount of warnings on project the warning has been disabled, Suppressed or solved To get a clean Problems View on ancient code
1 parent 75bd2e3 commit 6e19205

File tree

34 files changed

+18
-31
lines changed

34 files changed

+18
-31
lines changed

bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/LocaleChangeServiceImpl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public void changeApplicationLocale(String localeString) {
110110
* @param children
111111
* The list of {@link MUIElement}s that should be checked for Locale updates.
112112
*/
113-
@SuppressWarnings({ "rawtypes" })
113+
@SuppressWarnings({ "rawtypes", "unchecked" })
114114
protected void updateLocalization(List<? extends MUIElement> children) {
115115
for (MUIElement element : children) {
116116
if (element instanceof MElementContainer) {

bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/workbench/PartServiceImpl.java

+1
Original file line numberDiff line numberDiff line change
@@ -1042,6 +1042,7 @@ private MPart addPart(MPart providedPart, MPart localPart) {
10421042
addToLastContainer(category, providedPart);
10431043
} else {
10441044
// add the part to the container
1045+
@SuppressWarnings("unchecked")
10451046
MElementContainer<MPartSashContainerElement> container = containers.get(0);
10461047
MPlaceholder placeholder = providedPart.getCurSharedRef();
10471048
if (placeholder == null) {

bundles/org.eclipse.search.core/search/org/eclipse/search/internal/core/DirtyFileSearchParticipantServiceTracker.java

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public int compare(ServiceReference<DirtyFileProvider> o1, ServiceReference<Dirt
6262
}
6363
}
6464
return new DirtyFileProvider() {
65+
@SuppressWarnings("unchecked")
6566
@Override
6667
public Map<IFile, IDocument> dirtyFiles() {
6768
return Collections.EMPTY_MAP;

bundles/org.eclipse.ui.ide/.settings/org.eclipse.jdt.core.prefs

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
106106
org.eclipse.jdt.core.compiler.problem.terminalDeprecation=warning
107107
org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
108108
org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled
109-
org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
109+
org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=ignore
110110
org.eclipse.jdt.core.compiler.problem.unclosedCloseable=warning
111111
org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
112112
org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning

bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/OpenResourceDialog.java

-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,6 @@ protected void buttonPressed(int buttonId) {
279279
}
280280
}
281281

282-
@SuppressWarnings("unchecked")
283282
@Override
284283
protected void updateButtonsEnableState(IStatus status) {
285284
Button okButton = getOkButton();

bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ViewerColumnsDialog.java

-6
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,6 @@ void handleNonVisibleSelection(ISelection selection) {
337337
* columns. Takes care of various enablements.
338338
*/
339339
void handleVisibleSelection(ISelection selection) {
340-
@SuppressWarnings("unchecked")
341340
List<T> selVCols = ((IStructuredSelection) selection).toList();
342341
List<T> allVCols = getVisible();
343342
toNonVisibleBtt.setEnabled(selVCols.size() > 0 && allVCols.size() > selVCols.size());
@@ -388,7 +387,6 @@ void handleVisibleSelection(ISelection selection) {
388387
*/
389388
void handleDownButton(Event e) {
390389
IStructuredSelection selection = visibleViewer.getStructuredSelection();
391-
@SuppressWarnings("unchecked")
392390
List<T> selVCols = selection.toList();
393391
List<T> allVCols = getVisible();
394392
IColumnUpdater<T> updater = doGetColumnUpdater();
@@ -412,7 +410,6 @@ void handleDownButton(Event e) {
412410
*/
413411
void handleUpButton(Event e) {
414412
IStructuredSelection selection = visibleViewer.getStructuredSelection();
415-
@SuppressWarnings("unchecked")
416413
List<T> selVCols = selection.toList();
417414
List<T> allVCols = getVisible();
418415
IColumnUpdater<T> updater = doGetColumnUpdater();
@@ -435,7 +432,6 @@ void handleUpButton(Event e) {
435432
*/
436433
void handleToVisibleButton(Event e) {
437434
IStructuredSelection selection = nonVisibleViewer.getStructuredSelection();
438-
@SuppressWarnings("unchecked")
439435
List<T> selVCols = selection.toList();
440436
getNonVisible().removeAll(selVCols);
441437

@@ -465,7 +461,6 @@ protected void handleToNonVisibleButton(Event e) {
465461
return;
466462
}
467463
IStructuredSelection structuredSelection = visibleViewer.getStructuredSelection();
468-
@SuppressWarnings("unchecked")
469464
List<T> selVCols = structuredSelection.toList();
470465
getVisible().removeAll(selVCols);
471466
getNonVisible().addAll(selVCols);
@@ -594,7 +589,6 @@ IColumnUpdater<T> doGetColumnUpdater() {
594589
private void updateWidth() {
595590
try {
596591
int width = Integer.parseInt(widthText.getText());
597-
@SuppressWarnings("unchecked")
598592
T data = (T) visibleViewer.getStructuredSelection().getFirstElement();
599593
if (data != null) {
600594
IColumnUpdater<T> updater = getColumnUpdater();

bundles/org.eclipse.ui.views.log/src/org/eclipse/ui/internal/views/log/EventDetailsDialog.java

+2
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,7 @@ private boolean nextChildExists(AbstractEntry originalEntry, AbstractEntry origi
492492
/**
493493
* Sets entry children (Prev-Next navigable) to top-level elements
494494
*/
495+
@SuppressWarnings("unchecked")
495496
private void setEntryChildren() {
496497
AbstractEntry[] children = getElements();
497498

@@ -505,6 +506,7 @@ private void setEntryChildren() {
505506
/**
506507
* Sets entry children (Prev-Next navigable) to children of given entry
507508
*/
509+
@SuppressWarnings("unchecked")
508510
private void setEntryChildren(AbstractEntry entry) {
509511
Object[] children = entry.getChildren(entry);
510512

bundles/org.eclipse.ui.views.properties.tabbed/src/org/eclipse/ui/internal/views/properties/tabbed/view/TabDescriptor.java

+2
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ public String getCategory() {
147147
* @param target
148148
* the section descriptor to append.
149149
*/
150+
@SuppressWarnings("unchecked")
150151
protected boolean append(ISectionDescriptor target) {
151152
if (!target.getTargetTab().equals(id)) {
152153
return false;
@@ -168,6 +169,7 @@ protected boolean append(ISectionDescriptor target) {
168169
* @return <code>true</code> if the target descriptor was added to the
169170
* descriptors list.
170171
*/
172+
@SuppressWarnings("unchecked")
171173
private boolean insertSectionDescriptor(ISectionDescriptor target) {
172174
if (target.getAfterSection().equals(TOP)) {
173175
getSectionDescriptors().add(0, target);

bundles/org.eclipse.ui.views.properties.tabbed/src/org/eclipse/ui/internal/views/properties/tabbed/view/TabbedPropertyRegistry.java

+1
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ protected ITabDescriptor[] filterTabDescriptors(
308308
* Given a property tab descriptor remove all its section descriptors that
309309
* do not apply to the given input object.
310310
*/
311+
@SuppressWarnings("unchecked")
311312
protected ITabDescriptor adaptDescriptorFor(ITabDescriptor target,
312313
IWorkbenchPart part, ISelection selection) {
313314
List<ISectionDescriptor> filteredSectionDescriptors = new ArrayList<>();

bundles/org.eclipse.ui.views.properties.tabbed/src/org/eclipse/ui/internal/views/properties/tabbed/view/TabbedPropertyRegistryClassSectionFilter.java

+1
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ private boolean appliesToEffectiveType(ISectionDescriptor descriptor,
125125

126126
ArrayList<String> classTypes = getClassTypes(inputClass);
127127

128+
@SuppressWarnings("unchecked")
128129
List<String> sectionInputTypes = descriptor.getInputTypes();
129130
for (String type : sectionInputTypes) {
130131
if (classTypes.contains(type)) {

bundles/org.eclipse.ui.views.properties.tabbed/src/org/eclipse/ui/views/properties/tabbed/AbstractTabDescriptor.java

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ public TabContents createTab() {
7272
return tab;
7373
}
7474

75+
@SuppressWarnings("unchecked")
7576
@Override
7677
public boolean equals(Object object) {
7778
if (object == null) {

bundles/org.eclipse.ui.views.properties.tabbed/src/org/eclipse/ui/views/properties/tabbed/TabbedPropertySheetPage.java

+1
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,7 @@ public void resizeScrolledComposite() {
616616
* @param tabs tabs to dispose
617617
* @since 3.6
618618
*/
619+
@SuppressWarnings("unchecked")
619620
protected void disposeTabs(@SuppressWarnings("rawtypes") Collection tabs) {
620621
for (Iterator<TabContents> iter = tabs.iterator(); iter.hasNext();) {
621622
TabContents tab = iter.next();

bundles/org.eclipse.ui.workbench/.settings/org.eclipse.jdt.core.prefs

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
116116
org.eclipse.jdt.core.compiler.problem.terminalDeprecation=warning
117117
org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
118118
org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=disabled
119-
org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
119+
org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=ignore
120120
org.eclipse.jdt.core.compiler.problem.unclosedCloseable=warning
121121
org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
122122
org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning

bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/activities/ActivityCategoryPreferencePage.java

-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ public void activityManagerChanged(ActivityManagerEvent activityManagerEvent) {
187187
}
188188

189189
private class CategoryContentProvider implements IStructuredContentProvider {
190-
@SuppressWarnings("unchecked")
191190
@Override
192191
public Object[] getElements(Object inputElement) {
193192
// convert to category objects

bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/commands/AbstractHandler.java

-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
* @noextend This class is not intended to be extended by clients.
4242
*/
4343
@Deprecated(forRemoval = true, since = "2024-03")
44-
@SuppressWarnings({ "unchecked" })
4544
public abstract class AbstractHandler extends org.eclipse.core.commands.AbstractHandler implements IHandler {
4645

4746
/**

bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/databinding/typed/WorkbenchProperties.java

-3
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ public static <S extends ISelectionService, T> IValueProperty<S, T> singleSelect
102102
*
103103
* @return an observable value
104104
*/
105-
@SuppressWarnings("unchecked")
106105
public static <S extends ISelectionService, T> IValueProperty<S, T> singleSelection(String partId,
107106
boolean postSelection) {
108107
return (IValueProperty<S, T>) singleSelection(partId, postSelection, Object.class);
@@ -131,7 +130,6 @@ public static <S extends ISelectionService, T> IValueProperty<S, T> singleSelect
131130
*
132131
* @return an observable value
133132
*/
134-
@SuppressWarnings("unchecked")
135133
public static <S extends ISelectionService, E> IListProperty<S, E> multipleSelection() {
136134
return (IListProperty<S, E>) multipleSelection(Object.class);
137135
}
@@ -160,7 +158,6 @@ public static <S extends ISelectionService, E> IListProperty<S, E> multipleSelec
160158
*
161159
* @return an observable value
162160
*/
163-
@SuppressWarnings("unchecked")
164161
public static <S extends ISelectionService, E> IListProperty<S, E> multipleSelection(String partId,
165162
boolean postSelection) {
166163
return (IListProperty<S, E>) multipleSelection(partId, postSelection, Object.class);

bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ShowViewMenu.java

-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,6 @@ public String getPluginId() {
234234

235235
}
236236

237-
@SuppressWarnings("unchecked")
238237
private CommandContributionItemParameter getItem(String viewId) {
239238
MApplication application = window.getService(MApplication.class);
240239
List<MPartDescriptor> descriptors = application.getDescriptors();

bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/databinding/AdaptedValueProperty.java

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ public Object getValueType() {
2020
return adapter;
2121
}
2222

23-
@SuppressWarnings("unchecked")
2423
@Override
2524
protected T doGetValue(S source) {
2625
if (adapter.isInstance(source))

bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/databinding/SelectionServiceListener.java

-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ protected void doRemoveFrom(S source) {
5454
}
5555
}
5656

57-
@SuppressWarnings("unchecked")
5857
@Override
5958
public void selectionChanged(IWorkbenchPart part, ISelection selection) {
6059
// Note that the part is not the same object as the selection service, but it is

bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/databinding/SingleSelectionProperty.java

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ protected T doGetValue(S source) {
3333
selection = ((ISelectionService) source).getSelection();
3434
}
3535
if (selection instanceof IStructuredSelection) {
36-
@SuppressWarnings("unchecked")
3736
T elem = (T) ((IStructuredSelection) selection).getFirstElement();
3837
return elem;
3938
}

bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/ContentTypesPreferencePage.java

-1
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,6 @@ public void keyReleased(KeyEvent e) {
474474

475475
}
476476

477-
@SuppressWarnings("unchecked")
478477
private void createFileAssociations(final Composite parent) {
479478
Composite composite = new Composite(parent, SWT.NONE);
480479
composite.setLayout(new GridLayout(2, false));

bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/ViewsPreferencePage.java

-1
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,6 @@ public String getText(Object element) {
392392
});
393393
}
394394

395-
@SuppressWarnings("unchecked")
396395
private void selectColorsAndFontsTheme(String colorAndFontThemeId) {
397396
if (colorAndFontThemeId == null) {
398397
colorAndFontThemeId = currentColorsAndFontsTheme.getId();

bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/e4/migration/PerspectiveBuilder.java

-1
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,6 @@ private void correctSelectedElements(MUIElement element) {
362362
if (!(element instanceof MPartSashContainer || element instanceof MPartStack)) {
363363
return;
364364
}
365-
@SuppressWarnings("unchecked")
366365
MElementContainer<MUIElement> container = (MElementContainer<MUIElement>) element;
367366
List<MUIElement> children = container.getChildren();
368367
if (container.getSelectedElement() == null && !children.isEmpty()) {

bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/handlers/LegacyHandlerService.java

-3
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ public Object compute(IEclipseContext context, String contextKey) {
9696
HashSet<HandlerActivation> activationSet = new LinkedHashSet<>();
9797
IEclipseContext current = context;
9898
while (current != null) {
99-
@SuppressWarnings("unchecked")
10099
List<HandlerActivation> handlerActivations = (List<HandlerActivation>) current
101100
.getLocal(LEGACY_H_ID + commandId);
102101
if (handlerActivations != null) {
@@ -177,7 +176,6 @@ private static IHandlerActivation registerLegacyHandler(final IEclipseContext co
177176
}
178177

179178
static void addHandlerActivation(HandlerActivation eActivation) {
180-
@SuppressWarnings("unchecked")
181179
List<HandlerActivation> handlerActivations = (List<HandlerActivation>) eActivation.context
182180
.getLocal(LEGACY_H_ID + eActivation.getCommandId());
183181
if (handlerActivations == null) {
@@ -194,7 +192,6 @@ static void addHandlerActivation(HandlerActivation eActivation) {
194192
}
195193

196194
static void removeHandlerActivation(HandlerActivation eActivation) {
197-
@SuppressWarnings("unchecked")
198195
List<HandlerActivation> handlerActivations = (List<HandlerActivation>) eActivation.context
199196
.getLocal(LEGACY_H_ID + eActivation.getCommandId());
200197
if (handlerActivations == null) {

bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/BindingService.java

-1
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,6 @@ static public MKeyBinding createOrUpdateMKeyBinding(MApplication application, MB
604604
keyBinding.setKeySequence(binding.getTriggerSequence().toString());
605605

606606
for (Object obj : parmCmd.getParameterMap().entrySet()) {
607-
@SuppressWarnings({ "unchecked" })
608607
Map.Entry<String, String> entry = (Map.Entry<String, String>) obj;
609608

610609
String paramID = entry.getKey();

bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/EditorRegistry.java

-1
Original file line numberDiff line numberDiff line change
@@ -1163,7 +1163,6 @@ public FileEditorMapping get(String key) {
11631163
* @return the mappings
11641164
*/
11651165
public FileEditorMapping[] allMappings() {
1166-
@SuppressWarnings("unchecked")
11671166
HashMap<String, FileEditorMapping> merge = (HashMap<String, FileEditorMapping>) defaultMap.clone();
11681167
merge.putAll(map);
11691168
Collection<FileEditorMapping> values = merge.values();

bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/FileEditorMapping.java

-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ public void addEditor(EditorDescriptor editor) {
9191
/**
9292
* Clone the receiver.
9393
*/
94-
@SuppressWarnings("unchecked")
9594
@Override
9695
public Object clone() {
9796
try {

bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/statushandlers/WorkbenchStatusDialogManagerImpl.java

-1
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,6 @@ public Map getDialogState() {
484484
*
485485
* @return Collection of StatusAdapters
486486
*/
487-
@SuppressWarnings("unchecked")
488487
private Collection<StatusAdapter> getErrors() {
489488
return (Collection<StatusAdapter>) dialogState.get(IStatusDialogConstants.STATUS_ADAPTERS);
490489
}

bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/themes/RGBVisibleContrastColorFactory.java

-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ public RGB createColor() {
9999
public void setInitializationData(IConfigurationElement config, String propertyName, Object data)
100100
throws CoreException {
101101
if (data instanceof Hashtable) {
102-
@SuppressWarnings("unchecked")
103102
Hashtable<String, String> table = (Hashtable<String, String>) data;
104103
fg = table.get("foreground"); //$NON-NLS-1$
105104
bg = table.get("background"); //$NON-NLS-1$

bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/part/PageBookView.java

-1
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,6 @@ public void dispose() {
468468
removePage(defaultPageRec, false);
469469
defaultPageRec = null;
470470
}
471-
@SuppressWarnings("unchecked")
472471
Map<IWorkbenchPart, PageRec> clone = (Map<IWorkbenchPart, PageRec>) ((HashMap<IWorkbenchPart, PageRec>) mapPartToRec)
473472
.clone();
474473
clone.values().forEach(rec -> removePage(rec, true));

tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/application/HeadlessApplicationTest.java

+1
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ protected String getEngineURI() {
284284
return "bundleclass://org.eclipse.e4.ui.tests/org.eclipse.e4.ui.tests.application.HeadlessContextPresentationEngine"; //$NON-NLS-1$
285285
}
286286

287+
@SuppressWarnings("unchecked")
287288
private void processPartContributions(IEclipseContext context,
288289
Resource resource) {
289290
IExtensionRegistry registry = context.get(IExtensionRegistry.class);

tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/leaks/LeakTests.java

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ public static void checkRef(ReferenceQueue<?> queue, Reference<?> ref)
8282
assertTrue("Reference not enqueued", flag);
8383
}
8484

85+
@SuppressWarnings("unchecked")
8586
private Reference createReference(ReferenceQueue queue, Object object) {
8687
return new PhantomReference<>(object, queue);
8788
}

tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/manual/ViewWithSaveables.java

+1
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ class DirtyObservableMap extends ComputedObservableMap<Object, Object> {
279279
Diffs.createMapDiffSingleChange(
280280
writableValueToElement.get(event.getSource()), event.diff.getOldValue(), event.diff.getNewValue()));
281281

282+
@SuppressWarnings("unchecked")
282283
public DirtyObservableMap(IObservableSet knownElements) {
283284
super(knownElements);
284285
init();

tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/statushandlers/LabelProviderWrapperTest.java

+2
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public class LabelProviderWrapperTest {
4646
private LabelProviderWrapper wrapper;
4747
private Map<Object, Object> dialogState = new HashMap<>();
4848

49+
@SuppressWarnings("unchecked")
4950
@Before
5051
public void setUp() throws Exception {
5152
dialogState = new HashMap<>();
@@ -118,6 +119,7 @@ public void testImages(){
118119
/*
119120
* StatusAdapter contains all information necessary to display the dialog.
120121
*/
122+
@SuppressWarnings("unchecked")
121123
@Test
122124
public void testProvidedText_1(){
123125
final String title = "title";

0 commit comments

Comments
 (0)