// Search for proper field instance
for (final Field field : fields) {
// Is a dollar character there?
- if (field.getName().startsWith("$")) {
+ if (field.getName().startsWith("$")) { //NOI18N
// Debug message
- this.getLogger().debug("Field name " + field.getName() + " starts with a dollar, skipped.");
+ this.getLogger().debug(MessageFormat.format("Field name {0} starts with a dollar, skipped.", field.getName())); //NOI18N
// Skip this
continue;
}
/**
* Unknown enum
*/
- UNKNOWN('U', "BaseContact.gender.unknown.text"),
+ UNKNOWN('U', "BaseContact.gender.unknown.text"), //NOI18N
/**
* Male enum
*/
- MALE('M', "BaseContact.gender.male.text"),
+ MALE('M', "BaseContact.gender.male.text"), //NOI18N
/**
* Female enum
*/
- FEMALE('F', "BaseContact.gender.female.text"),
+ FEMALE('F', "BaseContact.gender.female.text"), //NOI18N
/**
* Company enum
*/
- COMPANY('C', "BaseContact.gender.company.text");
+ COMPANY('C', "BaseContact.gender.company.text"); //NOI18N
/**
* Cache for valid chars
// Still null?
if (null == g) {
// Didn't found a valid one
- throw new IllegalArgumentException(MessageFormat.format("Gender {0} is invalid.", c));
+ throw new IllegalArgumentException(MessageFormat.format("Gender {0} is invalid.", c)); //NOI18N
}
// Return it
throw new NullPointerException(MessageFormat.format("logical is not set, but more than one column ({0}/{1}) shall be matched.", this.entrySet().size(), criteriaMatches.size())); //NOI18N
} else if (this.entrySet().size() == criteriaMatches.size()) {
// Debug message
- this.getLogger().debug(MessageFormat.format("entrySet.size()={0},criteriaMatches.size()={1} - Calling matches() on {2} ...", this.entrySet().size(), criteriaMatches.size(), this.getLogical()));
+ this.getLogger().debug(MessageFormat.format("entrySet.size()={0},criteriaMatches.size()={1} - Calling matches() on {2} ...", this.entrySet().size(), criteriaMatches.size(), this.getLogical())); //NOI18N
// Now for the final test
matches = this.getLogical().matches(this.entrySet(), criteriaMatches);