Replace the usage of the "instanceof" operator by a catch block.
Open
Easy-Fixed
- Dominant language
- Java
- Stars
- 6.4k
- Forks
- 1.2k
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 115
Description
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.
Contributor guide
Research direction
Start in server/src/main/java/org/apache/iotdb/db/mpp/plan/analyze/AnalyzeVisitor.java and inspect the general catch blocks that test exception types with instanceof. Replace that pattern with separate catches for the appropriate exception types, then verify the server's existing tests still pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- databases
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 42/100