From 17882b1cd8e66a174468633b1b8eb695c86011cf Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Mon, 16 Sep 2024 08:30:39 +0200 Subject: [PATCH] NoteMapMerger: remove unnecessary cast Change-Id: I3be4963f506529bbadc5b6dfc0b625ee85effc1f --- org.eclipse.jgit/src/org/eclipse/jgit/notes/NoteMapMerger.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/notes/NoteMapMerger.java b/org.eclipse.jgit/src/org/eclipse/jgit/notes/NoteMapMerger.java index 79ceb1316a..30512c17b8 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/notes/NoteMapMerger.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/notes/NoteMapMerger.java @@ -199,7 +199,7 @@ public class NoteMapMerger { if (child == null) return; if (child instanceof InMemoryNoteBucket) - b.setBucket(cell, ((InMemoryNoteBucket) child).writeTree(inserter)); + b.setBucket(cell, child.writeTree(inserter)); else b.setBucket(cell, child.getTreeId()); } -- 2.39.5