Improved: Removed Conditional logic as shown by checkstyle
@@ -104,11 +104,10 @@ public class RegexpCondition extends MethodOperation implements Conditional {
if (matcher.matches((String) fieldVal, pattern)) {
//Debug.logInfo("The string [" + fieldVal + "] matched the pattern expr [" + pattern.getPattern() + "]", MODULE);
return true;
- } else {
+ }
//Debug.logInfo("The string [" + fieldVal + "] did NOT match the pattern expr [" + pattern.getPattern() + "]", MODULE);
return false;
}
- }
@Override
public boolean exec(MethodContext methodContext) throws MiniLangException {
