Browse Source

RawParseUtils: Avoid import of java.nio.charset.StandardCharsets

The import is only needed because of a reference to it in the Javadoc,
and can be avoided by explicitly specifying the package instead, which
is how it's referenced in other cases (Constants, FileHeader).

Change-Id: I0c6254a9adf1f52fb8f2c04a858b11696ad264f5
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
stable-5.4
David Pursehouse 6 years ago
parent
commit
b7810bf5a8
  1. 3
      org.eclipse.jgit/src/org/eclipse/jgit/util/RawParseUtils.java

3
org.eclipse.jgit/src/org/eclipse/jgit/util/RawParseUtils.java

@ -57,7 +57,6 @@ import java.nio.charset.Charset;
import java.nio.charset.CharsetDecoder; import java.nio.charset.CharsetDecoder;
import java.nio.charset.CodingErrorAction; import java.nio.charset.CodingErrorAction;
import java.nio.charset.IllegalCharsetNameException; import java.nio.charset.IllegalCharsetNameException;
import java.nio.charset.StandardCharsets;
import java.nio.charset.UnsupportedCharsetException; import java.nio.charset.UnsupportedCharsetException;
import java.util.Arrays; import java.util.Arrays;
import java.util.HashMap; import java.util.HashMap;
@ -76,7 +75,7 @@ public final class RawParseUtils {
* UTF-8 charset constant. * UTF-8 charset constant.
* *
* @since 2.2 * @since 2.2
* @deprecated use {@link StandardCharsets#UTF_8} instead * @deprecated use {@link java.nio.charset.StandardCharsets#UTF_8} instead
*/ */
@Deprecated @Deprecated
public static final Charset UTF8_CHARSET = UTF_8; public static final Charset UTF8_CHARSET = UTF_8;

Loading…
Cancel
Save