powsybl-core icon indicating copy to clipboard operation
powsybl-core copied to clipboard

Equals method used for IIDM Java objects

Open miovd opened this issue 5 years ago • 0 comments

  • Do you want to request a feature or report a bug? Neither, it is more a risk

  • What is the current behavior? The method Objects.equals is used to compare IIDM Java Objects (e.g. Connectable cf. StaticVarCompensatorXml.java).

  • What is the expected behavior? We could simply use a == or != check.

  • What is the motivation / use case for changing the behavior? The equals method can be overwritten, which could lead to issues.

  • Please tell us about your environment:

    • PowSyBl Version: 3.2.0-SNAPSHOT

miovd avatar Jan 17 '20 15:01 miovd