You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tubemq.apache.org by "Guo Jiwei (Jira)" <ji...@apache.org> on 2020/05/12 03:08:00 UTC
[jira] [Resolved] (TUBEMQ-98) Fix typo & Simplify 'instanceof'
judgment
[ https://issues.apache.org/jira/browse/TUBEMQ-98?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guo Jiwei resolved TUBEMQ-98.
-----------------------------
Resolution: Fixed
> 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
> Priority: Low
> Labels: pull-request-available
>
> 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)