/** * Updates values in ScalarValueChoices to the given report parameter. * * @param dataAttrs the latest scalar values * @param cachedDataAttrs the cached scalar value * @param reportParam the report parameter * @throws SemanticException */ private void updateROMSelectionList( ScalarValueChoices staticChoices, ScalarValueChoices cachedStaticChoices, AbstractScalarParameterHandle paramHandle) throws SemanticException { if (staticChoices == null) return; String newChoiceStr = DesignObjectSerializer.toExternalForm(staticChoices); String latestChoiceStr = DesignObjectSerializer.toExternalForm(cachedStaticChoices); if (latestChoiceStr != null && latestChoiceStr.equals(newChoiceStr)) return; AdapterUtil.updateROMSelectionList(staticChoices, cachedStaticChoices, paramHandle); }