cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1539595 - /cxf/trunk/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/model/wadl/WadlGenerator.java
Date Thu, 07 Nov 2013 11:10:07 GMT
Author: sergeyb
Date: Thu Nov  7 11:10:07 2013
New Revision: 1539595

URL: http://svn.apache.org/r1539595
Log:
[CXF-5355] Allowing for XMLRootElement when checking XmlSeeAlso if the class is abstract

Modified:
    cxf/trunk/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/model/wadl/WadlGenerator.java

Modified: cxf/trunk/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/model/wadl/WadlGenerator.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/model/wadl/WadlGenerator.java?rev=1539595&r1=1539594&r2=1539595&view=diff
==============================================================================
--- cxf/trunk/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/model/wadl/WadlGenerator.java
(original)
+++ cxf/trunk/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/model/wadl/WadlGenerator.java
Thu Nov  7 11:10:07 2013
@@ -385,7 +385,7 @@ public class WadlGenerator implements Co
         }
         List<Class<?>> extraClasses = new LinkedList<Class<?>>();
         for (Class<?> cls : resourceTypes.getAllTypes().keySet()) {
-            if (!isXmlRoot(cls)) {
+            if (!isXmlRoot(cls) || Modifier.isAbstract(cls.getModifiers())) {
                 XmlSeeAlso seeAlsoAnn = cls.getAnnotation(XmlSeeAlso.class);
                 if (seeAlsoAnn != null) {
                     List<Class<?>> seeAlsoList = CastUtils.cast(Arrays.asList(seeAlsoAnn.value()));



Mime
View raw message