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.
|
private final Map<String[], PerTypeLabelStats> upgradeTracker = new HashMap<>(1); |
Does the logic in the
UpgradeTrackerclass work correctly with the use ofString[]as a key, or should a different key type be used, such asList<String>? As I knowhashCodeforString[]returns a value based on the object's reference rather than the array's content.modelmesh/src/main/java/com/ibm/watson/modelmesh/UpgradeTracker.java
Line 67 in af8c300