brett       2004/06/05 20:06:45

  Modified:    src/java/org/apache/maven/repository Tag: MAVEN-1_0-BRANCH
                        AbstractArtifact.java
  Log:
  PR: MAVEN-1309
  Submitted by: Jerome Lacoste
  Reviewed by:  Brett Porter
  cleanup
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.22.4.5  +5 -8      maven/src/java/org/apache/maven/repository/AbstractArtifact.java
  
  Index: AbstractArtifact.java
  ===================================================================
  RCS file: 
/home/cvs/maven/src/java/org/apache/maven/repository/AbstractArtifact.java,v
  retrieving revision 1.22.4.4
  retrieving revision 1.22.4.5
  diff -u -r1.22.4.4 -r1.22.4.5
  --- AbstractArtifact.java     1 Mar 2004 22:36:39 -0000       1.22.4.4
  +++ AbstractArtifact.java     6 Jun 2004 03:06:45 -0000       1.22.4.5
  @@ -106,10 +106,7 @@
       /** @see Artifact#getChecksumUrl */
       public String getChecksumUrl()
       {
  -        return "/" + getDependency().getArtifactDirectory()
  -             + "/" + getDependency().getType() + "s"
  -             + "/" + getDependency().getArtifact()
  -             + ".md5";
  +        return getUrlPath() + ".md5";
       }
   
       /**
  @@ -147,7 +144,7 @@
       public void verify()
           throws ChecksumVerificationException
       {
  -            File checksumFile = new File( getFile() + ".md5" );
  +        File checksumFile = new File( getFile() + ".md5" );
   
           // The central repository is not fully populated with md5
           // checksum files yet so we'll be a little lax right now but
  @@ -158,8 +155,8 @@
               return;
           }
   
  -        String actualChecksum = null;
  -        MD5Sum md5 = null;
  +        String actualChecksum;
  +        MD5Sum md5;
   
           try
           {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to