Bug 526315 - remove unnecessary casts so we can build with Tycho 1.0 Signed-off-by: nickboldt <nboldt@redhat.com>
diff --git a/plugins/org.eclipse.jst.ejb.ui/ejb_ui/org/eclipse/jst/ejb/ui/internal/actions/AbstractClientJARAction.java b/plugins/org.eclipse.jst.ejb.ui/ejb_ui/org/eclipse/jst/ejb/ui/internal/actions/AbstractClientJARAction.java index 3478f4d..d901626 100644 --- a/plugins/org.eclipse.jst.ejb.ui/ejb_ui/org/eclipse/jst/ejb/ui/internal/actions/AbstractClientJARAction.java +++ b/plugins/org.eclipse.jst.ejb.ui/ejb_ui/org/eclipse/jst/ejb/ui/internal/actions/AbstractClientJARAction.java
@@ -32,7 +32,7 @@ else if (element instanceof IProject) project = (IProject) element; else if (element instanceof IAdaptable) - project = (IProject) ((IAdaptable)element).getAdapter(IProject.class); + project = ((IAdaptable)element).getAdapter(IProject.class); return project; }
diff --git a/plugins/org.eclipse.jst.j2ee.ejb/ejb/org/eclipse/jst/j2ee/ejb/internal/deployables/EJBDeployableArtifactAdapterUtil.java b/plugins/org.eclipse.jst.j2ee.ejb/ejb/org/eclipse/jst/j2ee/ejb/internal/deployables/EJBDeployableArtifactAdapterUtil.java index a1cf11c..46b9852 100644 --- a/plugins/org.eclipse.jst.j2ee.ejb/ejb/org/eclipse/jst/j2ee/ejb/internal/deployables/EJBDeployableArtifactAdapterUtil.java +++ b/plugins/org.eclipse.jst.j2ee.ejb/ejb/org/eclipse/jst/j2ee/ejb/internal/deployables/EJBDeployableArtifactAdapterUtil.java
@@ -181,7 +181,7 @@ protected static IModuleArtifact getModuleJavaObject(IFile file) { - IVirtualComponent comp = (IVirtualComponent)file.getAdapter(IVirtualComponent.class); + IVirtualComponent comp = file.getAdapter(IVirtualComponent.class); if (comp != null) { JavaClass javaClass = JemProjectUtilities.getJavaClass(file); if (javaClass != null) {
diff --git a/plugins/org.eclipse.jst.j2ee.ejb/ejbedit/org/eclipse/jst/j2ee/internal/ejb/provider/EjbItemProviderAdapterFactory.java b/plugins/org.eclipse.jst.j2ee.ejb/ejbedit/org/eclipse/jst/j2ee/internal/ejb/provider/EjbItemProviderAdapterFactory.java index 1ac53fe..dcb17a9 100644 --- a/plugins/org.eclipse.jst.j2ee.ejb/ejbedit/org/eclipse/jst/j2ee/internal/ejb/provider/EjbItemProviderAdapterFactory.java +++ b/plugins/org.eclipse.jst.j2ee.ejb/ejbedit/org/eclipse/jst/j2ee/internal/ejb/provider/EjbItemProviderAdapterFactory.java
@@ -39,7 +39,7 @@ /** * This is the factory that is used to provide the interfaces needed to support - * {@link org.eclipse.jface.viewers.Viewer}s. The adapters generated by this factory convert EMF + * { @link org.eclipse.jface.viewers.Viewer}s. The adapters generated by this factory convert EMF * adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}. The adapters * also support property sheets, see {@link org.eclipse.ui.views.properties}. Note that most of the * adapters are shared among multiple instances.