diff --git a/core/src/main/java/feign/template/QueryTemplate.java b/core/src/main/java/feign/template/QueryTemplate.java index e68361224..275955bf4 100644 --- a/core/src/main/java/feign/template/QueryTemplate.java +++ b/core/src/main/java/feign/template/QueryTemplate.java @@ -133,7 +133,7 @@ public List getValues() { } public List getVariables() { - List variables = new ArrayList<>(); + List variables = new ArrayList<>(this.name.getVariables()); for (Template template : this.values) { variables.addAll(template.getVariables()); }