Skip to content

Commit 244558f

Browse files
fix: remove deprecation from disableTransactions, keep dual paths
Roll out transactions/isTransactionsEnabled alongside the existing disableTransactions methods without marking them deprecated yet.
1 parent 0f1b259 commit 244558f

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

src/main/java/dev/openfga/sdk/api/configuration/ClientWriteOptions.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,7 @@ public boolean isTransactionsEnabled() {
8888
*
8989
* @param disableTransactions {@code true} to disable transactions, {@code false} to enable them
9090
* @return this {@code ClientWriteOptions} instance for method chaining
91-
* @deprecated Use {@link #transactions(boolean)} instead. This method will be removed in a
92-
* future release. Replace {@code disableTransactions(true)} with
93-
* {@code transactions(false)}, and {@code disableTransactions(false)} with
94-
* {@code transactions(true)}.
9591
*/
96-
@Deprecated
9792
public ClientWriteOptions disableTransactions(boolean disableTransactions) {
9893
this.transactionsEnabled = !disableTransactions;
9994
return this;
@@ -103,11 +98,7 @@ public ClientWriteOptions disableTransactions(boolean disableTransactions) {
10398
* Returns whether transactions are disabled for write operations.
10499
*
105100
* @return {@code true} if transactions are disabled, {@code false} if enabled (default)
106-
* @deprecated Use {@link #isTransactionsEnabled()} instead. This method will be removed in a
107-
* future release. Note that {@code isTransactionsEnabled()} returns the inverse of
108-
* this method.
109101
*/
110-
@Deprecated
111102
public boolean disableTransactions() {
112103
return !transactionsEnabled;
113104
}

0 commit comments

Comments
 (0)