Deprecated API
Contents
-
Deprecated Classes
-
Deprecated FieldsFieldDescriptionUse
StandardCharsets.UTF_8
directly instead.UseStandardCharsets.UTF_8
directly instead.Callers should usePacketLineIn.isDelimiter(String)
to check if a string is the delimiter.Callers should usePacketLineIn.isEnd(String)
to check if a string is the end marker, orPacketLineIn.readStrings()
to iterate over all strings in the input stream until the marker is reached.useStandardCharsets.UTF_8
instead
-
Deprecated MethodsMethodDescriptionthis method was badly named comparing its semantics to native git's checkout --force option, use
CheckoutCommand.setForceRefUpdate(boolean)
insteaduseStashApplyCommand.setRestoreIndex(boolean)
insteaduseStashApplyCommand.setRestoreUntracked(boolean)
insteaduseDirCacheEntry.getLastModifiedInstant()
insteaduseDirCacheEntry.mightBeRacilyClean(Instant)
insteaduseDirCacheEntry.setLastModified(Instant)
insteadno widely used Git versions need this any moreno widely used Git versions need this any moreuseFileSnapshot.lastModifiedInstant()
insteaduseFileSnapshot.save(Instant)
instead.useLockFile.getCommitLastModifiedInstant()
insteadusecfg.install()
to avoid internal reference.useAnyObjectId.isEqual(AnyObjectId, AnyObjectId)
insteaduseObjectBuilder.setEncoding(Charset)
instead.since 5.6; default value depends on whether the repository is bare. UseConfig.getEnum(String, String, String, Enum)
directly.UseRefDatabase.findRef(String)
instead.useRefDatabase.getRefsByPrefix(java.lang.String)
insteadusegetRefDatabase().getRefs()
instead.usegetRefDatabase().getRefsByPrefix(R_TAGS)
insteadusegetObjectDatabase().has(objectId)
usegetRefDatabase().peel(ref)
instead.since 5.11; useTagBuilder.build()
insteaduseObjectReader#createObjectReachabilityChecker(ObjectWalk)
instead.useObjectReader#createReachabilityChecker(RevWalk)
instead.useWindowCacheStats.getOpenByteCount()
insteaduseWindowCacheStats.getOpenFileCount()
insteadsince 5.2; useJschSession.getFtpChannel()
insteadno widely used Git versions need this any moreuseRefAdvertiser.send(Collection)
instead.UseTransport.getFilterSpec()
insteadUseTransport.setFilterSpec(FilterSpec)
insteadUseUploadPack.getFilterSpec()
insteadinternal use onlyuseFileUtils.lastModifiedInstant(Path)
instead which returns FileTimeuse getLastModifiedInstant insteaduseFS.createNewFileAtomic(File)
insteaduseFS.lastModifiedInstant(Path)
insteadUseFS.FileStoreAttributes.setBackground(boolean)
insteaduseFS.setLastModified(Path, Instant)
instead
-
Deprecated ConstructorsConstructorDescriptionsince 5.9, use
AutoLFInputStream.create(InputStream, StreamFlag...)
insteadsince 5.9, useAutoLFInputStream.create(InputStream, StreamFlag...)
instead