Details
-
Improvement
-
Status: Closed
-
Low
-
Resolution: Fixed
-
None
-
None
Description
1. Fix type
ared -> area
partionStr -> partitionStr
getPartitonByKey -> getPartitionByKey
2. Simplify 'instanceof' judgment
This code
if (e instanceof IOException || e instanceof Exception) { // }
It can be replaced by the following code
if (e instanceof Exception) { // }