Browse Source

Deprecate RawParseUtils.UTF8-CHARSET

That constant is just a redirection to a java standard constant
meanwhile. It is not referenced anymore in jgit code (and egit is just
removing it). Clients can use the redirection target directly.

Change-Id: I058d013f61da8d7b771c499d8743aafb8faa5ea8
Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
stable-5.3
Michael Keppler 6 years ago committed by Matthias Sohn
parent
commit
d8bb1d09d2
  1. 3
      org.eclipse.jgit/src/org/eclipse/jgit/util/RawParseUtils.java

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

@ -57,6 +57,7 @@ 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;
@ -75,7 +76,9 @@ 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
public static final Charset UTF8_CHARSET = UTF_8; public static final Charset UTF8_CHARSET = UTF_8;
private static final byte[] digits10; private static final byte[] digits10;

Loading…
Cancel
Save