-/**
+/**
* ============LICENSE_START=======================================================
* org.onap.aai
* ================================================================================
import org.onap.aai.sa.searchdbabstraction.entity.AggregationResult;
public class AggregationParsingUtil {
+
+ private AggregationParsingUtil() { // Do not instantiate
+ }
+
public static AggregationResult[] parseAggregationResults(JSONObject aggregations) throws JsonProcessingException {
// Obtain the set of aggregation names
- Set keySet = aggregations.keySet();
+ Set<?> keySet = aggregations.keySet();
AggregationResult[] aggResults = new AggregationResult[keySet.size()];
int index = 0;
- for (Iterator it = keySet.iterator(); it.hasNext();) {
+ for (Iterator<?> it = keySet.iterator(); it.hasNext();) {
String key = (String) it.next();
AggregationResult aggResult = new AggregationResult();
aggResult.setName(key);