Skip to content

[native_assets_cli] EncodedAsset is not immutable but overrides hashCode #2045

@dcharkes

Description

@dcharkes

Currently, EncodedAsset takes encoding as an argument, which is a modifiable map.

However, it also overrides hashCode and operator ==.

This is a bug.

We need to either

  1. remove the operator == (and fix the tests that rely on equals) or
  2. copy the map in the constructor

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions