CommandCatalog: Use StandardCharsets.UTF_8
Change-Id: I7c3356335cfedd81f663fd528799fc57b95fcf0f Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
This commit is contained in:
parent
f91ce7faad
commit
3195d2fb9b
|
@ -43,6 +43,8 @@
|
||||||
|
|
||||||
package org.eclipse.jgit.pgm;
|
package org.eclipse.jgit.pgm;
|
||||||
|
|
||||||
|
import static java.nio.charset.StandardCharsets.UTF_8;
|
||||||
|
|
||||||
import java.io.BufferedReader;
|
import java.io.BufferedReader;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
|
@ -149,7 +151,7 @@ private void scan(final URL cUrl) {
|
||||||
final BufferedReader cIn;
|
final BufferedReader cIn;
|
||||||
try {
|
try {
|
||||||
final InputStream in = cUrl.openStream();
|
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) {
|
} catch (IOException err) {
|
||||||
// If we cannot read from the service list, go to the next.
|
// If we cannot read from the service list, go to the next.
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue