From f412009aff987e3482eb3abc005d42d1dcf9e181 Mon Sep 17 00:00:00 2001 From: chiranSachintha Date: Thu, 12 Dec 2024 10:15:05 +0530 Subject: [PATCH] Optimize function by removing unnecessary synchronized modifier --- .../main/java/io/ballerina/runtime/internal/TypeChecker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bvm/ballerina-runtime/src/main/java/io/ballerina/runtime/internal/TypeChecker.java b/bvm/ballerina-runtime/src/main/java/io/ballerina/runtime/internal/TypeChecker.java index b898315b7878..2dedd7250a87 100644 --- a/bvm/ballerina-runtime/src/main/java/io/ballerina/runtime/internal/TypeChecker.java +++ b/bvm/ballerina-runtime/src/main/java/io/ballerina/runtime/internal/TypeChecker.java @@ -601,7 +601,7 @@ private static boolean isSubTypeWithInherentType(Context cx, Object sourceValue, .orElse(false); } - private static synchronized boolean isSubType(Type source, Type target) { + private static boolean isSubType(Type source, Type target) { if (source instanceof CacheableTypeDescriptor sourceCacheableType && target instanceof CacheableTypeDescriptor targetCacheableType) { return isSubTypeWithCache(sourceCacheableType, targetCacheableType);