diff options
author | David Pursehouse <david.pursehouse@gmail.com> | 2018-03-07 08:29:51 +0900 |
---|---|---|
committer | David Pursehouse <david.pursehouse@gmail.com> | 2018-03-07 09:04:36 +0900 |
commit | 0b4e781f7c2c46d0abe0437c63d9656bc1842cd0 (patch) | |
tree | 5d7e231e4da9a04ddd8950bd7220ac5b5065ee07 /org.eclipse.jgit.test/tst/org/eclipse/jgit/api/NotesCommandTest.java | |
parent | 2c5b721161e40cdcfa76548739117ea198ed8942 (diff) | |
download | jgit-0b4e781f7c2c46d0abe0437c63d9656bc1842cd0.tar.gz jgit-0b4e781f7c2c46d0abe0437c63d9656bc1842cd0.zip |
Use StandardCharsets.UTF_8 in tests
Replace hard-coded "UTF-8" string with the constant.
Change-Id: Ie812add2df28e984090563ec7c6e2c0366616424
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.test/tst/org/eclipse/jgit/api/NotesCommandTest.java')
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/api/NotesCommandTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/NotesCommandTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/NotesCommandTest.java index 9d15699963..6e06e9545a 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/NotesCommandTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/NotesCommandTest.java @@ -42,6 +42,7 @@ */ package org.eclipse.jgit.api; +import static java.nio.charset.StandardCharsets.UTF_8; import static org.junit.Assert.assertEquals; import java.util.List; @@ -87,7 +88,7 @@ public class NotesCommandTest extends RepositoryTestCase { git.notesAdd().setObjectId(commit2).setMessage("data").call(); Note note = git.notesShow().setObjectId(commit2).call(); String content = new String(db.open(note.getData()).getCachedBytes(), - "UTF-8"); + UTF_8); assertEquals(content, "data"); git.notesRemove().setObjectId(commit2).call(); |