Skip to content

Commit

Permalink
[update][plugin][hbase11xreader] Remove the condition of always true
Browse files Browse the repository at this point in the history
  • Loading branch information
wgzhao committed Oct 30, 2024
1 parent 0251c44 commit 373febe
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ private HbaseColumnCell(Builder builder)

String promptInfo = "Hbasereader 中,column 的列配置格式应该是:列族:列名. 您配置的列错误:" + this.columnName;
String[] cfAndQualifier = this.columnName.split(":");
Validate.isTrue(cfAndQualifier != null && cfAndQualifier.length == 2
&& StringUtils.isNotBlank(cfAndQualifier[0])
&& StringUtils.isNotBlank(cfAndQualifier[1]), promptInfo);
Validate.isTrue(cfAndQualifier.length == 2 && StringUtils.isNotBlank(cfAndQualifier[0]) && StringUtils.isNotBlank(cfAndQualifier[1]), promptInfo);

this.columnFamily = Bytes.toBytes(cfAndQualifier[0].trim());
this.qualifier = Bytes.toBytes(cfAndQualifier[1].trim());
Expand Down

0 comments on commit 373febe

Please sign in to comment.