From e401be7ee6972aee236960b61ae36dcf1b15752d Mon Sep 17 00:00:00 2001 From: Evgeny Gerashchenko Date: Tue, 8 Oct 2013 16:29:21 +0400 Subject: [PATCH] Minor. Clarified terms. --- .../tests/org/jetbrains/jet/codegen/AnnotationGenTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/tests/org/jetbrains/jet/codegen/AnnotationGenTest.java b/compiler/tests/org/jetbrains/jet/codegen/AnnotationGenTest.java index 4cf44b0ad8e..7a04f621cf1 100644 --- a/compiler/tests/org/jetbrains/jet/codegen/AnnotationGenTest.java +++ b/compiler/tests/org/jetbrains/jet/codegen/AnnotationGenTest.java @@ -85,7 +85,7 @@ public class AnnotationGenTest extends CodegenTestCase { assertNull(scrClass.getDeclaredField("x").getAnnotation(Deprecated.class)); } - public void testAnnotationForParamInGlobalFunction() throws Exception { + public void testAnnotationForParamInTopLevelFunction() throws Exception { ClassLoader loader = loadFileGetClassLoader("fun x([Deprecated] i: Int) {}"); Class packageClass = getPackageClass(loader); Method packageClassMethod = packageClass.getMethod("x", int.class); @@ -97,7 +97,7 @@ public class AnnotationGenTest extends CodegenTestCase { assertNotNull(getDeprecatedAnnotationFromList(srcClassMethod.getParameterAnnotations()[0])); } - public void testAnnotationForParamInLocalFunction() throws NoSuchFieldException, NoSuchMethodException { + public void testAnnotationForParamInInstanceFunction() throws NoSuchFieldException, NoSuchMethodException { loadText("class A() { fun x([Deprecated] i: Int) {}}"); Class aClass = generateClass("A"); Method x = aClass.getMethod("x", int.class);