diff --git a/transpiler/src/main/java/org/jsweet/transpiler/Java2TypeScriptTranslator.java b/transpiler/src/main/java/org/jsweet/transpiler/Java2TypeScriptTranslator.java index c2e0073b..8324c4ca 100644 --- a/transpiler/src/main/java/org/jsweet/transpiler/Java2TypeScriptTranslator.java +++ b/transpiler/src/main/java/org/jsweet/transpiler/Java2TypeScriptTranslator.java @@ -2453,19 +2453,19 @@ public class Java2TypeScriptTranslator extends AbstractTreePrinter { print("}").println().println().printIndent(); } - if (inOverload && !overload.isValid) { - // spread all annotations of the overload to the methods - for (JCMethodDecl m : overload.methods) { - if (m != methodDecl) { - for (JCAnnotation anno : m.mods.annotations) { - if (!methodDecl.mods.annotations.stream().anyMatch( - a -> a.getAnnotationType().toString().equals(anno.getAnnotationType().toString()))) { - methodDecl.mods.annotations = methodDecl.mods.annotations.append(anno); - } - } - } - } - } +// if (inOverload && !overload.isValid) { +// // spread all annotations of the overload to the methods +// for (JCMethodDecl m : overload.methods) { +// if (m != methodDecl) { +// for (JCAnnotation anno : m.mods.annotations) { +// if (!methodDecl.mods.annotations.stream().anyMatch( +// a -> a.getAnnotationType().toString().equals(anno.getAnnotationType().toString()))) { +// methodDecl.mods.annotations = methodDecl.mods.annotations.append(anno); +// } +// } +// } +// } +// } print(methodDecl.mods);