avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject cvs commit: avalon-sandbox/repository/spi/src/java/org/apache/avalon/repository ArtifactDescriptor.java
Date Thu, 06 Nov 2003 22:51:09 GMT
mcconnell    2003/11/06 14:51:08

  Modified:    repository/spi/src/java/org/apache/avalon/repository
                        ArtifactDescriptor.java
  Log:
  Fix parser bug that was returning the incorrect substring for artifact name and version.
  
  Revision  Changes    Path
  1.2       +3 -3      avalon-sandbox/repository/spi/src/java/org/apache/avalon/repository/ArtifactDescriptor.java
  
  Index: ArtifactDescriptor.java
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/repository/spi/src/java/org/apache/avalon/repository/ArtifactDescriptor.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ArtifactDescriptor.java	6 Nov 2003 04:09:15 -0000	1.1
  +++ ArtifactDescriptor.java	6 Nov 2003 22:51:08 -0000	1.2
  @@ -124,9 +124,9 @@
                       + " colon index greater than semicolon index", 0 ) ;
           }
           
  -        m_group = a_spec.substring( 0, l_colon ) ;
  -        m_name = a_spec.substring( l_colon, l_semiColon ) ;
  -        m_version = a_spec.substring( l_semiColon ) ;
  +        m_group = a_spec.substring( 0, l_colon ) ;
  +        m_name = a_spec.substring( l_colon+1, l_semiColon ) ;
  +        m_version = a_spec.substring( l_semiColon+1 ) ;
       }
       
       
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message