Skip to content

Commit

Permalink
MONDRIAN: Match XOM API change.
Browse files Browse the repository at this point in the history
UTIL/RESGEN: Oops! Fix error introduced when converting Vector to ArrayList.

[git-p4: depot-paths = "//open/mondrian/": change = 11724]
  • Loading branch information
julianhyde committed Oct 14, 2008
1 parent c97f6f9 commit 90a5b2c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/mondrian/web/servlet/MDXQueryServlet.java
Expand Up @@ -77,7 +77,7 @@ protected void processRequest(HttpServletRequest request, HttpServletResponse re
String queryString = request.getParameter("queryString");
request.setAttribute("queryString", queryString);
mondrian.olap.Connection mdxConnection = null;
StringBuffer html = new StringBuffer();
StringBuilder html = new StringBuilder();

// execute the query
try {
Expand Down Expand Up @@ -156,7 +156,7 @@ protected void processRequest(HttpServletRequest request, HttpServletResponse re
member.getUniqueName()).append("</td>");
}
for (int j = 0; j < columns.size(); j++) {
showCell(html,result.getCell(new int[]{j,i}));
showCell(html, result.getCell(new int[] {j, i}));
}
html.append("</tr>");
}
Expand Down Expand Up @@ -186,10 +186,11 @@ protected void processRequest(HttpServletRequest request, HttpServletResponse re
getServletContext().getRequestDispatcher("/adhoc.jsp").include(request, response);
}

private void showCell(StringBuffer out, Cell cell) {
private void showCell(StringBuilder out, Cell cell) {
out.append("<td class='cell'>").append(cell.getFormattedValue()).append(
"</td>");
}

private void processTransform(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
String queryName = request.getParameter("query");
Expand Down

0 comments on commit 90a5b2c

Please sign in to comment.