Minor formatting/logging changes 2

This commit is contained in:
misaochan 2016-01-02 00:45:46 +13:00
parent cf6b5f3471
commit b1cf1b92d7

View file

@ -214,18 +214,18 @@ public class MwVolleyApi {
@Override
public String toString() {
StringBuilder builder = new StringBuilder("PAGEID=" + pageid + " ns=" + ns + " title=" + title + "\n" + " CATEGORIES= ");
StringBuilder builder = new StringBuilder("PAGEID=" + pageid + " ns=" + ns + " title=" + title + " CATEGORIES= ");
if (categories == null || categories.length == 0) {
builder.append("no categories exist\n");
} else {
for (Category category : categories) {
builder.append(category.toString());
builder.append("\n");
if (category != null) {
String categoryString = category.toString().replace("Category:", "");
categorySet.add(categoryString);
}
builder.append(category.toString());
builder.append(", ");
}
}