This commit is contained in:
peter
2011-05-25 20:29:45 +02:00
parent f8df99e677
commit a5ebd35741
@@ -133,7 +133,7 @@ public abstract class DslPointcut<T,V> {
inner = name(arg);
} else {
inner = (DslPointcut<GdslMethod, ?>)arg;
assert inner.operatesOn(GdslMethod.class) : "The argument to enclosingMethod should be a pointcut working with types, e.g. name";
assert inner.operatesOn(GdslMethod.class) : "The argument to enclosingMethod should be a pointcut working with methods, e.g. name";
}
return new DslPointcut<GroovyClassDescriptor, GdslMethod>() {