Skip to content

Commit 15be3fd

Browse files
committed
format code and remove useless import in OHTable
1 parent 802513b commit 15be3fd

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

src/main/java/com/alipay/oceanbase/hbase/OHTable.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import com.alipay.oceanbase.rpc.ObTableClient;
2727
import com.alipay.oceanbase.rpc.exception.ObTableException;
2828
import com.alipay.oceanbase.rpc.location.model.partition.Partition;
29-
import com.alipay.oceanbase.rpc.exception.ObTableException;
3029
import com.alipay.oceanbase.rpc.exception.ObTableUnexpectedException;
3130
import com.alipay.oceanbase.rpc.mutation.BatchOperation;
3231
import com.alipay.oceanbase.rpc.mutation.result.BatchOperationResult;
@@ -45,7 +44,6 @@
4544
import com.alipay.oceanbase.rpc.table.ObHBaseParams;
4645
import com.alipay.oceanbase.rpc.table.ObKVParams;
4746
import com.alipay.oceanbase.rpc.table.ObTableClientQueryImpl;
48-
import com.alipay.sofa.common.thread.SofaThreadPoolExecutor;
4947

5048
import com.google.protobuf.Descriptors;
5149
import com.google.protobuf.Message;
@@ -73,7 +71,6 @@
7371
import static com.alipay.oceanbase.hbase.constants.OHConstants.*;
7472
import static com.alipay.oceanbase.hbase.util.Preconditions.checkArgument;
7573
import static com.alipay.oceanbase.hbase.util.TableHBaseLoggerFactory.LCD;
76-
import static com.alipay.oceanbase.hbase.util.TableHBaseLoggerFactory.TABLE_HBASE_LOGGER_SPACE;
7774
import static com.alipay.oceanbase.rpc.mutation.MutationFactory.colVal;
7875
import static com.alipay.oceanbase.rpc.mutation.MutationFactory.row;
7976
import static com.alipay.oceanbase.rpc.protocol.payload.impl.execute.ObTableOperation.getInstance;

src/main/java/com/alipay/oceanbase/hbase/util/CompatibilityUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
public class CompatibilityUtil {
66
public static boolean isBatchSupport() {
7-
return (ObGlobal.OB_VERSION >= ObGlobal.OB_VERSION_4_2_5_1 && ObGlobal.OB_VERSION < ObGlobal.OB_VERSION_4_3_0_0)
8-
|| ObGlobal.OB_VERSION >= ObGlobal.OB_VERSION_4_3_5_0;
7+
return (ObGlobal.OB_VERSION >= ObGlobal.OB_VERSION_4_2_5_2 && ObGlobal.OB_VERSION < ObGlobal.OB_VERSION_4_3_0_0)
8+
|| ObGlobal.OB_VERSION >= ObGlobal.OB_VERSION_4_3_5_0;
99
}
1010
}

src/test/java/com/alipay/oceanbase/hbase/HTableTestBase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@
5151
public abstract class HTableTestBase extends HTableMultiCFTestBase {
5252

5353
@Rule
54-
public ExpectedException expectedException = ExpectedException.none();
54+
public ExpectedException expectedException = ExpectedException.none();
5555

56-
protected static Table hTable;
56+
protected static Table hTable;
5757

5858
private static AtomicInteger count = new AtomicInteger(0);
5959
private static AtomicInteger idx = new AtomicInteger(0);

0 commit comments

Comments
 (0)