getFirstSentence() — spring-boot Function Reference
Architecture documentation for the getFirstSentence() function in ChangelogWriter.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 2f392cff_b172_e33e_6ac8_190eb9aaeb72["getFirstSentence()"] 9158c77a_7765_64a7_7fc0_d823fa269eb7["writeDeprecatedPropertyRow()"] 9158c77a_7765_64a7_7fc0_d823fa269eb7 -->|calls| 2f392cff_b172_e33e_6ac8_190eb9aaeb72 b3d1dd8e_db03_ed56_cb71_60cc157cbb1f["removeSpaceBetweenLine()"] 2f392cff_b172_e33e_6ac8_190eb9aaeb72 -->|calls| b3d1dd8e_db03_ed56_cb71_60cc157cbb1f style 2f392cff_b172_e33e_6ac8_190eb9aaeb72 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
configuration-metadata/spring-boot-configuration-metadata-changelog-generator/src/main/java/org/springframework/boot/configurationmetadata/changelog/ChangelogWriter.java lines 183–196
private String getFirstSentence(String text) {
if (text == null) {
return null;
}
int dot = text.indexOf('.');
if (dot != -1) {
BreakIterator breakIterator = BreakIterator.getSentenceInstance(Locale.US);
breakIterator.setText(text);
String sentence = text.substring(breakIterator.first(), breakIterator.next()).trim();
return removeSpaceBetweenLine(sentence);
}
String[] lines = text.split(System.lineSeparator());
return lines[0].trim();
}
Domain
Subdomains
Calls
- removeSpaceBetweenLine()
Called By
Source
Frequently Asked Questions
What does getFirstSentence() do?
getFirstSentence() is a function in the spring-boot codebase.
What does getFirstSentence() call?
getFirstSentence() calls 1 function(s): removeSpaceBetweenLine.
What calls getFirstSentence()?
getFirstSentence() is called by 1 function(s): writeDeprecatedPropertyRow.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free