You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2023/04/11 09:23:00 UTC

[jira] [Resolved] (CAMEL-19258) Strage implementation of equals() in CachedOutputStream

     [ https://issues.apache.org/jira/browse/CAMEL-19258?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-19258.
---------------------------------
    Resolution: Not A Problem

This is by design that its comparing by current stream

> Strage implementation of equals() in CachedOutputStream
> -------------------------------------------------------
>
>                 Key: CAMEL-19258
>                 URL: https://issues.apache.org/jira/browse/CAMEL-19258
>             Project: Camel
>          Issue Type: Task
>          Components: camel-core
>            Reporter: Dmitrii Kriukov
>            Priority: Minor
>
> Currently it is:
> {color:#172b4d}public boolean equals(Object obj) {{color}
> {color:#172b4d} return currentStream.equals(obj);
> }
> {color}
> I would expect something like:
> {color:#172b4d}@Override
> public boolean equals(Object o) {{color}
> {color:#172b4d} if (this == o) return true;
> if (o == null || getClass() != o.getClass()) return false;
> CachedOutputStream that = (CachedOutputStream) o;
> return currentStream.equals(that.currentStream);
> }{color}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)