瀏覽代碼

298786: non-optimal exclude pattern issue

tags/V1_6_8
aclement 14 年之前
父節點
當前提交
a9688904c8
共有 1 個文件被更改,包括 18 次插入0 次删除
  1. 18
    0
      loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java

+ 18
- 0
loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java 查看文件

} }
} }
// include are "OR"ed // include are "OR"ed
if (includeStar) {
return true;
}
if (!includeExactName.isEmpty()) {
didSomeIncludeMatching = true;
for (String exactname : includeExactName) {
if (fastClassName.equals(exactname)) {
return true;
}
}
}
for (int i = 0; i < m_includeStartsWith.size(); i++) {
didSomeIncludeMatching = true;
boolean fastaccept = fastClassName.startsWith(m_includeStartsWith.get(i));
if (fastaccept) {
return true;
}
}
accept = !didSomeIncludeMatching; // only true if no includes at all accept = !didSomeIncludeMatching; // only true if no includes at all
for (TypePattern typePattern : includeTypePattern) { for (TypePattern typePattern : includeTypePattern) {
accept = typePattern.matchesStatically(classInfo); accept = typePattern.matchesStatically(classInfo);

Loading…
取消
儲存