[455682] JAX-WS - Annotation rules are a bit too harsh on severity
diff --git a/bundles/org.eclipse.jst.ws.jaxws.core/src/org/eclipse/jst/ws/internal/jaxws/core/JAXWSCoreMessages.java b/bundles/org.eclipse.jst.ws.jaxws.core/src/org/eclipse/jst/ws/internal/jaxws/core/JAXWSCoreMessages.java
index 3917515..9a74aa6 100644
--- a/bundles/org.eclipse.jst.ws.jaxws.core/src/org/eclipse/jst/ws/internal/jaxws/core/JAXWSCoreMessages.java
+++ b/bundles/org.eclipse.jst.ws.jaxws.core/src/org/eclipse/jst/ws/internal/jaxws/core/JAXWSCoreMessages.java
@@ -109,8 +109,8 @@
public static String HAS_INADMISSIBLE_INNER_TYPES;
public static String IS_REMOTE_OBJECT;
public static String ABSTRACT_CLASS_NOT_IMPLEMENTED;
- public static String INHERITANCE_AND_IMPLEMENTATION;
- public static String IMPLEMENTS_MULTIPLE_INTERFACES;
+// public static String INHERITANCE_AND_IMPLEMENTATION;
+// public static String IMPLEMENTS_MULTIPLE_INTERFACES;
public static String WEBPARAM_NAME_REDUNDANT;
public static String WEBSERVICE_ONLY_ON_STATELESS_OR_SINGLETON_SESSION_BEANS;
diff --git a/bundles/org.eclipse.jst.ws.jaxws.core/src/org/eclipse/jst/ws/internal/jaxws/core/JAXWSCoreMessages.properties b/bundles/org.eclipse.jst.ws.jaxws.core/src/org/eclipse/jst/ws/internal/jaxws/core/JAXWSCoreMessages.properties
index 34c65ef..9d2d106 100644
--- a/bundles/org.eclipse.jst.ws.jaxws.core/src/org/eclipse/jst/ws/internal/jaxws/core/JAXWSCoreMessages.properties
+++ b/bundles/org.eclipse.jst.ws.jaxws.core/src/org/eclipse/jst/ws/internal/jaxws/core/JAXWSCoreMessages.properties
@@ -90,6 +90,6 @@
HAS_INADMISSIBLE_INNER_TYPES=Class {0} may not be used as a return type or method parameter as it has inner types that are not public and static
IS_REMOTE_OBJECT=Class {0} is a remote Object and may not used as a method return type or parameter
ABSTRACT_CLASS_NOT_IMPLEMENTED=Abstract class {0} cannot be used as a runtime class because it is not extended by a non abstract class which is suitable as a runtime class
-INHERITANCE_AND_IMPLEMENTATION=Class {0} extends {1} and implements interface {2} (multiple inheritance is not allowed)
-IMPLEMENTS_MULTIPLE_INTERFACES=Class {0} implements multiple interfaces (multiple inheritance is not allowed)
+#INHERITANCE_AND_IMPLEMENTATION=Class {0} extends {1} and implements interface {2} (multiple inheritance is not allowed)
+#IMPLEMENTS_MULTIPLE_INTERFACES=Class {0} implements multiple interfaces (multiple inheritance is not allowed)
TARGET_NAMESPACE_URI_SYNTAX_ERROR=URI syntax error at index {0} of input String ''{1}''. Reason: {2}
diff --git a/bundles/org.eclipse.jst.ws.jaxws.core/src/org/eclipse/jst/ws/internal/jaxws/core/annotations/validation/WebServiceParametersReturnTypesRule.java b/bundles/org.eclipse.jst.ws.jaxws.core/src/org/eclipse/jst/ws/internal/jaxws/core/annotations/validation/WebServiceParametersReturnTypesRule.java
index 11068de..2ea628f 100644
--- a/bundles/org.eclipse.jst.ws.jaxws.core/src/org/eclipse/jst/ws/internal/jaxws/core/annotations/validation/WebServiceParametersReturnTypesRule.java
+++ b/bundles/org.eclipse.jst.ws.jaxws.core/src/org/eclipse/jst/ws/internal/jaxws/core/annotations/validation/WebServiceParametersReturnTypesRule.java
@@ -10,10 +10,8 @@
*******************************************************************************/
package org.eclipse.jst.ws.internal.jaxws.core.annotations.validation;
-import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
-import java.util.List;
import java.util.Set;
import javax.jws.WebService;
@@ -186,7 +184,7 @@
checkInnerPublicStaticTypes(classDeclaration, methodDeclaration);
checkIfRemoteObject(classDeclaration, methodDeclaration);
checkAbstactType(classDeclaration, methodDeclaration);
- checkMultipleInheritance(classDeclaration, methodDeclaration);
+// checkMultipleInheritance(classDeclaration, methodDeclaration);
}
private void checkInnerPublicStaticTypes(ClassDeclaration classDeclaration, MethodDeclaration methodDeclaration) {
@@ -322,6 +320,7 @@
return false;
}
+ /*
private void checkMultipleInheritance(ClassDeclaration classDeclaration, MethodDeclaration methodDeclaration) {
if (implementsMultipleInterfaces(classDeclaration)) {
List<String> interfaceNames = getAllowedInterfaceNames(classDeclaration.getSuperinterfaces());
@@ -351,6 +350,7 @@
}
return interfaceNames;
}
+ */
private int countAllowedInterfaces(Collection<InterfaceType> superInterfaces) {
int count = 0;