]> source.dussan.org Git - jgit.git/commit
Remove pointless size test in PackFile decompress 45/1045/2
authorShawn O. Pearce <spearce@spearce.org>
Fri, 2 Jul 2010 23:56:31 +0000 (16:56 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Sat, 3 Jul 2010 17:54:30 +0000 (10:54 -0700)
commitfe9860a4441d606eb6d56da24197eb1797f275dc
tree226b8b7eb3d5c747dcaea1997f6dd8401c20d2a9
parent412ca65bd57f6ac3e86aba0f01533f0e1a5fd321
Remove pointless size test in PackFile decompress

Now that any large objects are forced through a streaming loader
when its bigger than getStreamFileThreshold(), and that threshold
is pegged at Integer.MAX_VALUE as its largest size, we will never
be able to reach this code path where we threw OutOfMemoryError.

Robin pointed out that we probably should include a message here,
but the code is effectively unreachable, so there isn't any value
in adding a message at this point.

So remove it.

Change-Id: Ie611d005622e38a75537f1350246df0ab89dd500
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/storage/file/PackFile.java