Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert "unwrapLists now can be configured at runtime"
This reverts commit 5368e15
  • Loading branch information
Adrian Todt committed Apr 20, 2020
commit 03796827409f30cd307b24e730533a2a3f17e344
16 changes: 1 addition & 15 deletions src/main/java/com/rethinkdb/net/Connection.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public class Connection implements Closeable {
protected final @Nullable Long timeout;
protected final @Nullable String user;
protected final @Nullable String password;
protected final boolean unwrapLists;
protected final FetchMode defaultFetchMode;
protected final boolean persistentThreads;

Expand All @@ -59,7 +60,6 @@ public class Connection implements Closeable {
protected @Nullable String dbname;
protected @Nullable ConnectionSocket socket;
protected @Nullable ResponsePump pump;
protected boolean unwrapLists;

/**
* Creates a new connection based on a {@link Builder}.
Expand Down Expand Up @@ -106,20 +106,6 @@ public Connection(Builder b) {
return this;
}

/**
* Enables or disables list unwrapping.
*
* @param val {@code true} to enable list unwrapping, {@code false} to disable.
* @return itself.
* @deprecated Use {@link ReqlAst#runUnwrapping(Connection)} and {@link ReqlAst#runAtom(Connection)} if you want to
* always the same consistency. <b><i>(Will be removed on v2.5.0)</i></b>
*/
@Deprecated
public @NotNull Connection unwrapLists(boolean val) {
unwrapLists = val;
return this;
}

/**
* Checks if the connection is open.
*
Expand Down