Correcting a small defect in RegexHelper class.

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5789 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Romain Pelisse
2008-02-18 16:54:28 +00:00
parent e8b984df71
commit 5945599897

View File

@ -49,7 +49,7 @@ public class RegexHelper {
* @return
*/
public static boolean isMatch(Pattern pattern,String subject) {
if ( subject != null && "".equals(subject) ) {
if ( subject != null && ! "".equals(subject) ) {
Matcher matcher = pattern.matcher(subject);
if (matcher.find()) {
return true;