You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "sunjincheng (Jira)" <ji...@apache.org> on 2021/02/24 01:42:00 UTC
[jira] [Commented] (IOTDB-1169) Clean up for redundant throw clause
[ https://issues.apache.org/jira/browse/IOTDB-1169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17289458#comment-17289458 ]
sunjincheng commented on IOTDB-1169:
------------------------------------
Fixed in Master: 0cf96a5237934e0afae334ba3e064a57b379672f
> Clean up for redundant throw clause
> -----------------------------------
>
> Key: IOTDB-1169
> URL: https://issues.apache.org/jira/browse/IOTDB-1169
> Project: Apache IoTDB
> Issue Type: Sub-task
> Components: Core/Engine
> Reporter: sunjincheng
> Assignee: sunjincheng
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.12.0
>
>
> Clean up for redundant throw clause, such as : `StorageEngine#setTTL`.
> {code}
> public void setTTL(PartialPath storageGroup, long dataTTL) throws StorageEngineException {
> // storage group has no data
> if (!processorMap.containsKey(storageGroup)) {
> return;
> }
> processorMap.get(storageGroup).setTTL(dataTTL);
> }
> {code}
> `StorageEngineException` is redundant.
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)