You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Remko Popma (JIRA)" <ji...@apache.org> on 2015/04/05 09:36:33 UTC
[jira] [Closed] (LOG4J2-985) AbstractFilter should not implement
equals() and hashCode()
[ https://issues.apache.org/jira/browse/LOG4J2-985?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Remko Popma closed LOG4J2-985.
------------------------------
> AbstractFilter should not implement equals() and hashCode()
> -----------------------------------------------------------
>
> Key: LOG4J2-985
> URL: https://issues.apache.org/jira/browse/LOG4J2-985
> Project: Log4j 2
> Issue Type: Improvement
> Components: Filters
> Affects Versions: 2.2
> Reporter: Remko Popma
> Assignee: Remko Popma
> Priority: Minor
> Fix For: 2.3
>
>
> For the same reasons as LOG4J2-891 was raised, {{equals()}} and {{hashCode()}} should be removed from {{AbstractFilter}}.
> Similar to the approach for {{AbstractFilter}} I will keep the existing implementation of equals() and rename it {{equalsImpl()}} (with the call to {{super.equals(obj)}} replaced by {{super.equalsImpl(obj)}}).
> Similarly for hashCode() to {{hashCodeImpl()}}. The xxxImpl() methods will be protected, similar to the approach taken in {{AbstractFilter}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org