Skip to content

Commit 78dabb2

Browse files
committed
Add generation of constructor without parameters to interfaces
this is needed to be able to create a class extending the interface class
1 parent 242339a commit 78dabb2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dts-generator/src/main/java/com/telerik/dts/DtsApi.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,11 +516,13 @@ private void generateInterfaceConstructorContent(JavaClass classInterface, TypeD
516516
}
517517

518518
sbContent.appendln(tabs + "});");
519+
520+
sbContent.appendln(tabs + "public constructor();");
519521
}
520522

521523
private void generateInterfaceConstructorCommentBlock(JavaClass classInterface, String tabs) {
522524
sbContent.appendln(tabs + "/**");
523-
sbContent.appendln(tabs + " * Constructs a new instance of the " + classInterface.getClassName() + " interface with the provided implementation.");
525+
sbContent.appendln(tabs + " * Constructs a new instance of the " + classInterface.getClassName() + " interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.");
524526
// sbContent.appendln(tabs + " * @param implementation - allows implementor to define their own logic for all public methods."); // <- causes too much noise
525527
sbContent.appendln(tabs + " */");
526528
}

0 commit comments

Comments
 (0)