Skip to content

Commit

Permalink
[improve][reader][tdengine] Use primitive type instead of wrapper type
Browse files Browse the repository at this point in the history
  • Loading branch information
wgzhao committed Feb 2, 2024
1 parent 361aa4c commit be765d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ private static Long parseSplitInterval(String splitInterval)
Pattern compile = Pattern.compile("^(\\d+)([dhms])$");
Matcher matcher = compile.matcher(splitInterval);
while (matcher.find()) {
Long value = Long.valueOf(matcher.group(1));
long value = Long.parseLong(matcher.group(1));
if (value == 0) {
throw new Exception("invalid splitInterval: 0");
}
Expand Down

0 comments on commit be765d1

Please sign in to comment.