API docs for javafx.swt module is not built since JDK-8151565.
See https://github.com/openjdk/jfx/blob/e3e0dfdb1b945844691c79e512dbae285027ff6c/build.gradle#L4127 .
If javadoc task is executed after removing the comment, it fails with below error.
> Task :javadoc
C:\Xtra\Repositories\jfx\modules\javafx.swt\src\main\java\javafx\embed\swt\CustomTransfer.java:26: error: not in a module on the module source path
package javafx.embed.swt;
^
C:\Xtra\Repositories\jfx\modules\javafx.swt\src\main\java\javafx\embed\swt\FXCanvas.java:26: error: not in a module on the module source path
package javafx.embed.swt;
^
C:\Xtra\Repositories\jfx\modules\javafx.swt\src\main\java\javafx\embed\swt\SWTCursors.java:26: error: not in a module on the module source path
package javafx.embed.swt;
^
C:\Xtra\Repositories\jfx\modules\javafx.swt\src\main\java\javafx\embed\swt\SWTEvents.java:26: error: not in a module on the module source path
package javafx.embed.swt;
^
C:\Xtra\Repositories\jfx\modules\javafx.swt\src\main\java\javafx\embed\swt\SWTFXUtils.java:26: error: not in a module on the module source path
package javafx.embed.swt;
^
5 errors