mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 22:22:11 +02:00
Fixed some warnings. Remaining ones are related to use of an internal Debug Platform type.
This commit is contained in:
parent
fa78098bee
commit
dff868a8a8
1 changed files with 3 additions and 2 deletions
|
@ -232,8 +232,8 @@ public class MemoryBrowser extends ViewPart implements IDebugContextListener, IL
|
|||
private boolean isBug145635Patched() {
|
||||
Type[] managerTypes = DebugUITools.getDebugContextManager().getClass().getGenericInterfaces();
|
||||
for (int i = 0; i < managerTypes.length; i++) {
|
||||
if (managerTypes[i] instanceof Class) {
|
||||
Class clazz = (Class)managerTypes[i];
|
||||
if (managerTypes[i] instanceof Class<?>) {
|
||||
Class<?> clazz = (Class<?>)managerTypes[i];
|
||||
if ("org.eclipse.debug.ui.contexts.IBug145635Marker".equals(clazz.getName()) ) {
|
||||
return true;
|
||||
}
|
||||
|
@ -476,6 +476,7 @@ public class MemoryBrowser extends ViewPart implements IDebugContextListener, IL
|
|||
public IDebugTarget getDebugTarget() { return null; }
|
||||
public ILaunch getLaunch() { return null; }
|
||||
public String getModelIdentifier() { return null; }
|
||||
@SuppressWarnings("unchecked") // one warning is enough (in the import section)
|
||||
public Object getAdapter(Class adapter) { return null; }
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue