Skip to content

Commit

Permalink
accidentally used some jdk7 stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
spullara committed May 9, 2011
1 parent d5f0087 commit 7802f85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions file/src/main/java/avrobase/file/FAB.java
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public void put(K row, T value) throws AvroBaseException {
schemaOs.close();
}
}
File tmp = new File(file.toPath() + ".tmp");
File tmp = new File(file.getCanonicalPath() + ".tmp");
BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(tmp));
bos.write(hash.getBytes());
long version = 1;
Expand Down Expand Up @@ -306,7 +306,7 @@ public boolean put(K row, T value, long version) throws AvroBaseException {
schemaOs.close();
}
}
File tmp = new File(file.toPath() + ".tmp");
File tmp = new File(file.getCanonicalPath() + ".tmp");
BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(tmp));
bos.write(hash.getBytes());
bos.write(ByteBuffer.wrap(new byte[8]).putLong(version + 1).array());
Expand Down
Empty file.

0 comments on commit 7802f85

Please sign in to comment.