cvs commit: spice/sandbox/metaclass/src/java/org/realityforge/metaclass/io DOMMetaClassDeserializer.java

Peter Donald <[email protected]>
Newsgroups gmane.comp.java.spice.cvs
Message-ID <[email protected]>
donaldp     03/10/31 16:14:37

  Modified:    sandbox/metaclass/src/java/org/realityforge/metaclass/io
                        DOMMetaClassDeserializer.java
  Log:
  Fix attribute parsing when there is just a name and no value or parameters
  
  Revision  Changes    Path
  1.11      +2 -2      spice/sandbox/metaclass/src/java/org/realityforge/metaclass/io/DOMMetaClassDeserializer.java
  
  Index: DOMMetaClassDeserializer.java
  ===================================================================
  RCS file: /cvsroot/spice/spice/sandbox/metaclass/src/java/org/realityforge/metaclass/io/DOMMetaClassDeserializer.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- DOMMetaClassDeserializer.java	1 Nov 2003 00:04:35 -0000	1.10
  +++ DOMMetaClassDeserializer.java	1 Nov 2003 00:14:36 -0000	1.11
  @@ -25,7 +25,7 @@
    * representation Element.
    *
    * @author <a href="mailto:peter at realityforge.org">Peter Donald</a>
  - * @version $Revision: 1.10 $ $Date: 2003/11/01 00:04:35 $
  + * @version $Revision: 1.11 $ $Date: 2003/11/01 00:14:36 $
    */
   public class DOMMetaClassDeserializer
   {
  @@ -343,7 +343,7 @@
                   "and parameters (" + parameters + ").";
               throw new Exception( message );
           }
  -        if( null == value )
  +        if( 0 == value.length() )
           {
               return new Attribute( name, parameters );
           }
  
  
  


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.