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

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

Dmitrii Kriukov created CAMEL-19258:
---------------------------------------

             Summary: 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


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)