diff --git a/bvm/ballerina-runtime/src/main/java/io/ballerina/runtime/internal/types/BResourceMethodType.java b/bvm/ballerina-runtime/src/main/java/io/ballerina/runtime/internal/types/BResourceMethodType.java index 97abdb35972f..b2f1fe3e37f2 100644 --- a/bvm/ballerina-runtime/src/main/java/io/ballerina/runtime/internal/types/BResourceMethodType.java +++ b/bvm/ballerina-runtime/src/main/java/io/ballerina/runtime/internal/types/BResourceMethodType.java @@ -19,6 +19,7 @@ import io.ballerina.runtime.api.Module; import io.ballerina.runtime.api.types.MethodType; +import io.ballerina.runtime.api.types.Parameter; import io.ballerina.runtime.api.types.ResourceMethodType; import io.ballerina.runtime.api.types.Type; @@ -53,7 +54,7 @@ public String toString() { } StringJoiner sj = new StringJoiner(",", "resource function " + accessor + " " + rp.toString() + "(", ") returns (" + type.retType + ")"); - for (var parameter : parameters) { + for (Parameter parameter : parameters) { Type type = parameter.type; sj.add(type.getName() + " " + parameter.name); }