diff --git a/docs/releasenotes.html b/docs/releasenotes.html index a465189ab..491a283a5 100644 --- a/docs/releasenotes.html +++ b/docs/releasenotes.html @@ -91,14 +91,14 @@ checkstyle-user).
diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/ClassResolver.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/ClassResolver.java index 4e2ff8f67..8c48736a8 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/ClassResolver.java +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/ClassResolver.java @@ -74,7 +74,11 @@ public class ClassResolver Iterator it = mImports.iterator(); while (it.hasNext()) { final String imp = (String) it.next(); - if (imp.endsWith(aName)) { + // Very important to add the "." in the check below. Otherwise you + // when checking for "DataException", it will match on + // "SecurityDataException". This has been the cause of a very + // difficult bug to resolve! + if (imp.endsWith("." + aName)) { if (isLoadable(imp)) { return safeLoad(imp); } diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/filters/SuppressionCommentFilter.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/filters/SuppressionCommentFilter.java index 0a46785ef..9f7932127 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/filters/SuppressionCommentFilter.java +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/filters/SuppressionCommentFilter.java @@ -193,7 +193,7 @@ public class SuppressionCommentFilter if (mLine == other.mLine) { return mColumn - other.mColumn; } - + return (mLine - other.mLine); }