@@ -26,7 +26,6 @@ public MindeeClientV2(String apiKey) {
2626 this (createDefaultApiV2 (apiKey ));
2727 }
2828
29-
3029 /** Inject both a PDF implementation and an HTTP implementation. */
3130 public MindeeClientV2 (MindeeApiV2 mindeeApi ) {
3231 this .mindeeApi = mindeeApi ;
@@ -42,7 +41,6 @@ public JobResponse enqueueInference(
4241 return mindeeApi .reqPostInferenceEnqueue (inputSource , params );
4342 }
4443
45-
4644 /**
4745 * Enqueue a document in the asynchronous queue.
4846 */
@@ -77,6 +75,7 @@ public InferenceResponse getInference(String inferenceId) {
7775
7876 /**
7977 * Send a local file to an async queue, poll, and parse when complete.
78+ *
8079 * @param inputSource The input source to send.
8180 * @param options The options to send along with the file.
8281 * @return an instance of {@link InferenceResponse}.
@@ -92,10 +91,9 @@ public InferenceResponse enqueueAndGetInference(
9291 return pollAndFetch (job , options );
9392 }
9493
95-
96-
9794 /**
9895 * Send a local file to an async queue, poll, and parse when complete.
96+ *
9997 * @param inputSource The input source to send.
10098 * @param options The options to send along with the file.
10199 * @return an instance of {@link InferenceResponse}.
@@ -111,9 +109,9 @@ public InferenceResponse enqueueAndGetInference(
111109 return pollAndFetch (job , options );
112110 }
113111
114-
115112 /**
116113 * Common logic for polling an asynchronous job for local & url files.
114+ *
117115 * @param initialJob The initial job response.
118116 * @return an instance of {@link InferenceResponse}.
119117 * @throws InterruptedException Throws if interrupted.
@@ -152,9 +150,7 @@ private static MindeeApiV2 createDefaultApiV2(String apiKey) {
152150 MindeeSettingsV2 settings = apiKey == null || apiKey .trim ().isEmpty ()
153151 ? new MindeeSettingsV2 ()
154152 : new MindeeSettingsV2 (apiKey );
155- return MindeeHttpApiV2 .builder ()
156- .mindeeSettings (settings )
157- .build ();
153+ return MindeeHttpApiV2 .builder ().mindeeSettings (settings ).build ();
158154 }
159155
160156 private static void validatePollingOptions (AsyncPollingOptions p ) {
0 commit comments