diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/LockFile.java b/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/LockFile.java index fc464cefe..6199f4c45 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/LockFile.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/LockFile.java @@ -304,15 +304,9 @@ public void write(final int b) throws IOException { out.write(b); } - @Override - public void flush() throws IOException { - out.flush(); - } - @Override public void close() throws IOException { try { - out.flush(); if (fsync) os.getChannel().force(true); out.close();