Commit fad1a15
docs: fix extractTextFromMessage snippet to use record accessors (#713)
# Description
Replace getParts()/getText() with record accessor methods
parts()/text(), use typed Part<?> instead of raw Part, and remove
redundant null check that is already enforced by Message's compact
constructor.
Signed-off-by: Chaemin Lee <akak640@gmail.com>
Co-authored-by: Emmanuel Hugonnet <ehsavoie@users.noreply.github.com>1 parent fb06d43 commit fad1a15
1 file changed
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
227 | 225 | | |
228 | 226 | | |
229 | 227 | | |
| |||
0 commit comments