r109799 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r109798‎ | r109799 | r109800 >
Date:02:34, 23 January 2012
Author:oren
Status:deferred
Tags:
Comment:
improvment in method names
Modified paths:
  • /trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/util/QueryStringMap.java (modified) (history)

Diff [purge]

Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/util/QueryStringMap.java
@@ -47,20 +47,20 @@
4848
4949 public QueryStringMap(URI uri) {
5050 super();
51 - grabQueryItems(uri.getRawQuery());
 51+ processQueryItems(uri.getRawQuery());
5252 }
5353
54 - private void grabQueryItems(String query) {
 54+ private void processQueryItems(String query) {
5555 if (query == null)
5656 return;
5757 for (StringTokenizer tokenizer = new StringTokenizer(query, "&"); tokenizer
5858 .hasMoreElements();) {
5959 String token = tokenizer.nextToken();
60 - slurpItem(token);
 60+ processItem(token);
6161 }
6262 }
6363
64 - private void slurpItem(String token) {
 64+ private void processItem(String token) {
6565 String[] pair = token.split("=", 2);
6666 String key = pair[0];
6767 if (key.length() > 0) {

Status & tagging log