Skip to content

Commit fd2b3e8

Browse files
committed
Include abstract keyword when dumping API methods
1 parent 96a059d commit fd2b3e8

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/test/java/org/apposed/appose/DumpApi.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,12 @@ static String formatConstructor(ConstructorDeclaration ctor) {
777777
}
778778

779779
static String formatMethod(MethodDeclaration method) {
780-
StringBuilder sb = new StringBuilder("def ");
780+
StringBuilder sb = new StringBuilder();
781+
782+
// Add abstract keyword for abstract methods
783+
if (method.isAbstract()) sb.append("abstract ");
784+
785+
sb.append("def ");
781786

782787
// Static methods don't have 'self'
783788
boolean isStatic = method.isStatic();

0 commit comments

Comments
 (0)