package com.bazaarvoice.dropwizard.assets;

import com.google.common.collect.Lists;
import org.codehaus.jackson.annotate.JsonProperty;

import javax.validation.constraints.NotNull;
import java.util.List;
import java.util.Map;

public class AssetsConfiguration {
    @NotNull
    @JsonProperty
    private String cacheSpec = com.yammer.dropwizard.bundles.AssetsBundle.DEFAULT_CACHE_SPEC.toParsableString();

    @NotNull
    @JsonProperty
    private List<Map<String, String>> overrides = Lists.newArrayList();

    /** The caching specification for how to memoize assets. */
    public String getCacheSpec() {
        return cacheSpec;
    }

    public Iterable<Map.Entry<String, String>> getOverrides() {
        List<Map.Entry<String, String>> entries = Lists.newArrayList();
        for (Map<String, String> map : overrides) {
            entries.addAll(map.entrySet());
        }
        return entries;
    }
}

@@ -70,20 +70,19 @@
 collect.
-List
+Map
 s;%0Aimpor
@@ -177,31 +177,8 @@
 ll;%0A
-import java.util.List;%0A
 impo
@@ -419,21 +419,16 @@
 private 
-List%3C
 Map%3CStri
@@ -438,17 +438,16 @@
  String%3E
-%3E
  overrid
@@ -451,34 +451,31 @@
 rides = 
-List
+Map
 s.new
-ArrayList
+HashMap
 ();%0A%0A   
@@ -679,200 +679,35 @@
     
-List%3CMap.Entry%3CString, String%3E%3E entries = Lists.newArrayList();%0A        for (Map%3CString, String%3E map : overrides) %7B%0A            entries.addAll(map.entrySet());%0A        %7D%0A        return entries
+return overrides.entrySet()
 ;%0A  

Simplify overrides configuration.