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:
@ -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;
|
||||
|
Reference in New Issue
Block a user