You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by di...@apache.org on 2004/01/08 06:25:51 UTC

cvs commit: maven/src/java/org/apache/maven/repository AbstractArtifact.java

dion        2004/01/07 21:25:51

  Modified:    src/java/org/apache/maven/repository Tag: MAVEN-1_0-BRANCH
                        AbstractArtifact.java
  Log:
  Code cleanup
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.22.4.1  +5 -2      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
  retrieving revision 1.22.4.1
  diff -u -r1.22 -r1.22.4.1
  --- AbstractArtifact.java	21 Aug 2003 04:02:52 -0000	1.22
  +++ AbstractArtifact.java	8 Jan 2004 05:25:51 -0000	1.22.4.1
  @@ -89,6 +89,9 @@
       /** Path to artifact. */
       private String path;
   
  +    /** buffer size for file reading */
  +    private static final int FILE_BUFFER_SIZE = 512;
  +
       /**
        * Default constructor.
        * @param dependency the dependency the artifact is based on
  @@ -240,7 +243,7 @@
           FileInputStream in = new FileInputStream( file );
   
           int count;
  -        byte[] b = new byte[512];
  +        byte[] b = new byte[FILE_BUFFER_SIZE];
           while ( ( count = in.read( b ) ) > 0 )  // blocking read
           {
               buf.append( new String( b, 0, count ) );
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org