From 62160ebb15a932d195cd7363c7c5955a9cebba29 Mon Sep 17 00:00:00 2001 From: pkupczyk <piotr.kupczyk@id.ethz.ch> Date: Tue, 28 Nov 2023 13:19:14 +0100 Subject: [PATCH] BIS-757 : Write Translator to TypeScript - declare only the most specific methods from the inheritance tree --- .../source/java/ch/empa/tsprocessor/AddMethodsExtension.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib-typescriptprocessor/source/java/ch/empa/tsprocessor/AddMethodsExtension.java b/lib-typescriptprocessor/source/java/ch/empa/tsprocessor/AddMethodsExtension.java index 2c5aa557545..5eb0483cc34 100644 --- a/lib-typescriptprocessor/source/java/ch/empa/tsprocessor/AddMethodsExtension.java +++ b/lib-typescriptprocessor/source/java/ch/empa/tsprocessor/AddMethodsExtension.java @@ -107,7 +107,7 @@ public class AddMethodsExtension extends Extension { * @return true if the method should be added to the typescript interface, false otherwise */ private static boolean filterMethods(Method method) { - return !((method.getDeclaringClass() == Object.class) || (method.getName().matches(excludedMethods))); + return !(method.isBridge() || (method.getDeclaringClass() == Object.class) || (method.getName().matches(excludedMethods))); } -- GitLab