[power-matchmaker] r2767 committed - Fix to autocorrection: now won't use invalid suggestions.

0 views
Skip to first unread message

power-ma...@googlecode.com

unread,
Jan 26, 2011, 5:13:54 PM1/26/11
to matchmake...@googlegroups.com
Revision: 2767
Author: fridgebuzz
Date: Wed Jan 26 14:12:58 2011
Log: Fix to autocorrection: now won't use invalid suggestions.
http://code.google.com/p/power-matchmaker/source/detail?r=2767

Modified:

/branches/0.9.7/src/ca/sqlpower/matchmaker/munge/AddressCorrectionMungeStep.java

=======================================
---
/branches/0.9.7/src/ca/sqlpower/matchmaker/munge/AddressCorrectionMungeStep.java
Mon Jan 24 11:36:23 2011
+++
/branches/0.9.7/src/ca/sqlpower/matchmaker/munge/AddressCorrectionMungeStep.java
Wed Jan 26 14:12:58 2011
@@ -421,13 +421,13 @@
}
case EVERYTHING_WITH_ONE_SUGGESTION:
logger.debug("Autovalidating anything with just one suggestion");
- if (validator.getSuggestions().size() != 1 && autoValidateSetting ==
AutoValidateSetting.EVERYTHING_WITH_ONE_SUGGESTION) {
+ if (!validator.isValidSuggestion() ||
(validator.getSuggestions().size() != 1 && autoValidateSetting ==
AutoValidateSetting.EVERYTHING_WITH_ONE_SUGGESTION)) {
logger.debug("Validator has zero or more than one suggestion, so
skipping");
break;
}
case EVERYTHING_WITH_SUGGESTION:
logger.debug("Autovalidating anything with a suggestion");
- if (validator.getSuggestions().size() == 0) {
+ if (!validator.isValidSuggestion() ||
validator.getSuggestions().size() == 0) {
logger.debug("Validator has no suggestions, so skipping");
break;
}

Reply all
Reply to author
Forward
0 new messages