git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[JGIT PATCH 2/5] Add missing @Override annotations to UnpackedObjectLoader

From
Shawn O. Pearce <spearce@spearce.org>
Date
Apr 23, 2009, 03:36 UTC
Message-ID
<1240457783-21434-3-git-send-email-spearce@spearce.org>
In-Reply-To
<1240457783-21434-2-git-send-email-spearce@spearce.org>
These are declared by the base class, ObjectLoader.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
---
 .../org/spearce/jgit/lib/UnpackedObjectLoader.java |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
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 1352b72..e2de41c 100644
--- a/org.spearce.jgit/src/org/spearce/jgit/lib/UnpackedObjectLoader.java
+++ b/org.spearce.jgit/src/org/spearce/jgit/lib/UnpackedObjectLoader.java
@@ -192,10 +192,12 @@ private void decompress(final AnyObjectId id, final Inflater inf, int p)
 			throw new CorruptObjectException(id, "incorrect length");
 	}
 
+	@Override
 	public int getType() {
 		return objectType;
 	}
 
+	@Override
 	public long getSize() {
 		return objectSize;
 	}
-- 
1.6.3.rc1.205.g37f8
Previous: Shawn O. PearceNext: Shawn O. Pearce
Message 3 of 6 in “Make ObjectLoader safer during repack”
  1. 0/5 Make ObjectLoader safer during repackShawn O. Pearce, Apr 23, 2009
  2. 1/5 Remove throws IOException from UnpackedObjectLoader.getCachedBytesShawn O. Pearce, Apr 23, 2009
  3. 2/5 Add missing @Override annotations to UnpackedObjectLoaderShawn O. Pearce, Apr 23, 2009
  4. 3/5 Fully materialize an ObjectLoader before returning it from ObjectDatabaseShawn O. Pearce, Apr 23, 2009
  5. 4/5 Test that ObjectLoader stays valid across repacksShawn O. Pearce, Apr 23, 2009
  6. 5/5 Teach PackWriter to recover from removed/replaced packsShawn O. Pearce, Apr 23, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.