From dd38922193ca1323906f67b9864332d2781a7d4f Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Wed, 22 Apr 2009 20:36:19 -0700 Subject: [PATCH] Remove throws IOException from UnpackedObjectLoader.getCachedBytes The UnpackedObjectLoader always fully materializes itself during the object's constructor. Thus the cached bytes are always ready on any invocation of getCachedBytes(), and this method will never fail. Signed-off-by: Shawn O. Pearce Signed-off-by: Robin Rosenberg --- org.spearce.jgit/src/org/spearce/jgit/lib/UnpackedObjectLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.spearce.jgit/src/org/spearce/jgit/lib/UnpackedObjectLoader.java b/org.spearce.jgit/src/org/spearce/jgit/lib/UnpackedObjectLoader.java index 7552b427..1352b72a 100644 --- a/org.spearce.jgit/src/org/spearce/jgit/lib/UnpackedObjectLoader.java +++ b/org.spearce.jgit/src/org/spearce/jgit/lib/UnpackedObjectLoader.java @@ -201,7 +201,7 @@ public class UnpackedObjectLoader extends ObjectLoader { } @Override - public byte[] getCachedBytes() throws IOException { + public byte[] getCachedBytes() { return bytes; } -- 2.11.4.GIT