bar = s.indexOf(FIELD_DELIMITER); String categories = (bar >=0) ? s.substring(0,bar) : s; StringTokenizer t = new StringTokenizer(categories, LISTITEM_DELIMITER); while (t.hasMoreTokens()) { String category = t.nextToken(); result.addCategory(category); }
	public static ProjectFilterSettings fromEncodedString(String s) {		ProjectFilterSettings result = new ProjectFilterSettings();				int bar = s.indexOf(FIELD_DELIMITER);		if (bar >= 0) {			String minPriority = s.substring(0, bar);			if (priorityNameToValueMap.get(minPriority) == null)				minPriority = DEFAULT_PRIORITY;						result.setMinPriority(minPriority);						s = s.substring(bar + 1);		}				// Parse bug categories		bar = s.indexOf(FIELD_DELIMITER);				String categories = (bar >=0) ? s.substring(0,bar) : s;		StringTokenizer t = new StringTokenizer(categories, LISTITEM_DELIMITER);		while (t.hasMoreTokens()) {			String category = t.nextToken();			result.addCategory(category);		}				return result;				}