Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornickboldt2017-10-20 12:08:51 +0000
committernickboldt2017-10-20 12:09:35 +0000
commit6bd0409a1d1fc8dc81fa697fd41eb5b0b95b776a (patch)
tree5c5689461d063b5f68bc0b30202bf34f0807da96 /plugins/org.eclipse.jst.servlet.ui/servlet_ui/org/eclipse
parent910fdc6ede08d4236add96b53f5f224d55948eef (diff)
downloadwebtools.javaee-6bd0409a1d1fc8dc81fa697fd41eb5b0b95b776a.tar.gz
webtools.javaee-6bd0409a1d1fc8dc81fa697fd41eb5b0b95b776a.tar.xz
webtools.javaee-6bd0409a1d1fc8dc81fa697fd41eb5b0b95b776a.zip
Bug 526303 - Clean up code to compile with Tycho 1.0
Signed-off-by: nickboldt <nboldt@redhat.com>
Diffstat (limited to 'plugins/org.eclipse.jst.servlet.ui/servlet_ui/org/eclipse')
-rw-r--r--plugins/org.eclipse.jst.servlet.ui/servlet_ui/org/eclipse/jst/servlet/ui/internal/wizard/MultiSelectFilteredFileSelectionDialog.java4
-rw-r--r--plugins/org.eclipse.jst.servlet.ui/servlet_ui/org/eclipse/jst/servlet/ui/internal/wizard/MultiSelectFilteredFilterFileSelectionDialog.java4
-rw-r--r--plugins/org.eclipse.jst.servlet.ui/servlet_ui/org/eclipse/jst/servlet/ui/internal/wizard/MultiSelectFilteredListenerFileSelectionDialog.java4
3 files changed, 6 insertions, 6 deletions
diff --git a/plugins/org.eclipse.jst.servlet.ui/servlet_ui/org/eclipse/jst/servlet/ui/internal/wizard/MultiSelectFilteredFileSelectionDialog.java b/plugins/org.eclipse.jst.servlet.ui/servlet_ui/org/eclipse/jst/servlet/ui/internal/wizard/MultiSelectFilteredFileSelectionDialog.java
index 4565ebe45..63171f971 100644
--- a/plugins/org.eclipse.jst.servlet.ui/servlet_ui/org/eclipse/jst/servlet/ui/internal/wizard/MultiSelectFilteredFileSelectionDialog.java
+++ b/plugins/org.eclipse.jst.servlet.ui/servlet_ui/org/eclipse/jst/servlet/ui/internal/wizard/MultiSelectFilteredFileSelectionDialog.java
@@ -160,9 +160,9 @@ public class MultiSelectFilteredFileSelectionDialog extends
try {
IJavaElement jelem = null;
IProject proj = null;
- jelem = (IJavaElement) project.getAdapter(IJavaElement.class);
+ jelem = project.getAdapter(IJavaElement.class);
if (jelem == null) {
- IResource resource = (IResource) project.getAdapter(IResource.class);
+ IResource resource = project.getAdapter(IResource.class);
if (resource != null) {
proj = resource.getProject();
if (proj != null) {
diff --git a/plugins/org.eclipse.jst.servlet.ui/servlet_ui/org/eclipse/jst/servlet/ui/internal/wizard/MultiSelectFilteredFilterFileSelectionDialog.java b/plugins/org.eclipse.jst.servlet.ui/servlet_ui/org/eclipse/jst/servlet/ui/internal/wizard/MultiSelectFilteredFilterFileSelectionDialog.java
index 4b844655f..a82743c09 100644
--- a/plugins/org.eclipse.jst.servlet.ui/servlet_ui/org/eclipse/jst/servlet/ui/internal/wizard/MultiSelectFilteredFilterFileSelectionDialog.java
+++ b/plugins/org.eclipse.jst.servlet.ui/servlet_ui/org/eclipse/jst/servlet/ui/internal/wizard/MultiSelectFilteredFilterFileSelectionDialog.java
@@ -152,9 +152,9 @@ public class MultiSelectFilteredFilterFileSelectionDialog extends
try {
IJavaElement jelem = null;
IProject proj = null;
- jelem = (IJavaElement) project.getAdapter(IJavaElement.class);
+ jelem = project.getAdapter(IJavaElement.class);
if (jelem == null) {
- IResource resource = (IResource) project.getAdapter(IResource.class);
+ IResource resource = project.getAdapter(IResource.class);
if (resource != null) {
proj = resource.getProject();
if (proj != null) {
diff --git a/plugins/org.eclipse.jst.servlet.ui/servlet_ui/org/eclipse/jst/servlet/ui/internal/wizard/MultiSelectFilteredListenerFileSelectionDialog.java b/plugins/org.eclipse.jst.servlet.ui/servlet_ui/org/eclipse/jst/servlet/ui/internal/wizard/MultiSelectFilteredListenerFileSelectionDialog.java
index bf152f226..aef93e169 100644
--- a/plugins/org.eclipse.jst.servlet.ui/servlet_ui/org/eclipse/jst/servlet/ui/internal/wizard/MultiSelectFilteredListenerFileSelectionDialog.java
+++ b/plugins/org.eclipse.jst.servlet.ui/servlet_ui/org/eclipse/jst/servlet/ui/internal/wizard/MultiSelectFilteredListenerFileSelectionDialog.java
@@ -145,9 +145,9 @@ public class MultiSelectFilteredListenerFileSelectionDialog extends
try {
IJavaElement jelem = null;
IProject proj = null;
- jelem = (IJavaElement) project.getAdapter(IJavaElement.class);
+ jelem = project.getAdapter(IJavaElement.class);
if (jelem == null) {
- IResource resource = (IResource) project.getAdapter(IResource.class);
+ IResource resource = project.getAdapter(IResource.class);
if (resource != null) {
proj = resource.getProject();
if (proj != null) {

Back to the top