You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Justin Bertram (Jira)" <ji...@apache.org> on 2025/02/10 15:42:00 UTC
[jira] [Closed] (ARTEMIS-5284) Use assertSame where possible
[ https://issues.apache.org/jira/browse/ARTEMIS-5284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Bertram closed ARTEMIS-5284.
-----------------------------------
> Use assertSame where possible
> -----------------------------
>
> Key: ARTEMIS-5284
> URL: https://issues.apache.org/jira/browse/ARTEMIS-5284
> Project: ActiveMQ Artemis
> Issue Type: Sub-task
> Reporter: Justin Bertram
> Assignee: Justin Bertram
> Priority: Major
>
> Some JUnit calls to {{assertEquals()}} can be replaced with an equivalent {{assertSame()}} call. This is possible when the arguments are instances of a {{final}} class that does not override the {{Object.equals()}} method and makes it explicit that the object identity is compared.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@activemq.apache.org
For additional commands, e-mail: issues-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact