- Renamed a variable to reflect its functionality and fixed indentation.

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150132 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Otis Gospodnetic 2003-11-18 13:05:13 +00:00
parent 80071b33e3
commit 054d9a4029
1 changed files with 18 additions and 18 deletions

View File

@ -87,12 +87,12 @@ public final class RAMDirectory extends Directory {
* @exception IOException if an error occurs
*/
public RAMDirectory(Directory dir) throws IOException {
final String[] ar = dir.list();
for (int i = 0; i < ar.length; i++) {
final String[] files = dir.list();
for (int i = 0; i < files.length; i++) {
// make place on ram disk
OutputStream os = createFile(ar[i]);
OutputStream os = createFile(files[i]);
// read current file
InputStream is = dir.openFile(ar[i]);
InputStream is = dir.openFile(files[i]);
// and copy to ram disk
int len = (int) is.length();
byte[] buf = new byte[len];