polishing

This commit is contained in:
Juergen Hoeller
2009-11-07 01:30:50 +00:00
parent 205b5a477b
commit 2a0b3cf3c9
2 changed files with 6 additions and 6 deletions

View File

@@ -215,10 +215,10 @@ public class AspectJExpressionPointcut extends AbstractExpressionPointcut
* <p>This method converts back to <code>&&</code> for the AspectJ pointcut parser.
*/
private String replaceBooleanOperators(String pcExpr) {
pcExpr = StringUtils.replace(pcExpr," and "," && ");
pcExpr = StringUtils.replace(pcExpr, " or ", " || ");
pcExpr = StringUtils.replace(pcExpr, " not ", " ! ");
return pcExpr;
String result = StringUtils.replace(pcExpr, " and ", " && ");
result = StringUtils.replace(result, " or ", " || ");
result = StringUtils.replace(result, " not ", " ! ");
return result;
}
/**