You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tubemq.apache.org by "viviel (Jira)" <ji...@apache.org> on 2020/05/11 15:30:00 UTC
[jira] [Created] (TUBEMQ-98) Fix typo & Simplify 'instanceof'
judgment
viviel created TUBEMQ-98:
----------------------------
Summary: Fix typo & Simplify 'instanceof' judgment
Key: TUBEMQ-98
URL: https://issues.apache.org/jira/browse/TUBEMQ-98
Project: Apache TubeMQ
Issue Type: Improvement
Reporter: viviel
Assignee: viviel
1. Fix type
ared -> area
partionStr -> partitionStr
getPartitonByKey -> getPartitionByKey
2. Simplify 'instanceof' judgment
This code
{code:java}
if (e instanceof IOException || e instanceof Exception) {
//
}
{code}
It can be replaced by the following code
{code:java}
if (e instanceof Exception) {
//
}
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)