Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2018-03-14 06:39:03 +0000
committerAlexander Kurtakov2018-03-14 06:46:00 +0000
commita4f8dc7748d38e08d01103be454f48c8b50cc2f3 (patch)
treeee37cb5e728a0ff8f684595a71b1bc7903e944ed /org.eclipse.m2e.jdt.ui
parente671e63165d6de3bfd39c455fbf6f5600cb989eb (diff)
downloadm2e-core-a4f8dc7748d38e08d01103be454f48c8b50cc2f3.tar.gz
m2e-core-a4f8dc7748d38e08d01103be454f48c8b50cc2f3.tar.xz
m2e-core-a4f8dc7748d38e08d01103be454f48c8b50cc2f3.zip
Remove unnecessary casts.
Change-Id: I2dedf08a6fac4e5e030624ab0dd96a7a7701de04 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'org.eclipse.m2e.jdt.ui')
-rw-r--r--org.eclipse.m2e.jdt.ui/src/org/eclipse/m2e/jdt/ui/internal/actions/DownloadSourcesAction.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.m2e.jdt.ui/src/org/eclipse/m2e/jdt/ui/internal/actions/DownloadSourcesAction.java b/org.eclipse.m2e.jdt.ui/src/org/eclipse/m2e/jdt/ui/internal/actions/DownloadSourcesAction.java
index 9cf12da2..86a59718 100644
--- a/org.eclipse.m2e.jdt.ui/src/org/eclipse/m2e/jdt/ui/internal/actions/DownloadSourcesAction.java
+++ b/org.eclipse.m2e.jdt.ui/src/org/eclipse/m2e/jdt/ui/internal/actions/DownloadSourcesAction.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008-2010 Sonatype, Inc.
+ * Copyright (c) 2008-2018 Sonatype, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -72,7 +72,7 @@ public class DownloadSourcesAction implements IObjectActionDelegate, IExecutable
} else if(element instanceof IWorkingSet) {
IWorkingSet workingSet = (IWorkingSet) element;
for(IAdaptable adaptable : workingSet.getElements()) {
- IProject project = (IProject) adaptable.getAdapter(IProject.class);
+ IProject project = adaptable.getAdapter(IProject.class);
buildpathManager.scheduleDownload(project, ID_SOURCES.equals(id), ID_JAVADOC.equals(id));
}
}

Back to the top