From 9dd838c77ead8e08268815cff135be32fbd08ee6 Mon Sep 17 00:00:00 2001 From: danibs <30932554+danibs@users.noreply.github.com> Date: Wed, 14 Aug 2024 15:47:28 +0200 Subject: [PATCH] change modifiedCount to type long modifiedCount should be "long" instead of "Long" or public long getModifiedCount() { return modifiedCount; } could throws exception. --- .../src/main/com/mongodb/client/result/UpdateResult.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/driver-core/src/main/com/mongodb/client/result/UpdateResult.java b/driver-core/src/main/com/mongodb/client/result/UpdateResult.java index b96d93287f..07123ce5ba 100644 --- a/driver-core/src/main/com/mongodb/client/result/UpdateResult.java +++ b/driver-core/src/main/com/mongodb/client/result/UpdateResult.java @@ -83,10 +83,10 @@ public static UpdateResult unacknowledged() { private static class AcknowledgedUpdateResult extends UpdateResult { private final long matchedCount; - private final Long modifiedCount; + private final long modifiedCount; private final BsonValue upsertedId; - AcknowledgedUpdateResult(final long matchedCount, final Long modifiedCount, @Nullable final BsonValue upsertedId) { + AcknowledgedUpdateResult(final long matchedCount, final long modifiedCount, @Nullable final BsonValue upsertedId) { this.matchedCount = matchedCount; this.modifiedCount = modifiedCount; this.upsertedId = upsertedId;