From 7dede9a6647ded762701d70d6e71066557196fb5 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Mon, 22 Nov 2010 23:00:02 +0100 Subject: Added storing instanceof JavacTypes in JavacAST, and renamed JavacResolution's methods. --- src/core/lombok/javac/handlers/HandleVal.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/lombok/javac/handlers/HandleVal.java') diff --git a/src/core/lombok/javac/handlers/HandleVal.java b/src/core/lombok/javac/handlers/HandleVal.java index bf938362..3aa695ea 100644 --- a/src/core/lombok/javac/handlers/HandleVal.java +++ b/src/core/lombok/javac/handlers/HandleVal.java @@ -71,14 +71,14 @@ public class HandleVal extends JavacASTAdapter { if (rhsOfEnhancedForLoop == null) { if (local.init.type == null) { JavacResolution resolver = new JavacResolution(localNode.getContext()); - type = ((JCExpression) resolver.resolve(localNode).get(local.init)).type; + type = ((JCExpression) resolver.resolveMethodMember(localNode).get(local.init)).type; } else { type = local.init.type; } } else { if (rhsOfEnhancedForLoop.type == null) { JavacResolution resolver = new JavacResolution(localNode.getContext()); - type = ((JCExpression) resolver.resolve(localNode.directUp()).get(rhsOfEnhancedForLoop)).type; + type = ((JCExpression) resolver.resolveMethodMember(localNode.directUp()).get(rhsOfEnhancedForLoop)).type; } else { type = rhsOfEnhancedForLoop.type; } -- cgit