Skip to content

Commit

Permalink
[ci deploy] version 2.0.3.RELEASE
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosbarbero committed Jul 28, 2018
1 parent 39b12b2 commit 0073e99
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

package com.marcosbarbero.cloud.autoconfigure.zuul.ratelimit;

import static com.marcosbarbero.cloud.autoconfigure.zuul.ratelimit.config.properties.RateLimitProperties.PREFIX;

import com.ecwid.consul.v1.ConsulClient;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.collect.Lists;
Expand Down Expand Up @@ -49,10 +47,6 @@
import io.github.bucket4j.grid.ignite.Ignite;
import io.github.bucket4j.grid.infinispan.Infinispan;
import io.github.bucket4j.grid.jcache.JCache;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.cache.Cache;
import lombok.RequiredArgsConstructor;
import org.apache.ignite.IgniteCache;
import org.infinispan.functional.FunctionalMap.ReadWriteMap;
Expand All @@ -73,6 +67,12 @@
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.web.util.UrlPathHelper;

import javax.annotation.PostConstruct;
import javax.cache.Cache;
import java.util.List;

import static com.marcosbarbero.cloud.autoconfigure.zuul.ratelimit.config.properties.RateLimitProperties.PREFIX;

/**
* @author Marcos Barbero
* @author Liel Chayoun
Expand Down Expand Up @@ -238,7 +238,7 @@ protected static class RateLimitPropertiesAdjuster {
public void init() {
Policy defaultPolicy = rateLimitProperties.getDefaultPolicy();
if (defaultPolicy != null) {
ArrayList<Policy> defaultPolicies = Lists.newArrayList(defaultPolicy);
List<Policy> defaultPolicies = Lists.newArrayList(defaultPolicy);
defaultPolicies.addAll(rateLimitProperties.getDefaultPolicyList());
rateLimitProperties.setDefaultPolicyList(defaultPolicies);
}
Expand Down

0 comments on commit 0073e99

Please sign in to comment.