String cand= fieldname.substring(0, fieldname.length() - currLen); if (JavaConventions.validateFieldName(cand).isOK()) { bestLength= currLen; name= cand; }
name= fieldname.substring(0, fieldname.length() - currLen); bestLength= currLen;
	private String evalAccessorName(String fieldname) {		String name= fieldname;		int bestLength= 0;		if (fNamePrefixes != null) {			for (int i= 0; i < fNamePrefixes.length; i++) {				String curr= fNamePrefixes[i];				if (fieldname.startsWith(curr)) {					int currLen= curr.length();					if (bestLength < currLen && fieldname.length() != currLen) {						String cand= fieldname.substring(currLen);						if (JavaConventions.validateFieldName(cand).isOK()) {							bestLength= currLen;							name= cand;						}					}				}			}		}		if (fNameSuffixes != null) {			for (int i= 0; i < fNameSuffixes.length; i++) {				String curr= fNameSuffixes[i];				if (fieldname.endsWith(curr)) {					int currLen= curr.length();					if (bestLength < currLen && fieldname.length() != currLen) {						String cand= fieldname.substring(0, fieldname.length() - currLen);						if (JavaConventions.validateFieldName(cand).isOK()) {							bestLength= currLen;							name= cand;						}					}				}			}		}					return name;	}