Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Keppler2019-11-20 13:04:48 +0000
committerMatthias Sohn2020-01-03 22:01:05 +0000
commitedab657ddddd9d7890cad6295ae87e52beb36692 (patch)
treec43420aeded855a2a4f93fae6d3853f4096a81e4
parent781d1874f60a40cb260426084d2847b5b0c6840f (diff)
downloadegit-github-edab657ddddd9d7890cad6295ae87e52beb36692.tar.gz
egit-github-edab657ddddd9d7890cad6295ae87e52beb36692.tar.xz
egit-github-edab657ddddd9d7890cad6295ae87e52beb36692.zip
Remove unnecessary casts
Change-Id: I277ee39b5128162abd61dfb8ddb3752f39862bc9 Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
-rw-r--r--org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/gist/CreateGistHandler.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/gist/CreateGistHandler.java b/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/gist/CreateGistHandler.java
index 88a1c7fa..fb1fc2b2 100644
--- a/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/gist/CreateGistHandler.java
+++ b/org.eclipse.mylyn.github.ui/src/org/eclipse/mylyn/internal/github/ui/gist/CreateGistHandler.java
@@ -152,10 +152,10 @@ public class CreateGistHandler extends AbstractHandler {
if (obj instanceof IResource)
file = (IResource) obj;
else if (obj instanceof IAdaptable) {
- file = (IResource) ((IAdaptable) obj)
+ file = ((IAdaptable) obj)
.getAdapter(IResource.class);
if (file == null)
- file = (IResource) ((IAdaptable) obj).getAdapter(IFile.class);
+ file = ((IAdaptable) obj).getAdapter(IFile.class);
}
if (file instanceof IFile)
createGistJob(event, (IFile) file, isPublic);

Back to the top