Does the logic in the UpgradeTracker class work correctly with the use of String[] as a key, or should a different key type be used, such as List<String>? As I know hashCode for String[] returns a value based on the object's reference rather than the array's content.
Does the logic in the
UpgradeTracker
class work correctly with the use ofString[]
as a key, or should a different key type be used, such asList<String>
? As I knowhashCode
forString[]
returns a value based on the object's reference rather than the array's content.https://github.com/kserve/modelmesh/blob/af8c30042b319f323812fb3ac826bd5b96c2a061/src/main/java/com/ibm/watson/modelmesh/UpgradeTracker.java#L67