]> source.dussan.org Git - jgit.git/commit
ChangeIdUtil: Don't throw IOException 70/64670/4
authorDave Borowitz <dborowitz@google.com>
Tue, 19 Jan 2016 16:13:40 +0000 (11:13 -0500)
committerDave Borowitz <dborowitz@google.com>
Tue, 19 Jan 2016 22:59:19 +0000 (17:59 -0500)
commit2ccea7f05a0f3e783f6a8fa3f07cc5f1001bc950
treef668b9fea889815cbe7deedbfdbaa30a413fa741
parenta693d7b33c9c7d7315974feff6cefe4ab84fb9a6
ChangeIdUtil: Don't throw IOException

This could have only happened during the getBytes call. Instead, use
Constants.encode, which is a non-throwing implementation.

This change is binary compatible with existing code compiled against
older versions of JGit, although it might break compilation of
previously compiling code due to dead catch blocks.

Change-Id: I191fec5cac718657407230de141440e86d0151fb
org.eclipse.jgit/src/org/eclipse/jgit/util/ChangeIdUtil.java