瀏覽代碼

removed dup code!

tags/V162DEV_M1
aclement 16 年之前
父節點
當前提交
bff0937e36
共有 1 個檔案被更改,包括 4 行新增3 行删除
  1. 4
    3
      weaver/src/org/aspectj/weaver/ResolvedType.java

+ 4
- 3
weaver/src/org/aspectj/weaver/ResolvedType.java 查看文件

@@ -1651,9 +1651,10 @@ public abstract class ResolvedType extends UnresolvedType implements AnnotatedEl
ResolvedType rtParentReturnType = parent.resolve(world).getGenericReturnType().resolve(world);
ResolvedType rtChildReturnType = child.resolve(world).getGenericReturnType().resolve(world);
incompatibleReturnTypes = !rtParentReturnType.isAssignableFrom(rtChildReturnType);
if (incompatibleReturnTypes) {
incompatibleReturnTypes = !rtParentReturnType.isAssignableFrom(rtChildReturnType);
}
// For debug, uncomment this bit and we'll repeat the check - stick a breakpoint on the call
// if (incompatibleReturnTypes) {
// incompatibleReturnTypes = !rtParentReturnType.isAssignableFrom(rtChildReturnType);
// }
} else {
incompatibleReturnTypes =!parent.getReturnType().equals(child.getReturnType());
}

Loading…
取消
儲存