Skip to content

Commit

Permalink
including @experimental and @unsupported classes, too
Browse files Browse the repository at this point in the history
  • Loading branch information
belaban committed Oct 23, 2009
1 parent d0ff440 commit 7c5fdc6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/org/jgroups/util/XMLSchemaGenerator.java
Expand Up @@ -35,7 +35,7 @@
* https://jira.jboss.org/jira/browse/JGRP-448
*
* @author Vladimir Blagojevic
* @version $Id: XMLSchemaGenerator.java,v 1.8 2009/06/22 10:03:02 vlada Exp $
* @version $Id: XMLSchemaGenerator.java,v 1.9 2009/10/23 08:50:43 belaban Exp $
*
*/
public class XMLSchemaGenerator {
Expand Down Expand Up @@ -128,10 +128,8 @@ private static void classToXML(Document xmldoc, Element parent, Class<?> clazz,
String preAppendToSimpleClassName) throws Exception {

boolean isConcreteClass = (clazz.getModifiers() & Modifier.ABSTRACT) == 0;
boolean isExperimental = clazz.isAnnotationPresent(Experimental.class);
boolean isUnsupported = clazz.isAnnotationPresent(Unsupported.class);

if (isConcreteClass && !isExperimental && !isUnsupported) {
if (isConcreteClass) {
parent.appendChild(createXMLTree(xmldoc, clazz, preAppendToSimpleClassName));
}
}
Expand Down

0 comments on commit 7c5fdc6

Please sign in to comment.