1
0
Fork 0
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:
John Cortell 2009-10-13 22:38:58 +00:00
parent fa78098bee
commit dff868a8a8

View file

@ -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; }
});
}