lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r487929 - /lucene/java/trunk/src/java/org/apache/lucene/store/BufferedIndexInput.java
Date Sun, 17 Dec 2006 02:24:50 GMT
Author: yonik
Date: Sat Dec 16 18:24:49 2006
New Revision: 487929

URL: http://svn.apache.org/viewvc?view=rev&rev=487929
Log:
fix confusing indentation

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/store/BufferedIndexInput.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/store/BufferedIndexInput.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/store/BufferedIndexInput.java?view=diff&rev=487929&r1=487928&r2=487929
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/store/BufferedIndexInput.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/store/BufferedIndexInput.java Sat Dec 16
18:24:49 2006
@@ -39,7 +39,7 @@
     if(len <= (bufferLength-bufferPosition)){
       // the buffer contains enough data to satistfy this request
       if(len>0) // to allow b to be null if len is 0...
-    	  System.arraycopy(buffer, bufferPosition, b, offset, len);
+        System.arraycopy(buffer, bufferPosition, b, offset, len);
       bufferPosition+=len;
     } else {
       // the buffer does not have enough data. First serve all we've got.
@@ -68,11 +68,11 @@
         // performance reason not to read it all at once. Note that unlike
         // the previous code of this function, there is no need to do a seek
         // here, because there's no need to reread what we had in the buffer.
-    	long after = bufferStart+bufferPosition+len;
-    	if(after > length())
-            throw new IOException("read past EOF");  		
+        long after = bufferStart+bufferPosition+len;
+        if(after > length())
+          throw new IOException("read past EOF");
         readInternal(b, offset, len);
-    	bufferStart = after; 
+        bufferStart = after;
         bufferPosition = 0;
         bufferLength = 0;                    // trigger refill() on read
       }
@@ -103,7 +103,7 @@
    * @param length the number of bytes to read
    */
   protected abstract void readInternal(byte[] b, int offset, int length)
-       throws IOException;
+          throws IOException;
 
   public long getFilePointer() { return bufferStart + bufferPosition; }
 



Mime
View raw message