don't use package as var name - the police will be all over that

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1457132 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2013-03-15 21:33:36 +00:00
parent 5b6b0776ef
commit 596616b469
1 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ public final class LoadAdminUiServlet extends HttpServlet {
Writer out = new OutputStreamWriter(response.getOutputStream(), "UTF-8");
String html = IOUtils.toString(in, "UTF-8");
Package package = SolrCore.class.getPackage();
Package pack = SolrCore.class.getPackage();
String[] search = new String[] {
"${contextPath}",
@ -64,7 +64,7 @@ public final class LoadAdminUiServlet extends HttpServlet {
String[] replace = new String[] {
StringEscapeUtils.escapeJavaScript(request.getContextPath()),
StringEscapeUtils.escapeJavaScript(cores.getAdminPath()),
StringEscapeUtils.escapeJavaScript(package.getSpecificationVersion())
StringEscapeUtils.escapeJavaScript(pack.getSpecificationVersion())
};
out.write( StringUtils.replaceEach(html, search, replace) );