diff --git a/solr/core/src/java/org/apache/solr/request/macro/MacroExpander.java b/solr/core/src/java/org/apache/solr/request/macro/MacroExpander.java index 7db4cb02e2f..305a9759f7c 100644 --- a/solr/core/src/java/org/apache/solr/request/macro/MacroExpander.java +++ b/solr/core/src/java/org/apache/solr/request/macro/MacroExpander.java @@ -108,7 +108,6 @@ public class MacroExpander { if (idx < 0) return val; int start = 0; // start of the unprocessed part of the string - int end = 0; StringBuilder sb = null; for (;;) { idx = val.indexOf(macroStart, idx); diff --git a/solr/core/src/java/org/apache/solr/response/transform/SubQueryAugmenterFactory.java b/solr/core/src/java/org/apache/solr/response/transform/SubQueryAugmenterFactory.java index cbe69985bca..2d36e75f2c9 100644 --- a/solr/core/src/java/org/apache/solr/response/transform/SubQueryAugmenterFactory.java +++ b/solr/core/src/java/org/apache/solr/response/transform/SubQueryAugmenterFactory.java @@ -217,7 +217,6 @@ class SubQueryAugmenter extends DocTransformer { if (vals != null) { StringBuilder rez = new StringBuilder(); - int i = 0; for (Iterator iterator = vals.iterator(); iterator.hasNext();) { Object object = (Object) iterator.next(); rez.append(convertFieldValue(object));