@ -59,6 +59,7 @@ import org.eclipse.jgit.diff.RenameDetector;
import org.eclipse.jgit.errors.CorruptObjectException ;
import org.eclipse.jgit.errors.CorruptObjectException ;
import org.eclipse.jgit.errors.IncorrectObjectTypeException ;
import org.eclipse.jgit.errors.IncorrectObjectTypeException ;
import org.eclipse.jgit.errors.MissingObjectException ;
import org.eclipse.jgit.errors.MissingObjectException ;
import org.eclipse.jgit.errors.RevisionSyntaxException ;
import org.eclipse.jgit.lib.Constants ;
import org.eclipse.jgit.lib.Constants ;
import org.eclipse.jgit.lib.FileMode ;
import org.eclipse.jgit.lib.FileMode ;
import org.eclipse.jgit.lib.ObjectId ;
import org.eclipse.jgit.lib.ObjectId ;
@ -175,7 +176,7 @@ class Show extends TextBuiltin {
/** {@inheritDoc} */
/** {@inheritDoc} */
@SuppressWarnings ( "boxing" )
@SuppressWarnings ( "boxing" )
@Override
@Override
protected void run ( ) throws Exception {
protected void run ( ) {
diffFmt . setRepository ( db ) ;
diffFmt . setRepository ( db ) ;
try {
try {
diffFmt . setPathFilter ( pathFilter ) ;
diffFmt . setPathFilter ( pathFilter ) ;
@ -224,6 +225,8 @@ class Show extends TextBuiltin {
obj . getType ( ) ) ) ;
obj . getType ( ) ) ) ;
}
}
}
}
} catch ( RevisionSyntaxException | IOException e ) {
throw die ( e . getMessage ( ) , e ) ;
} finally {
} finally {
diffFmt . close ( ) ;
diffFmt . close ( ) ;
}
}
@ -273,7 +276,7 @@ class Show extends TextBuiltin {
}
}
}
}
private void show ( RevWalk rw , RevCommit c ) throws Exception {
private void show ( RevWalk rw , RevCommit c ) throws IO Exception {
char [ ] outbuffer = new char [ Constants . OBJECT_ID_LENGTH * 2 ] ;
char [ ] outbuffer = new char [ Constants . OBJECT_ID_LENGTH * 2 ] ;
outw . print ( CLIText . get ( ) . commitLabel ) ;
outw . print ( CLIText . get ( ) . commitLabel ) ;