Will do! > -----Original Message----- > From: Stephen McConnell [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 12, 2003 1:24 AM > To: Avalon Developers List > Subject: Re: cvs commit: avalon- > sandbox/repository/impl/src/java/org/apache/avalon/repository/impl > DefaultFileRepository.java > > > > [EMAIL PROTECTED] wrote: > > > + public URL getArtifact( > > + final String artifact, final String version, final String type > ) > > + throws RepositoryException > > + { > > + int n = artifact.indexOf( SEPERATOR ) ; > > + > > + if( n < 1 ) > > + { > > + final String error = "Invalid artifact name: " + artifact > ; > > + throw new RepositoryException( error ) ; > > + } > > + > > + final String group = artifact.substring( 0, n ) ; > > + final String name = artifact.substring( n + 1 ) ; > > + return getArtifact( group, name, version, type ) ; > > + } > > > > Just thinking - if n < 1, then assign the artifact value to both group > and name. > > Stephen. > > > > > -- > > Stephen J. McConnell > mailto:[EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
