Skip to content

Commit 0ca91b2

Browse files
committed
fix: Resolve various javadoc and checkstyle issues
1 parent 75e3a08 commit 0ca91b2

File tree

223 files changed

+1741
-47
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

223 files changed

+1741
-47
lines changed

document-readers/pdf-reader/src/main/java/org/springframework/ai/reader/pdf/aot/PdfReaderRuntimeHints.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import org.springframework.aot.hint.RuntimeHints;
2323
import org.springframework.aot.hint.RuntimeHintsRegistrar;
2424
import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
25+
import org.springframework.lang.NonNull;
2526

2627
/**
2728
* The PdfReaderRuntimeHints class is responsible for registering runtime hints for PDFBox
@@ -34,7 +35,7 @@
3435
public class PdfReaderRuntimeHints implements RuntimeHintsRegistrar {
3536

3637
@Override
37-
public void registerHints(RuntimeHints hints, ClassLoader classLoader) {
38+
public void registerHints(@NonNull RuntimeHints hints, ClassLoader classLoader) {
3839
try {
3940

4041
var resolver = new PathMatchingResourcePatternResolver();

document-readers/pdf-reader/src/main/java/org/springframework/ai/reader/pdf/config/ParagraphManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ else if (paragraph.level() == level) {
184184
* @param level The TOC deepness level for this paragraph. The root is at level 0.
185185
* @param startPageNumber The page number in the PDF where this paragraph begins.
186186
* @param endPageNumber The page number in the PDF where this paragraph ends.
187+
* @param position The vertical position of the paragraph on the page.
187188
* @param children Sub-paragraphs for this paragraph.
188189
*/
189190
public record Paragraph(Paragraph parent, String title, int level, int startPageNumber, int endPageNumber,

document-readers/pdf-reader/src/main/java/org/springframework/ai/reader/pdf/layout/ForkPDFLayoutTextStripper.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ private void writeToOutputStream(final List<TextLine> textLineList) throws IOExc
100100
* In order to get rid of the warning: TextPositionComparator class should implement
101101
* Comparator<TextPosition> instead of Comparator
102102
*/
103-
@SuppressWarnings("unchecked")
104103
private void sortTextPositionList(final List<TextPosition> textList) {
105104
TextPositionComparator comparator = new TextPositionComparator();
106105
Collections.sort(textList, comparator);

0 commit comments

Comments
 (0)