SingingBush commented on code in PR #28:
URL: https://github.com/apache/xerces-j/pull/28#discussion_r2233829584
##########
src/org/apache/html/dom/HTMLDOMImplementationImpl.java:
##########
@@ -82,7 +82,7 @@ public final HTMLDocument createHTMLDocument( String title )
* used to perform operations that are not specific to a particular
* document instance, e.g. to create a new document.
*
- * @return Reference to a valid DOM implementation
+ * @return a singleton reference to a valid DOM implementation
Review Comment:
because *_instance* is static final *HTMLDOMImplementationImpl* there'll
only be one. I can adjust the wording but this is the singleton pattern of a
constant holding an instance which is returned via a static method. The
constructor is private so this is the only class where `new
HTMLDOMImplementationImpl()` can be called.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]