Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2018-03-14 02:39:03 -0400
committerAlexander Kurtakov2018-03-14 02:46:00 -0400
commita4f8dc7748d38e08d01103be454f48c8b50cc2f3 (patch)
treeee37cb5e728a0ff8f684595a71b1bc7903e944ed /org.eclipse.m2e.refactoring
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.refactoring')
-rw-r--r--org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/rename/RenameArtifactHandler.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/rename/RenameArtifactHandler.java b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/rename/RenameArtifactHandler.java
index 0c6bac94..e9608d32 100644
--- a/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/rename/RenameArtifactHandler.java
+++ b/org.eclipse.m2e.refactoring/src/org/eclipse/m2e/refactoring/rename/RenameArtifactHandler.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2011 Sonatype, Inc.
+ * Copyright (c) 2011, 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
@@ -45,7 +45,7 @@ public class RenameArtifactHandler extends AbstractHandler {
if(element instanceof IFile) {
rename((IFile) element);
} else if(element instanceof IAdaptable) {
- IProject project = (IProject) ((IAdaptable) element).getAdapter(IProject.class);
+ IProject project = ((IAdaptable) element).getAdapter(IProject.class);
if(project == null) {
return null;
}

Back to the top