langchain4j/document-transformers
Eunbin Son 69cac6b9f9
docs: fix Javadoc typo and test empty metadataCssSelectors match in HtmlToTextDocumentTransformer (#5452)
## Issue
Closes #
<!-- human: no issue required (test-coverage + Javadoc); remove this
line or omit if submitting without an issue. -->

## Change
Fix a typo in the 3-arg constructor Javadoc of
`HtmlToTextDocumentTransformer`: `Mep.of(...)` named a nonexistent type,
corrected to `Map.of("title", "#title")`.

Add one `HtmlToTextDocumentTransformerTest` case for the
`metadataCssSelectors` parameter the Javadoc documents: a selector
matching nothing resolves to an empty metadata value (JUnit5 + AssertJ).

No behaviour change.
//
The file is pre-palantir; with `ratchetFrom=origin/main`, touching it
forces full-file formatting, so the diff includes formatting-only churn.
This is CI-required, not a manual reformat.

## General checklist
- [X] There are no breaking changes (API, behaviour)
- [X] I have added unit and/or integration tests for my change
- [X] The tests cover both positive and negative cases
- [X] I have manually run all the unit and integration tests in the
module I have added/changed, and they are all green
- [ ] I have manually run all the unit and integration tests in the
[core](https://github.com/langchain4j/langchain4j/tree/main/langchain4j-core)
and
[main](https://github.com/langchain4j/langchain4j/tree/main/langchain4j)
modules, and they are all green <!-- core+main compiled green as -am
dependencies of the module build; not run standalone -->
- [ ] I have added/updated the
[documentation](https://github.com/langchain4j/langchain4j/tree/main/docs/docs)
<!-- N/A: no docs/ change -->
- [ ] I have added an example in the [examples
repo](https://github.com/langchain4j/langchain4j-examples) (only for
"big" features) <!-- N/A: not a big feature -->
- [ ] I have added/updated [Spring Boot
starter(s)](https://github.com/langchain4j/langchain4j-spring) (if
applicable) <!-- N/A -->

<!-- Omitted "new maven module" section: no new module. -->
<!-- Omitted "new/changed embedding store" sections: not an embedding
store. -->

---
2026-07-31 15:48:48 +02:00
..
langchain4j-document-transformer-jsoup docs: fix Javadoc typo and test empty metadataCssSelectors match in HtmlToTextDocumentTransformer (#5452) 2026-07-31 15:48:48 +02:00