summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2024-08-30 17:17:29 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2024-09-03 16:11:03 +0200
commitec97acb808f0685ca3e09389301bf1d3c606f607 (patch)
tree90e157cf5308515edc3edb079035a2c123adae7c
parent65bc6e4f055d1522476b2ca2da1613a39341bf0e (diff)
downloadjgit-ec97acb808f0685ca3e09389301bf1d3c606f607.tar.gz
jgit-ec97acb808f0685ca3e09389301bf1d3c606f607.zip
Remove deprecated FileSnapshot.save(long) method
Change-Id: I9b77142127cc96ee6658e85a6cf0586d941c5c0c
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileSnapshot.java23
1 files changed, 0 insertions, 23 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileSnapshot.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileSnapshot.java
index 8701a1291b..c4fa3eeb99 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileSnapshot.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileSnapshot.java
@@ -139,29 +139,6 @@ public class FileSnapshot {
* @param modified
* the last modification time of the file
* @return the snapshot.
- * @deprecated use {@link #save(Instant)} instead.
- */
- @Deprecated
- public static FileSnapshot save(long modified) {
- final Instant read = Instant.now();
- return new FileSnapshot(read, Instant.ofEpochMilli(modified),
- UNKNOWN_SIZE, FALLBACK_TIMESTAMP_RESOLUTION, MISSING_FILEKEY);
- }
-
- /**
- * Record a snapshot for a file for which the last modification time is
- * already known.
- * <p>
- * This method should be invoked before the file is accessed.
- * <p>
- * Note that this method cannot rely on measuring file timestamp resolution
- * to avoid racy git issues caused by finite file timestamp resolution since
- * it's unknown in which filesystem the file is located. Hence the worst
- * case fallback for timestamp resolution is used.
- *
- * @param modified
- * the last modification time of the file
- * @return the snapshot.
*/
public static FileSnapshot save(Instant modified) {
final Instant read = Instant.now();