diff options
author | David Pursehouse <david.pursehouse@gmail.com> | 2018-03-06 13:39:37 +0900 |
---|---|---|
committer | David Pursehouse <david.pursehouse@gmail.com> | 2018-03-06 16:56:13 +0900 |
commit | 657e4148243fcc06765ed5655295706e7e88b819 (patch) | |
tree | 5e680ab6e68f0475908a0327f3194e37788652a5 /org.eclipse.jgit.test | |
parent | 751a08b2f4f745cb0ab0d035d5561fd061166dfa (diff) | |
download | jgit-657e4148243fcc06765ed5655295706e7e88b819.tar.gz jgit-657e4148243fcc06765ed5655295706e7e88b819.zip |
WalkEncryptionTest: Use StandardCharsets.UTF_8
Change-Id: I6eb8a33be62c452c264fb0560b988144d80a41f9
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.test')
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/WalkEncryptionTest.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/WalkEncryptionTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/WalkEncryptionTest.java index 1b434d3ddc..cb04f83fb5 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/WalkEncryptionTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/WalkEncryptionTest.java @@ -43,7 +43,7 @@ package org.eclipse.jgit.transport; -import static org.eclipse.jgit.transport.WalkEncryptionTest.Util.UTF_8; +import static java.nio.charset.StandardCharsets.UTF_8; import static org.eclipse.jgit.transport.WalkEncryptionTest.Util.cryptoCipherListPBE; import static org.eclipse.jgit.transport.WalkEncryptionTest.Util.cryptoCipherListTrans; import static org.eclipse.jgit.transport.WalkEncryptionTest.Util.folderDelete; @@ -77,7 +77,6 @@ import java.net.SocketTimeoutException; import java.net.URL; import java.net.URLConnection; import java.net.UnknownHostException; -import java.nio.charset.Charset; import java.nio.file.Files; import java.security.GeneralSecurityException; import java.security.Provider; @@ -353,8 +352,6 @@ public class WalkEncryptionTest { */ static class Util { - static final Charset UTF_8 = Charset.forName("UTF-8"); - /** * Read UTF-8 encoded text file into string. * |