[
https://issues.apache.org/jira/browse/DIRMINA-529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12577680#action_12577680
]
Trustin Lee commented on DIRMINA-529:
-------------------------------------
I'm not sure that isPrimitive() is slower than if - else if - ... block. Any
benchmark report is appreciated.
> use isPrimitive() instead of comparing the string to a list of primitives
> -------------------------------------------------------------------------
>
> Key: DIRMINA-529
> URL: https://issues.apache.org/jira/browse/DIRMINA-529
> Project: MINA
> Issue Type: Improvement
> Components: Core
> Affects Versions: 2.0.0-M1
> Reporter: Stefan Ackermann
> Assignee: Trustin Lee
> Priority: Minor
> Fix For: 2.0.0-M2
>
> Attachments: mina-patch.txt
>
>
> isPrimitive is a native function and should be used to determine whether a
> class is primitive instead of comparing to a list of known primitive class
> names
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.