Top For Removal Deprecated By Reference
JGit 7.2.0.202503040940-r

Deprecated API


Terminally Deprecated Item Summary

SinceTerminally Deprecated Item and Description
7.2
7.2
7.2

Deprecated Item Summary

SinceDeprecated Item and Description
7.2

Returns:

this instance
org.eclipse.jgit.api.GarbageCollectCommand.setExpire
(Date
minimal age of objects to be pruned.
expire
)

use setExpire(Instant) instead

Returns:

true if the client has the chunked encoding bug.
org.eclipse.jgit.http.server.ClientVersionUtil.hasChunkedEncodingRequestBug
(int[]
parsed version of the Git client software.
version
,
HttpServletRequest
incoming HTTP request.
request
)

no widely used Git versions need this any more

Returns:

true if the bug is present.
org.eclipse.jgit.http.server.ClientVersionUtil.hasPushStatusBug
(int[]
parsed version of the Git client software.
version
)

no widely used Git versions need this any more

7.2
org.eclipse.jgit.internal.storage.file.GC.setExpire(Date
instant in time which defines object expiration objects with modification time before this instant are expired objects with modification time newer or equal to this instant are not expired
expire
)

use setExpire(Instant) instead

7.2
org.eclipse.jgit.internal.storage.file.GC.setPackExpire(Date
instant in time which defines packfile expiration
packExpire
)

use setPackExpire(Instant) instead

org.eclipse.jgit.internal.storage.file.WindowCache.reconfigure(WindowCacheConfig
the new window cache configuration.
cfg
)

use cfg.install() to avoid internal reference.

Returns:

the newly created repository, opened for access
org.eclipse.jgit.junit.LocalDiskRepositoryTestCase.createRepository
(boolean
true to create a bare repository; false to make a repository within its working directory
bare
,
boolean
auto close the repository in tearDown()
autoClose
)

use createRepository(boolean) instead

7.2

Returns:

current date.
org.eclipse.jgit.junit.TestRepository.getDate
()

Use getInstant() instead.

7.2

Returns:

timezone used for default identities.
org.eclipse.jgit.junit.TestRepository.getTimeZone
()

Use getTimeZoneId() instead.

Returns:

the selected enumeration value, or defaultValue.
org.eclipse.jgit.lib.Config.getEnum
(T[]
all possible values in the enumeration which should be recognized. Typically EnumType.values().
all
,
String
section the key is grouped within.
section
,
String
subsection name, such a remote or branch name.
subsection
,
String
name of the key to get.
name
,
T
default value to return if no value was present.
defaultValue
)

use getEnum(String, String, String, Enum) or {getEnum(Enum[], String, String, String)} instead.

7.1
7.1
org.eclipse.jgit.lib.PersonIdent(PersonIdent pi, Date
local time
aWhen
)

Use the variant with an Instant instead

7.1
org.eclipse.jgit.lib.PersonIdent(final String aName, final String aEmailAddress, final Date
local time stamp
aWhen
,
final TimeZone
time zone
aTZ
)

Use the variant with Instant and ZoneId instead

7.1
org.eclipse.jgit.lib.PersonIdent(PersonIdent pi, long
local time stamp
aWhen
,
int
time zone
aTZ
)

Use the variant with Instant and ZoneId instead

7.1
org.eclipse.jgit.lib.PersonIdent(final String aName, final String aEmailAddress, final long
local time stamp
aWhen
,
final int
time zone
aTZ
)

Use the variant with Instant and ZoneId instead

7.2

Returns:

time zone object for the given offset.
org.eclipse.jgit.lib.PersonIdent.getTimeZone
(int
timezone offset as in getTimeZoneOffset().
tzOffset
)

use getZoneId(int) instead

7.1

Returns:

this person's declared time zone; null if time zone is unknown.
org.eclipse.jgit.lib.PersonIdent.getTimeZone
()

Use getZoneId instead

7.1

Returns:

this person's declared time zone as minutes east of UTC. If the timezone is to the west of UTC it is negative.
org.eclipse.jgit.lib.PersonIdent.getTimeZoneOffset
()

Use getZoneOffset() and read minutes from there

7.1

Returns:

timestamp
org.eclipse.jgit.lib.PersonIdent.getWhen
()

Use getWhenAsInstant instead

Returns:

modifiable map that is a complete snapshot of the current reference namespace, with prefix removed from the start of each key. The map can be an unsorted map.
org.eclipse.jgit.lib.RefDatabase.getRefs
(String
prefix to search the namespace with; must end with /. If the empty string (ALL), obtain a complete snapshot of all references.
prefix
)

use getRefsByPrefix instead

Returns:

mutable map of all known refs (heads, tags, remotes).
org.eclipse.jgit.lib.Repository.getAllRefs
()

use getRefDatabase().getRefs() instead.

7.2

Returns:

a org.eclipse.jgit.lib.ReflogReader for the supplied refname, or null if the named ref does not exist.
org.eclipse.jgit.lib.Repository.getReflogReader
(String refName)

use #getRefDatabase().getReflogReader(String) instead

7.2

Returns:

a org.eclipse.jgit.lib.ReflogReader for the supplied ref.
org.eclipse.jgit.lib.Repository.getReflogReader
(Ref
a Ref
ref
)

use #getRefDatabase().getReflogReader(Ref) instead

Returns:

mutable map of all tags; key is short tag name ("v1.0") and value of the entry contains the ref with the full tag name ("refs/tags/v1.0").
org.eclipse.jgit.lib.Repository.getTags
()

use getRefDatabase().getRefsByPrefix(R_TAGS) instead

Returns:

true if any value or defaultValue is true, false for missing or explicit false
org.eclipse.jgit.lib.TypedConfigGetter.getBoolean
(Config
to get the value from
config
,
String
section the key is grouped within.
section
,
String
subsection name, such a remote or branch name.
subsection
,
String
name of the key to get.
name
,
boolean
default value to return if no value was present.
defaultValue
)

use getBoolean(Config, String, String, String, Boolean) instead

Returns:

an integer value from the configuration, or defaultValue.
org.eclipse.jgit.lib.TypedConfigGetter.getInt
(Config
to get the value from
config
,
String
section the key is grouped within.
section
,
String
subsection name, such a remote or branch name.
subsection
,
String
name of the key to get.
name
,
int
default value to return if no value was present.
defaultValue
)

use getInt(Config, String, String, String, Integer) instead

Returns:

an integer value from the configuration, or defaultValue. #UNSET_INT if unset.
org.eclipse.jgit.lib.TypedConfigGetter.getIntInRange
(Config
to get the value from
config
,
String
section the key is grouped within.
section
,
String
subsection name, such a remote or branch name.
subsection
,
String
name of the key to get.
name
,
int
minimal value
minValue
,
int
maximum value
maxValue
,
int
default value to return if no value was present. Use #UNSET_INT to set the default to unset.
defaultValue
)

use getIntInRange(Config, String, String, String, int, int, Integer) instead

Returns:

a long value from the configuration, or defaultValue.
org.eclipse.jgit.lib.TypedConfigGetter.getLong
(Config
to get the value from
config
,
String
section the key is grouped within.
section
,
String
subsection name, such a remote or branch name.
subsection
,
String
name of the key to get.
name
,
long
default value to return if no value was present.
defaultValue
)

use getLong(Config, String, String, String, Long) instead

Returns:

the value, or defaultValue if not set, expressed in units.
org.eclipse.jgit.lib.TypedConfigGetter.getTimeUnit
(Config
to get the value from
config
,
String
section the key is in.
section
,
String
subsection the key is in, or null if not in a subsection.
subsection
,
String
the key name.
name
,
long
default value to return if no value was present.
defaultValue
,
TimeUnit
the units of defaultValue and the return value, as well as the units to assume if the value does not contain an indication of the units.
wantUnit
)

use getTimeUnit(Config, String, String, String, Long, TimeUnit) instead

7.2

Returns:

a new filter to select commits on or after ts.
org.eclipse.jgit.revwalk.filter.CommitTimeRevFilter.after
(Date
the point in time to cut on.
ts
)

Use after(Instant) instead.

7.2

Returns:

a new filter to select commits on or before ts.
org.eclipse.jgit.revwalk.filter.CommitTimeRevFilter.before
(Date
the point in time to cut on.
ts
)

Use before(Instant) instead.

7.2

Returns:

a new filter to select commits between the given date/times.
org.eclipse.jgit.revwalk.filter.CommitTimeRevFilter.between
(Date
the point in time to cut on.
since
,
Date
the point in time to cut off.
until
)

Use between(Instant, Instant) instead.

7.2

Returns:

a new filter to select commits between the given date/times.
org.eclipse.jgit.revwalk.filter.CommitTimeRevFilter.between
(long
the point in time to cut on, in milliseconds.
since
,
long
the point in time to cut off, in millisconds.
until
)

Use between(Instant, Instant) instead.

Returns:

the parent of this tree parser.
org.eclipse.jgit.treewalk.CanonicalTreeParser.getParent
()

internal use only

7.1

Returns:

new position just after the line end. This is either b.length, or the index of the header's terminating newline.
org.eclipse.jgit.util.RawParseUtils.headerEnd
(final byte[]
buffer to scan.
b
,
int
position within buffer to start looking for the header (normally a new-line).
ptr
)

use {nextLfSkippingSplitLines} directly instead

7.2

Returns:

age of given java.util.Date compared to now formatted in the same relative format as returned by git log --relative-date
org.eclipse.jgit.util.RelativeDateFormatter.format
(Date
java.util.Date to format
when
)

Use format(Instant) instead.

7.1

Returns:

the current system time
org.eclipse.jgit.util.SystemReader.getCurrentTime
()

Use now()

7.1

Returns:

system time zone, possibly mocked for testing
org.eclipse.jgit.util.SystemReader.getTimeZone
()

Use getTimeZoneId()

7.1

Returns:

the local time zone
org.eclipse.jgit.util.SystemReader.getTimezone
(long
a system timestamp
when
)

Use getTimeZoneAt(Instant) instead.

7.2

Returns:

time since epoch, with up to millisecond resolution.
org.eclipse.jgit.util.time.ProposedTimestamp.date
()

Use instant() instead

7.2

Returns:

time since epoch, with up to microsecond resolution.
org.eclipse.jgit.util.time.ProposedTimestamp.timestamp
()

Use instant() instead

Deprecated Reference Summary

SinceItem with Deprecated Reference and Description
org.eclipse.jgit.lib.CoreConfig.TrustLooseRefStat.AFTER_OPEN

CoreConfig.TrustLooseRefStat is deprecated or references (maybe indirectly) at least one deprecated element.

org.eclipse.jgit.lib.CoreConfig.TrustLooseRefStat.ALWAYS

CoreConfig.TrustLooseRefStat is deprecated or references (maybe indirectly) at least one deprecated element.

org.eclipse.jgit.lib.CoreConfig.TrustLooseRefStat.valueOf(String name)

CoreConfig.TrustLooseRefStat is deprecated or references (maybe indirectly) at least one deprecated element.

org.eclipse.jgit.lib.CoreConfig.TrustLooseRefStat.values()

CoreConfig.TrustLooseRefStat is deprecated or references (maybe indirectly) at least one deprecated element.

org.eclipse.jgit.lib.CoreConfig.TrustPackedRefsStat.AFTER_OPEN

CoreConfig.TrustPackedRefsStat is deprecated or references (maybe indirectly) at least one deprecated element.

org.eclipse.jgit.lib.CoreConfig.TrustPackedRefsStat.ALWAYS

CoreConfig.TrustPackedRefsStat is deprecated or references (maybe indirectly) at least one deprecated element.

org.eclipse.jgit.lib.CoreConfig.TrustPackedRefsStat.NEVER

CoreConfig.TrustPackedRefsStat is deprecated or references (maybe indirectly) at least one deprecated element.

org.eclipse.jgit.lib.CoreConfig.TrustPackedRefsStat.UNSET

CoreConfig.TrustPackedRefsStat is deprecated or references (maybe indirectly) at least one deprecated element.

org.eclipse.jgit.lib.CoreConfig.TrustPackedRefsStat.valueOf(String name)

CoreConfig.TrustPackedRefsStat is deprecated or references (maybe indirectly) at least one deprecated element.

org.eclipse.jgit.lib.CoreConfig.TrustPackedRefsStat.values()

CoreConfig.TrustPackedRefsStat is deprecated or references (maybe indirectly) at least one deprecated element.

org.eclipse.jgit.junit.http.RecordingLogger

MarkerIgnoringBase is deprecated or references (maybe indirectly) at least one deprecated element.