Skip to content

Commit 87ad1c3

Browse files
committed
add javadoc for fix JabRef#6199
1 parent 82fd623 commit 87ad1c3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: src/main/java/org/jabref/logic/importer/fileformat/EndnoteXmlImporter.java

+8
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,14 @@ private Optional<String> getUrl(Record record) {
259259
.findFirst();
260260
}
261261

262+
/**
263+
* Extracts url address of Class Url generated from a user-imported .xml file.
264+
* More specifically, this method will check whether text of url is wrapped in a style tag.
265+
* If it is, extract from inner text; otherwise, use vanilla text outside.
266+
*
267+
* @param url a Url class object containing info from .xml file imported by user.
268+
* @return entity url address of given class url
269+
*/
262270
private Optional<String> getUrlValue(Url url) {
263271
Optional<List<Object>> urlContent = Optional.ofNullable(url).map(Url::getContent);
264272
List<Object> list = urlContent.orElse(null);

0 commit comments

Comments
 (0)