From 27b6aee5ec6e4d3ed0e3fdbd13e5e1ad152a4e56 Mon Sep 17 00:00:00 2001 From: acolyer Date: Fri, 8 Jul 2005 16:06:18 +0000 Subject: [PATCH] avoid needless resolving --- weaver/src/org/aspectj/weaver/World.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/weaver/src/org/aspectj/weaver/World.java b/weaver/src/org/aspectj/weaver/World.java index c17845703..cf6dbe13f 100644 --- a/weaver/src/org/aspectj/weaver/World.java +++ b/weaver/src/org/aspectj/weaver/World.java @@ -111,6 +111,11 @@ public abstract class World implements Dump.INode { return resolve(ty, false); } + // if we already have an rtx, don't re-resolve it + public ResolvedTypeX resolve(ResolvedTypeX ty) { + return ty; + } + public ResolvedTypeX getCoreType(TypeX tx) { ResolvedTypeX coreTy = resolve(tx,true); if (coreTy == ResolvedTypeX.MISSING) { -- 2.39.5