From 0055e7a6ee6b2ae7c75ca6fe3f720c4a619d1cb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20=E2=80=9CCLOVIS=E2=80=9D=20Canet?= Date: Tue, 24 Feb 2026 20:27:27 +0100 Subject: [PATCH] docs(bson): Fix the documented upper bound of ObjectId (2106, not 2016) --- bson/src/commonMain/kotlin/types/ObjectId.kt | 2 +- bson/src/commonMain/kotlin/types/ObjectIdGenerator.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bson/src/commonMain/kotlin/types/ObjectId.kt b/bson/src/commonMain/kotlin/types/ObjectId.kt index e18e4ffe..a21925ad 100644 --- a/bson/src/commonMain/kotlin/types/ObjectId.kt +++ b/bson/src/commonMain/kotlin/types/ObjectId.kt @@ -43,7 +43,7 @@ class ObjectId : Comparable { * The ObjectId creation timestamp, with a resolution of one second. * * This timestamp can represent time from the UNIX epoch (Jan 1 1970) and is stored as 32 unsigned bits - * (approximately Feb 2 2016, see [ObjectId.MAX]'s timestamp for an exact value). + * (approximately Feb 2 2106, see [ObjectId.MAX]'s timestamp for an exact value). */ val timestamp: Instant diff --git a/bson/src/commonMain/kotlin/types/ObjectIdGenerator.kt b/bson/src/commonMain/kotlin/types/ObjectIdGenerator.kt index 175898db..c5b65871 100644 --- a/bson/src/commonMain/kotlin/types/ObjectIdGenerator.kt +++ b/bson/src/commonMain/kotlin/types/ObjectIdGenerator.kt @@ -47,7 +47,7 @@ interface ObjectIdGenerator { * (according to [ObjectId.compareTo]) than one generated previously, but only if both were generated * during the same second. * - * However, it is guaranteed until [the year 2016][ObjectId.timestamp] that an ID + * However, it is guaranteed until [the year 2106][ObjectId.timestamp] that an ID * is always strictly greater than one generated in a previous second. */ @ExperimentalAtomicApi -- 2.51.2