提交 90ca2e04 authored 作者: noelgrandin's avatar noelgrandin

improve method names

上级 a580bf1a
......@@ -1323,7 +1323,7 @@ public class WebApp {
generatedKeys = true;
sql = sql.substring("@generated".length()).trim();
} else if (isBuiltIn(sql, "@history")) {
buff.append(getHistoryString());
buff.append(getCommandHistoryString());
return buff.toString();
} else if (isBuiltIn(sql, "@loop")) {
sql = sql.substring("@loop".length()).trim();
......@@ -1511,9 +1511,9 @@ public class WebApp {
return buff.append(") ").append(sql).toString();
}
private String getHistoryString() {
private String getCommandHistoryString() {
StringBuilder buff = new StringBuilder();
ArrayList<String> history = session.getCommands();
ArrayList<String> history = session.getCommandHistory();
buff.append("<table cellspacing=0 cellpadding=0>" +
"<tr><th></th><th>Command</th></tr>");
for (int i = history.size() - 1; i >= 0; i--) {
......
......@@ -180,7 +180,7 @@ class WebSession {
*
* @return the commands
*/
ArrayList<String> getCommands() {
ArrayList<String> getCommandHistory() {
return commandHistory;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论