/*
 * Copyright 2015 Hewlett-Packard Development Company, L.P.
 * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
 */

package com.hp.autonomy.iod.client.api.textindexing;

import com.hp.autonomy.iod.client.util.MultiMap;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.Collections;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

@Setter
@Accessors(chain = true)
public class ListIndexesRequestBuilder {
    /**
     * @param indexTypes The value of the type parameter
     */
    private final Set<IndexType> indexTypes = new HashSet<>();

    /**
     * @param indexFlavors The value of the flavor parameter
     */
    private final Set<IndexFlavor> indexFlavors = new HashSet<>();

    /**
     * @return A map of parameters suitable for use with {@link ListIndexesService}.
     */
    public Map<String, Object> build() {
        final Map<String, Object> map = new MultiMap<>();

        for(final IndexType indexType : indexTypes) {
            map.put("type", indexType);
        }

        for (final IndexFlavor indexFlavor : indexFlavors) {
            map.put("flavor", indexFlavor);
        }

        return map;
    }
}

@@ -345,38 +345,8 @@
 s;%0A%0A
-import java.util.Collections;%0A
 impo
@@ -367,16 +367,16 @@
 ashSet;%0A
+
 import j
@@ -559,37 +559,72 @@
      */%0A    
+@SuppressWarnings(%22FieldMayBeFinal%22)%0A    
 private
- final
  Set%3CIndexTy
@@ -731,24 +731,65 @@
 ter%0A     */%0A
+    @SuppressWarnings(%22FieldMayBeFinal%22)%0A
     private 
@@ -788,22 +788,16 @@
 private 
-final 
 Set%3CInde

Fix compilation error.