Fix a match bug.

This commit is contained in:
wusheng 2017-07-16 22:20:10 +08:00
parent 3f3d933365
commit 93b0186dd2
1 changed files with 2 additions and 2 deletions

View File

@ -70,8 +70,8 @@ public class PluginFinder {
judge = judge.and(not(isInterface()));
for (AbstractClassEnhancePluginDefine define : signatureMatchDefine) {
ClassMatch match = define.enhanceClass();
if (match instanceof ClassAnnotationMatch) {
judge = judge.or(((ClassAnnotationMatch)match).buildJunction());
if (match instanceof IndirectMatch) {
judge = judge.or(((IndirectMatch)match).buildJunction());
}
}
return judge;