diff options
author | David Pursehouse <david.pursehouse@gmail.com> | 2018-03-07 08:48:12 +0900 |
---|---|---|
committer | David Pursehouse <david.pursehouse@gmail.com> | 2018-03-07 09:04:36 +0900 |
commit | 3195d2fb9b37e0910781a90e0bdf356fb98627bc (patch) | |
tree | e48d3466a7cce64d222e119d9ecfb6474a89ca3d /org.eclipse.jgit.pgm | |
parent | f91ce7faad1ffdb31c1f0a801b0c9e43bb8ab260 (diff) | |
download | jgit-3195d2fb9b37e0910781a90e0bdf356fb98627bc.tar.gz jgit-3195d2fb9b37e0910781a90e0bdf356fb98627bc.zip |
CommandCatalog: Use StandardCharsets.UTF_8
Change-Id: I7c3356335cfedd81f663fd528799fc57b95fcf0f
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.pgm')
-rw-r--r-- | org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/CommandCatalog.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/CommandCatalog.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/CommandCatalog.java index 7bab69210b..81aeef8cdd 100644 --- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/CommandCatalog.java +++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/CommandCatalog.java @@ -43,6 +43,8 @@ package org.eclipse.jgit.pgm; +import static java.nio.charset.StandardCharsets.UTF_8; + import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; @@ -149,7 +151,7 @@ public class CommandCatalog { final BufferedReader cIn; try { final InputStream in = cUrl.openStream(); - cIn = new BufferedReader(new InputStreamReader(in, "UTF-8")); //$NON-NLS-1$ + cIn = new BufferedReader(new InputStreamReader(in, UTF_8)); } catch (IOException err) { // If we cannot read from the service list, go to the next. // |