@ -657,8 +657,8 @@ public final class DfsPackFile extends BlockBasedFile {
CorruptObjectException corruptObject = new CorruptObjectException (
CorruptObjectException corruptObject = new CorruptObjectException (
MessageFormat . format (
MessageFormat . format (
JGitText . get ( ) . objectAtHasBadZlibStream ,
JGitText . get ( ) . objectAtHasBadZlibStream ,
Long . valueOf ( src . offset ) , getFileName ( ) ) ) ;
Long . valueOf ( src . offset ) , getFileName ( ) ) ,
corruptObject . initCause ( dataFormat ) ;
dataFormat ) ;
throw new StoredObjectRepresentationNotAvailableException ( src ,
throw new StoredObjectRepresentationNotAvailableException ( src ,
corruptObject ) ;
corruptObject ) ;
@ -866,12 +866,11 @@ public final class DfsPackFile extends BlockBasedFile {
return new ObjectLoader . SmallObject ( type , data ) ;
return new ObjectLoader . SmallObject ( type , data ) ;
} catch ( DataFormatException dfe ) {
} catch ( DataFormatException dfe ) {
CorruptObjectException coe = new CorruptObjectException (
throw new CorruptObjectException (
MessageFormat . format (
MessageFormat . format (
JGitText . get ( ) . objectAtHasBadZlibStream , Long . valueOf ( pos ) ,
JGitText . get ( ) . objectAtHasBadZlibStream , Long . valueOf ( pos ) ,
getFileName ( ) ) ) ;
getFileName ( ) ) ,
coe . initCause ( dfe ) ;
dfe ) ;
throw coe ;
}
}
}
}
@ -1014,12 +1013,11 @@ public final class DfsPackFile extends BlockBasedFile {
try {
try {
return BinaryDelta . getResultSize ( getDeltaHeader ( ctx , deltaAt ) ) ;
return BinaryDelta . getResultSize ( getDeltaHeader ( ctx , deltaAt ) ) ;
} catch ( DataFormatException dfe ) {
} catch ( DataFormatException dfe ) {
CorruptObjectException coe = new CorruptObjectException (
throw new CorruptObjectException (
MessageFormat . format (
MessageFormat . format (
JGitText . get ( ) . objectAtHasBadZlibStream , Long . valueOf ( pos ) ,
JGitText . get ( ) . objectAtHasBadZlibStream , Long . valueOf ( pos ) ,
getFileName ( ) ) ) ;
getFileName ( ) ) ,
coe . initCause ( dfe ) ;
dfe ) ;
throw coe ;
}
}
}
}