Skip to content

Commit 068218f

Browse files
committed
Remove toString methods in internal packages
JAVA-4795
1 parent ed1fadb commit 068218f

File tree

2 files changed

+0
-42
lines changed

2 files changed

+0
-42
lines changed

driver-core/src/main/com/mongodb/internal/client/model/FindOptions.java

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -583,30 +583,4 @@ public FindOptions allowDiskUse(@Nullable final Boolean allowDiskUse) {
583583
this.allowDiskUse = allowDiskUse;
584584
return this;
585585
}
586-
587-
@Override
588-
public String toString() {
589-
return "FindOptions{"
590-
+ "batchSize=" + batchSize
591-
+ ", limit=" + limit
592-
+ ", projection=" + projection
593-
+ ", maxTimeMS=" + maxTimeMS
594-
+ ", maxAwaitTimeMS=" + maxAwaitTimeMS
595-
+ ", skip=" + skip
596-
+ ", sort=" + sort
597-
+ ", cursorType=" + cursorType
598-
+ ", noCursorTimeout=" + noCursorTimeout
599-
+ ", oplogReplay=" + oplogReplay
600-
+ ", partial=" + partial
601-
+ ", collation=" + collation
602-
+ ", comment='" + comment + "'"
603-
+ ", hint=" + hint
604-
+ ", let=" + variables
605-
+ ", max=" + max
606-
+ ", min=" + min
607-
+ ", returnKey=" + returnKey
608-
+ ", showRecordId=" + showRecordId
609-
+ ", allowDiskUse=" + allowDiskUse
610-
+ "}";
611-
}
612586
}

driver-core/src/main/com/mongodb/internal/operation/AggregateOperation.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -176,20 +176,4 @@ MongoNamespace getNamespace() {
176176
Decoder<T> getDecoder() {
177177
return wrapped.getDecoder();
178178
}
179-
180-
@Override
181-
public String toString() {
182-
return "AggregateOperation{"
183-
+ "namespace=" + getNamespace()
184-
+ ", pipeline=" + getPipeline()
185-
+ ", decoder=" + getDecoder()
186-
+ ", allowDiskUse=" + getAllowDiskUse()
187-
+ ", batchSize=" + getBatchSize()
188-
+ ", collation=" + getCollation()
189-
+ ", comment=" + getComment()
190-
+ ", hint=" + getHint()
191-
+ ", maxAwaitTimeMS=" + getMaxAwaitTime(TimeUnit.MILLISECONDS)
192-
+ ", maxTimeMS=" + getMaxTime(TimeUnit.MILLISECONDS)
193-
+ "}";
194-
}
195179
}

0 commit comments

Comments
 (0)