Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2015-03-26 09:11:14 +0000
committerAlexander Kurtakov2015-03-26 09:38:56 +0000
commit55c54bce79cc1f9b30d4e2ef594c08f03a1c7f9f (patch)
tree4e96548167c3012acc38b8b910fe7693e7118c84 /rpm/org.eclipse.linuxtools.rpmstubby
parent7eee91e610d31b67d6266b7744cf78b87e0bb883 (diff)
downloadorg.eclipse.linuxtools-55c54bce79cc1f9b30d4e2ef594c08f03a1c7f9f.tar.gz
org.eclipse.linuxtools-55c54bce79cc1f9b30d4e2ef594c08f03a1c7f9f.tar.xz
org.eclipse.linuxtools-55c54bce79cc1f9b30d4e2ef594c08f03a1c7f9f.zip
Remove unneeded casts.
Mars M6 has way more generified methods thus returning the proper types. Change-Id: Ie0976279bb7d55eaad798772a5fe15fb96bdd559 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com> Reviewed-on: https://git.eclipse.org/r/44659 Tested-by: Hudson CI
Diffstat (limited to 'rpm/org.eclipse.linuxtools.rpmstubby')
-rw-r--r--rpm/org.eclipse.linuxtools.rpmstubby/src/org/eclipse/linuxtools/internal/rpmstubby/popup/actions/StubifyHandler.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpm/org.eclipse.linuxtools.rpmstubby/src/org/eclipse/linuxtools/internal/rpmstubby/popup/actions/StubifyHandler.java b/rpm/org.eclipse.linuxtools.rpmstubby/src/org/eclipse/linuxtools/internal/rpmstubby/popup/actions/StubifyHandler.java
index b33699e8e1..45ac25826b 100644
--- a/rpm/org.eclipse.linuxtools.rpmstubby/src/org/eclipse/linuxtools/internal/rpmstubby/popup/actions/StubifyHandler.java
+++ b/rpm/org.eclipse.linuxtools.rpmstubby/src/org/eclipse/linuxtools/internal/rpmstubby/popup/actions/StubifyHandler.java
@@ -39,7 +39,7 @@ public abstract class StubifyHandler extends AbstractHandler {
if (element instanceof IFile) {
featureFile = (IFile) element;
} else if (element instanceof IAdaptable) {
- featureFile = (IFile) ((IAdaptable) element)
+ featureFile = ((IAdaptable) element)
.getAdapter(IFile.class);
}
if (featureFile != null) {

Back to the top