diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/BlockBasedFile.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/BlockBasedFile.java index 4d1474244..4e4a26f4e 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/BlockBasedFile.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/BlockBasedFile.java @@ -213,7 +213,7 @@ abstract class BlockBasedFile { private final DfsPackDescription desc; private final PackExt ext; - private ReadableChannel rc = null; + private ReadableChannel rc; LazyChannel(DfsReader ctx, DfsPackDescription desc, PackExt ext) { this.ctx = ctx; @@ -224,11 +224,7 @@ abstract class BlockBasedFile { @Override public ReadableChannel get() throws IOException { if (rc == null) { - synchronized (this) { - if (rc == null) { - rc = ctx.db.openFile(desc, ext); - } - } + rc = ctx.db.openFile(desc, ext); } return rc; }