Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkchong2011-08-25 06:05:59 +0000
committerkchong2011-08-25 06:05:59 +0000
commited7f6ab185c6a4cf8c98fb51f8abb718cd5c4cba (patch)
tree5e2fbe1526dbdf7046589a7ac5f29e7f632d8237
parent5a1270eeff4dedd54d370d99f93c30f751be478f (diff)
downloadwebtools.webservices-ed7f6ab185c6a4cf8c98fb51f8abb718cd5c4cba.tar.gz
webtools.webservices-ed7f6ab185c6a4cf8c98fb51f8abb718cd5c4cba.tar.xz
webtools.webservices-ed7f6ab185c6a4cf8c98fb51f8abb718cd5c4cba.zip
[355771] Remove unused/dead code as reported in build reports
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/J2EEUtils.java4
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/JavaMOFUtils.java10
-rw-r--r--bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/ResourceUtils.java21
3 files changed, 20 insertions, 15 deletions
diff --git a/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/J2EEUtils.java b/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/J2EEUtils.java
index f343fbcff..c79b8e5f1 100644
--- a/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/J2EEUtils.java
+++ b/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/J2EEUtils.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2008, 2009 IBM Corporation and others.
+ * Copyright (c) 2000, 2011 IBM Corporation 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
@@ -22,6 +22,7 @@
* 20081001 243869 ericdp@ca.ibm.com - Eric D. Peters, Web Service tools allowing mixed J2EE levels
* 20090114 261087 ericdp@ca.ibm.com - Eric D. Peters, No way to get meta-inf path for a project
* 20100203 kchong@ca.ibm.com - Keith Chong, Java Facet change
+ * 20110824 355771 kchong@ca.ibm.com - Keith Chong, Remove unused/dead code as reported in build reports
*******************************************************************************/
package org.eclipse.jst.ws.internal.common;
@@ -80,7 +81,6 @@ import org.eclipse.wst.common.componentcore.ModuleCoreNature;
import org.eclipse.wst.common.componentcore.datamodel.properties.ICreateReferenceComponentsDataModelProperties;
import org.eclipse.wst.common.componentcore.internal.operation.CreateReferenceComponentsDataModelProvider;
import org.eclipse.wst.common.componentcore.internal.util.ComponentUtilities;
-import org.eclipse.wst.common.componentcore.internal.util.IModuleConstants;
import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
import org.eclipse.wst.common.componentcore.resources.IVirtualFolder;
import org.eclipse.wst.common.componentcore.resources.IVirtualReference;
diff --git a/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/JavaMOFUtils.java b/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/JavaMOFUtils.java
index 5455fdcb6..f27ee2bbe 100644
--- a/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/JavaMOFUtils.java
+++ b/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/JavaMOFUtils.java
@@ -1,12 +1,15 @@
/*******************************************************************************
- * Copyright (c) 2000, 2005 IBM Corporation and others.
+ * Copyright (c) 2000, 2011 IBM Corporation 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
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
- * IBM Corporation - initial API and implementation
+ * IBM Corporation - initial API and implementation
+ * yyyymmdd bug Email and other contact information
+ * -------- -------- -----------------------------------------------------------
+ * 20110824 355771 kchong@ca.ibm.com - Keith Chong, Remove unused/dead code as reported in build reports
*******************************************************************************/
package org.eclipse.jst.ws.internal.common;
@@ -212,7 +215,8 @@ public static JavaClass getJavaClass(String packageName, String typeName , IProj
return (JavaClass)JavaRefFactory.eINSTANCE.reflectType(packageName, typeName, jMOF.getResourceSet());
}
- public static boolean isValidSEIFile(JavaClass beanClass, JavaClass seiClass)
+@SuppressWarnings("unused")
+public static boolean isValidSEIFile(JavaClass beanClass, JavaClass seiClass)
{
if (!seiClass.isInterface())
return false;
diff --git a/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/ResourceUtils.java b/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/ResourceUtils.java
index d36a48653..280d02034 100644
--- a/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/ResourceUtils.java
+++ b/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/ResourceUtils.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2004, 2008 IBM Corporation and others.
+ * Copyright (c) 2004, 2011 IBM Corporation 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
@@ -16,6 +16,7 @@
* 20080122 215866 trungha@ca.ibm.com - Trung Ha
* 20080303 218696 ericdp@ca.ibm.com - Eric D. Peters, APIs using EJBArtifactEdit not able to deal with some EJB 3.0 beans properly
* 20080626 236645 kathy@ca.ibm.com - Kathy Chan
+ * 20110824 355771 kchong@ca.ibm.com - Keith Chong, Remove unused/dead code as reported in build reports
*******************************************************************************/
package org.eclipse.jst.ws.internal.common;
@@ -448,9 +449,9 @@ public final class ResourceUtils {
EARArtifactEdit earEdit = null;
try {
//earEdit = EARArtifactEdit.getEARArtifactEditForRead(wbcs[0]);
- if (earEdit!=null){
- isEAR = true;
- }
+// if (earEdit!=null){
+// isEAR = true;
+// }
}
finally{
if (earEdit!=null)
@@ -487,9 +488,9 @@ public final class ResourceUtils {
EJBArtifactEdit ejbEdit = null;
try {
//ejbEdit = EJBArtifactEdit.getEJBArtifactEditForRead(wbcs[0]);
- if (ejbEdit!=null){
- isEJB = true;
- }
+// if (ejbEdit!=null){
+// isEJB = true;
+// }
}
finally{
if (ejbEdit!=null)
@@ -526,9 +527,9 @@ public final class ResourceUtils {
AppClientArtifactEdit appClientEdit = null;
try {
//appClientEdit = AppClientArtifactEdit.getAppClientArtifactEditForRead(wbcs[0]);
- if (appClientEdit!=null){
- isAppClient = true;
- }
+// if (appClientEdit!=null){
+// isAppClient = true;
+// }
}
finally{
if (appClientEdit!=null)

Back to the top