Replace the usage of the "instanceof" operator by a catch block.
未关闭
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/AnalyzeVisitor.java
Multiple catch blocks of the appropriate type should be used instead of catching a general exception, and then testing on the type.
贡献指南
调研方向
从 server/src/main/java/org/apache/iotdb/db/mpp/plan/analyze/AnalyzeVisitor.java 开始,检查使用 instanceof 测试异常类型的通用 catch 块。将该模式替换为针对适当异常类型的单独 catch,然后验证 server 现有的测试仍然通过。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- databases
- Issue 类型
- 重构
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 42/100