You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2005/06/09 22:48:05 UTC

cvs commit: xml-xerces/java/samples/simpletype SimpleTypeUsage.java

mrglavas    2005/06/09 13:48:05

  Modified:    java/samples/simpletype SimpleTypeUsage.java
  Log:
  Should be checking that finalSet is equal to DERIVATION_NONE.
  Problem caught by Dave Brosius on j-dev@xerces.apache.org.
  
  Revision  Changes    Path
  1.7       +5 -5      xml-xerces/java/samples/simpletype/SimpleTypeUsage.java
  
  Index: SimpleTypeUsage.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/samples/simpletype/SimpleTypeUsage.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- SimpleTypeUsage.java	24 Feb 2004 23:41:06 -0000	1.6
  +++ SimpleTypeUsage.java	9 Jun 2005 20:48:05 -0000	1.7
  @@ -316,19 +316,19 @@
   
       System.err.println("'final' values \t\t\t: " );
   
  -    if ((finalSet & XSConstants.DERIVATION_EXTENSION ) != 0){
  +    if ((finalSet & XSConstants.DERIVATION_EXTENSION ) != 0) {
           System.err.println("\t\t\t\t Extension");
       }
  -    if ((finalSet & XSConstants.DERIVATION_RESTRICTION) != 0){
  +    if ((finalSet & XSConstants.DERIVATION_RESTRICTION) != 0) {
           System.err.println("\t\t\t\t Restriction");
       }
  -    if((finalSet & XSConstants.DERIVATION_LIST ) != 0){
  +    if ((finalSet & XSConstants.DERIVATION_LIST ) != 0) {
           System.err.println("\t\t\t\t List");
       }
  -    if((finalSet & XSConstants.DERIVATION_UNION ) != 0){
  +    if ((finalSet & XSConstants.DERIVATION_UNION ) != 0) {
           System.err.println("\t\t\t\t Union");
       }
  -    if((finalSet & XSConstants.DERIVATION_NONE ) != 0){
  +    if (finalSet == XSConstants.DERIVATION_NONE) {
           System.err.println("\t\t\t\t EMPTY");
       }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org