Minor. Clarified terms.
This commit is contained in:
@@ -85,7 +85,7 @@ public class AnnotationGenTest extends CodegenTestCase {
|
|||||||
assertNull(scrClass.getDeclaredField("x").getAnnotation(Deprecated.class));
|
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) {}");
|
ClassLoader loader = loadFileGetClassLoader("fun x([Deprecated] i: Int) {}");
|
||||||
Class<?> packageClass = getPackageClass(loader);
|
Class<?> packageClass = getPackageClass(loader);
|
||||||
Method packageClassMethod = packageClass.getMethod("x", int.class);
|
Method packageClassMethod = packageClass.getMethod("x", int.class);
|
||||||
@@ -97,7 +97,7 @@ public class AnnotationGenTest extends CodegenTestCase {
|
|||||||
assertNotNull(getDeprecatedAnnotationFromList(srcClassMethod.getParameterAnnotations()[0]));
|
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) {}}");
|
loadText("class A() { fun x([Deprecated] i: Int) {}}");
|
||||||
Class<?> aClass = generateClass("A");
|
Class<?> aClass = generateClass("A");
|
||||||
Method x = aClass.getMethod("x", int.class);
|
Method x = aClass.getMethod("x", int.class);
|
||||||
|
|||||||
Reference in New Issue
Block a user