You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Was happy with:
Set chainIds = new Set();
if (chainOfIdsStr != null && chainOfIdsStr.trim().length() > 0) {
chainIds.addAll(chainOfIdsStr.split(Constants.RPG_ID_CHAIN_DELIMITER));
}
whereas the Apex compiler requires an extra cast (from List to List):
Set chainIds = new Set();
if (chainOfIdsStr != null && chainOfIdsStr.trim().length() > 0) {
chainIds.addAll((List) chainOfIdsStr.split(Constants.RPG_ID_CHAIN_DELIMITER));
}
The text was updated successfully, but these errors were encountered:
Was happy with:
Set chainIds = new Set();
if (chainOfIdsStr != null && chainOfIdsStr.trim().length() > 0) {
chainIds.addAll(chainOfIdsStr.split(Constants.RPG_ID_CHAIN_DELIMITER));
}
whereas the Apex compiler requires an extra cast (from List to List):
Set chainIds = new Set();
if (chainOfIdsStr != null && chainOfIdsStr.trim().length() > 0) {
chainIds.addAll((List) chainOfIdsStr.split(Constants.RPG_ID_CHAIN_DELIMITER));
}
The text was updated successfully, but these errors were encountered: