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

Confuse `Country` API

Open Tristan-WorkGH opened this issue 5 months ago • 0 comments

The com.powsybl.iidm.network.Country define a name field for the name of the country with a getter getName().

But as it is an Enum, it already have a name attribute accessible with methods name() and toString() which confuse me and I found error prone when using the API.

What do you think of using a more explicit or distinct attribute name like "countryName"?

Tristan-WorkGH avatar Sep 16 '25 18:09 Tristan-WorkGH