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>
This commit is contained in:
Michael Keppler 2019-01-03 07:57:02 +01:00 committed by Matthias Sohn
parent 530812d936
commit d8bb1d09d2
1 changed files with 3 additions and 0 deletions

View File

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