Skip to content

Commit 817a714

Browse files
committed
fix review comment
1 parent 4860286 commit 817a714

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

src/main/java/com/alipay/oceanbase/rpc/checkandmutate/CheckAndInsUp.java

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,31 +43,18 @@ public class CheckAndInsUp {
4343

4444
public CheckAndInsUp(ObTableFilter filter, InsertOrUpdate insUp, boolean check_exists)
4545
throws IllegalArgumentException {
46-
this.filter = filter;
47-
this.insUp = insUp;
48-
this.checkExists = check_exists;
49-
this.tableName = null;
50-
this.client = null;
46+
this(null, null, filter, insUp, check_exists, false);
5147
}
5248

5349
public CheckAndInsUp(ObTableFilter filter, InsertOrUpdate insUp, boolean check_exists, boolean rollbackWhenCheckFailed)
5450
throws IllegalArgumentException {
55-
this.filter = filter;
56-
this.insUp = insUp;
57-
this.checkExists = check_exists;
58-
this.rollbackWhenCheckFailed = rollbackWhenCheckFailed;
59-
this.tableName = null;
60-
this.client = null;
51+
this(null, null, filter, insUp, check_exists, rollbackWhenCheckFailed);
6152
}
6253

6354
public CheckAndInsUp(Table client, String tableName, ObTableFilter filter,
6455
InsertOrUpdate insUp, boolean check_exists)
6556
throws IllegalArgumentException {
66-
this.client = client;
67-
this.tableName = tableName;
68-
this.filter = filter;
69-
this.insUp = insUp;
70-
this.checkExists = check_exists;
57+
this(client, null, filter, insUp, check_exists, false);
7158
}
7259

7360
public CheckAndInsUp(Table client, String tableName, ObTableFilter filter,InsertOrUpdate insUp,

0 commit comments

Comments
 (0)