From 9b51a77cdf6015a6baffb8b77cfc02708639d078 Mon Sep 17 00:00:00 2001 From: Natalia Ukhorskaya Date: Thu, 19 Dec 2013 16:38:57 +0400 Subject: [PATCH] Remove unused field --- .../annotation/AbstractAnnotationDescriptorResolveTest.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/compiler/tests/org/jetbrains/jet/resolve/annotation/AbstractAnnotationDescriptorResolveTest.java b/compiler/tests/org/jetbrains/jet/resolve/annotation/AbstractAnnotationDescriptorResolveTest.java index 07e4066e11a..eafabfee9c6 100644 --- a/compiler/tests/org/jetbrains/jet/resolve/annotation/AbstractAnnotationDescriptorResolveTest.java +++ b/compiler/tests/org/jetbrains/jet/resolve/annotation/AbstractAnnotationDescriptorResolveTest.java @@ -48,7 +48,6 @@ public abstract class AbstractAnnotationDescriptorResolveTest extends JetLiteFix private static final FqName PACKAGE = new FqName("test"); protected BindingContext context; - protected AnalyzeExhaust analyzeExhaust; @Override protected JetCoreEnvironment createEnvironment() { @@ -261,7 +260,7 @@ public abstract class AbstractAnnotationDescriptorResolveTest extends JetLiteFix @NotNull protected PackageViewDescriptor getPackage(@NotNull String content) { JetFile ktFile = JetTestUtils.createFile("dummy.kt", content, getProject()); - analyzeExhaust = JetTestUtils.analyzeFile(ktFile); + AnalyzeExhaust analyzeExhaust = JetTestUtils.analyzeFile(ktFile); context = analyzeExhaust.getBindingContext(); PackageViewDescriptor packageView = analyzeExhaust.getModuleDescriptor().getPackage(PACKAGE); @@ -271,8 +270,7 @@ public abstract class AbstractAnnotationDescriptorResolveTest extends JetLiteFix protected static String getContent(@NotNull String annotationText) throws IOException { File file = new File(PATH); - String content = JetTestUtils.doLoadFile(file).replaceAll("ANNOTATION", annotationText); - return content; + return JetTestUtils.doLoadFile(file).replaceAll("ANNOTATION", annotationText); } protected static void checkDescriptor(String expectedAnnotation, DeclarationDescriptor member) {