dockerzhang / incubator-inlong

Apache InLong - a one-stop data streaming platform
https://inlong.apache.org/
Apache License 2.0
0 stars 0 forks source link

[INLONG-98] Fix typo & Simplify 'instanceof' judgment #98

Closed dockerzhang closed 3 years ago

dockerzhang commented 3 years ago

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) {
    //
}

JIRA link - [INLONG-98] created by viviel