1
0

Need to match at least the first 5 characters.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@395346 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Burrell Donkin
2006-04-19 18:46:30 +00:00
parent 5342620a9f
commit f05517ec95

View File

@@ -861,9 +861,9 @@ public class LogFactoryImpl extends LogFactory {
}
// If the user provides a name that is in the right package, and gets
// the first 4 characters of the adapter class right (ignoring case),
// the first 5 characters of the adapter class right (ignoring case),
// then suggest the candidate adapter class name.
if (name.regionMatches(true, 0, candidate, 0, PKG_LEN + 4)) {
if (name.regionMatches(true, 0, candidate, 0, PKG_LEN + 5)) {
messageBuffer.append(" Did you mean '");
messageBuffer.append(candidate);
messageBuffer.append("'?");