Skip to content

Commit 0e20468

Browse files
authored
Update v3-java-sdk.md
- Correct a class name not present - Correct a variable name inconsistency
1 parent 0644dd9 commit 0e20468

File tree

1 file changed

+2
-2
lines changed
  • articles/applied-ai-services/form-recognizer/quickstarts/includes

1 file changed

+2
-2
lines changed

articles/applied-ai-services/form-recognizer/quickstarts/includes/v3-java-sdk.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,9 +463,9 @@ public class FormRecognizer {
463463
String modelId = "prebuilt-invoice";
464464
String invoiceUrl = "https://raw.githubusercontent.com/Azure-Samples/cognitive-services-REST-api-samples/master/curl/form-recognizer/sample-invoice.pdf";
465465

466-
SyncPoller < DocumentOperationResult, AnalyzeResult > analyzeInvoicePoller = client.beginAnalyzeDocumentFromUrl(modelId, invoiceUrl);
466+
SyncPoller < OperationResult, AnalyzeResult > analyzeInvoicePoller = client.beginAnalyzeDocumentFromUrl(modelId, invoiceUrl);
467467

468-
AnalyzeResult analyzeInvoiceResult = analyzeInvoicesPoller.getFinalResult();
468+
AnalyzeResult analyzeInvoiceResult = analyzeInvoicePoller.getFinalResult();
469469

470470
for (int i = 0; i < analyzeInvoiceResult.getDocuments().size(); i++) {
471471
AnalyzedDocument analyzedInvoice = analyzeInvoiceResult.getDocuments().get(i);

0 commit comments

Comments
 (0)