Replace this "switch" statement by "if" statements to increase readability.
未关闭
Easy-Fixed
- 主要语言
- Java
- 星标
- 6.4k
- 派生
- 1.2k
- 平均合并
- 1 天 23 小时
- 30 天内合并 PR
- 115
描述
Code Path:server/src/main/java/org/apache/iotdb/db/mpp/plan/analyze/ExpressionUtils.java
switch statements are useful when there are many different cases depending on the value of the same expression. For just one or two cases however, the code will be more readable with if statements.
贡献指南
调研方向
打开 server/src/main/java/org/apache/iotdb/db/mpp/plan/analyze/ExpressionUtils.java,并检查 issue 所标识的 switch 语句。将其替换为针对现有 case 的等效 if 语句,然后验证该文件仍能编译且相关检查均通过。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- databases
- Issue 类型
- 重构
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 35/100