Skip to content
This repository was archived by the owner on Jan 14, 2026. It is now read-only.

Commit d8bb1d0

Browse files
Bananeweizenmsohn
authored andcommitted
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>
1 parent 530812d commit d8bb1d0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
import java.nio.charset.CharsetDecoder;
5858
import java.nio.charset.CodingErrorAction;
5959
import java.nio.charset.IllegalCharsetNameException;
60+
import java.nio.charset.StandardCharsets;
6061
import java.nio.charset.UnsupportedCharsetException;
6162
import java.util.Arrays;
6263
import java.util.HashMap;
@@ -75,7 +76,9 @@ public final class RawParseUtils {
7576
* UTF-8 charset constant.
7677
*
7778
* @since 2.2
79+
* @deprecated use {@link StandardCharsets#UTF_8} instead
7880
*/
81+
@Deprecated
7982
public static final Charset UTF8_CHARSET = UTF_8;
8083

8184
private static final byte[] digits10;

0 commit comments

Comments
 (0)