Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2019-10-10 20:41:56 +0000
committerAlexander Kurtakov2019-10-10 21:10:57 +0000
commit5224c92b6770a7ecf68ec7d92476bbc23a674f01 (patch)
tree0068917b49bf763a983c141170cb76746e2bcd73 /memory/org.eclipse.cdt.debug.ui.memory.floatingpoint
parent46be0de323643a1ae45c6eb284127d025af4e242 (diff)
downloadorg.eclipse.cdt-5224c92b6770a7ecf68ec7d92476bbc23a674f01.tar.gz
org.eclipse.cdt-5224c92b6770a7ecf68ec7d92476bbc23a674f01.tar.xz
org.eclipse.cdt-5224c92b6770a7ecf68ec7d92476bbc23a674f01.zip
Generify Class.
Change-Id: I065b4f7c1559a141ebf2e0c82e896557a7cfc05f Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'memory/org.eclipse.cdt.debug.ui.memory.floatingpoint')
-rw-r--r--memory/org.eclipse.cdt.debug.ui.memory.floatingpoint/src/org/eclipse/cdt/debug/ui/memory/floatingpoint/FPRendering.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/memory/org.eclipse.cdt.debug.ui.memory.floatingpoint/src/org/eclipse/cdt/debug/ui/memory/floatingpoint/FPRendering.java b/memory/org.eclipse.cdt.debug.ui.memory.floatingpoint/src/org/eclipse/cdt/debug/ui/memory/floatingpoint/FPRendering.java
index dbb0c03dd71..176e0c31cff 100644
--- a/memory/org.eclipse.cdt.debug.ui.memory.floatingpoint/src/org/eclipse/cdt/debug/ui/memory/floatingpoint/FPRendering.java
+++ b/memory/org.eclipse.cdt.debug.ui.memory.floatingpoint/src/org/eclipse/cdt/debug/ui/memory/floatingpoint/FPRendering.java
@@ -1069,7 +1069,7 @@ public class FPRendering extends AbstractMemoryRendering implements IRepositiona
}
@Override
- public Object getAdapter(Class adapter) {
+ public <T> T getAdapter(Class<T> adapter) {
if (adapter == IWorkbenchAdapter.class) {
if (this.fWorkbenchAdapter == null) {
this.fWorkbenchAdapter = new IWorkbenchAdapter() {
@@ -1094,7 +1094,7 @@ public class FPRendering extends AbstractMemoryRendering implements IRepositiona
}
};
}
- return this.fWorkbenchAdapter;
+ return adapter.cast(this.fWorkbenchAdapter);
}
if (adapter == IMemoryBlockConnection.class) {
@@ -1115,7 +1115,7 @@ public class FPRendering extends AbstractMemoryRendering implements IRepositiona
};
}
- return fConnection;
+ return adapter.cast(fConnection);
}
return super.getAdapter(adapter);

Back to the top