]> source.dussan.org Git - jgit.git/commit
PatchApplierTest: specify charset to avoid warning 72/201072/2
authorJonathan Tan <jonathantanmy@google.com>
Tue, 4 Apr 2023 23:49:30 +0000 (16:49 -0700)
committerJonathan Tan <jonathantanmy@google.com>
Wed, 5 Apr 2023 20:46:56 +0000 (13:46 -0700)
commit3589c5cd1c0dc2b68880aa70728ff65566ad78da
tree5a4f4c98d84e49d461efed367987f630ae1a59af
parent5a6e3560820584bab3604d68a04a18c929ea8bcd
PatchApplierTest: specify charset to avoid warning

Running

  bazel test //org.eclipse.jgit.test:org_eclipse_jgit_patch_PatchApplierTest

results in a DefaultCharset error on my machine, which can be avoided
by explicitly specifying a charset when calling getBytes on a string. In
these tests, the charset used doesn't really matter, so go with UTF_8.

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Change-Id: Id7721cc5b7ea650e77c2db47042715487983cae6
org.eclipse.jgit.test/tst/org/eclipse/jgit/patch/PatchApplierTest.java