aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse/jgit/lib/PersonIdent.java
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2024-12-24 17:10:29 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2024-12-24 17:15:19 +0100
commit0be7e96ed1aef31acc945974aa1f0fd190a3f795 (patch)
treeae4eed4d3593af8a72fb265fdab2d21c5e77433f /org.eclipse.jgit/src/org/eclipse/jgit/lib/PersonIdent.java
parenta1c3a818b739ee2bedfda1c69cdac23989f1e97f (diff)
downloadjgit-0be7e96ed1aef31acc945974aa1f0fd190a3f795.tar.gz
jgit-0be7e96ed1aef31acc945974aa1f0fd190a3f795.zip
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
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/lib/PersonIdent.java')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/lib/PersonIdent.java2
1 files changed, 2 insertions, 0 deletions
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$