Skip to content

Commit 35e5568

Browse files
committed
Small javadoc correction: resolveEntity may return null if systemId is null.
1 parent cb72d71 commit 35e5568

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/io/sf/carte/doc/xml/dtd/DefaultEntityResolver.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,8 @@ protected boolean registerSystemIdFilename(String systemId, String filename) {
380380
* parsers.
381381
*
382382
* @return an {@code InputSource} object describing the new input source to be
383-
* used by the parser. This implementation never returns {@code null}.
383+
* used by the parser. This implementation never returns {@code null} if
384+
* {@code systemId} is non-{@code null}.
384385
*
385386
* @throws SAXException if either the provided arguments or the input
386387
* source were invalid or not allowed.
@@ -591,7 +592,8 @@ protected boolean isValidContentType(String conType) {
591592
* @param systemId The system identifier of the external entity being
592593
* referenced.
593594
* @return an {@code InputSource} object describing the new input source. This
594-
* implementation never returns {@code null}.
595+
* implementation never returns {@code null} if {@code systemId} is
596+
* non-{@code null}.
595597
* @throws SAXException if either the provided arguments or the input
596598
* source were invalid or not allowed.
597599
* @throws java.io.IOException if an I/O problem was found while forming the URL

0 commit comments

Comments
 (0)