From 0be7e96ed1aef31acc945974aa1f0fd190a3f795 Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Tue, 24 Dec 2024 17:10:29 +0100 Subject: Mark static method PersonIdent#getTimeZone as deprecated since it's using java.util.Timezone. Instead promote usage of #getZoneId which uses ZoneId from the preferred java.time API. Change-Id: I15dee551a81acf0b8aafdbfcfcf200c0d38069f4 --- org.eclipse.jgit/src/org/eclipse/jgit/lib/PersonIdent.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/lib/PersonIdent.java') diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/PersonIdent.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/PersonIdent.java index f22642c4ce..50f4a83b93 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/PersonIdent.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/PersonIdent.java @@ -45,7 +45,9 @@ public class PersonIdent implements Serializable { * timezone offset as in {@link #getTimeZoneOffset()}. * @return time zone object for the given offset. * @since 4.1 + * @deprecated use {@link #getZoneId(int)} instead */ + @Deprecated(since = "7.2") public static TimeZone getTimeZone(int tzOffset) { StringBuilder tzId = new StringBuilder(8); tzId.append("GMT"); //$NON-NLS-1$ -- cgit v1.2.3