Skip to content

Commit a7c17f0

Browse files
authored
♻️ use 'var' to simplify imports (#314)
1 parent 169cb4b commit a7c17f0

Some content is hidden

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

50 files changed

+127
-139
lines changed

docs/code_samples/bank_account_details_v2.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ public class SimpleMindeeClientV1 {
1212
String filePath = "/path/to/the/file.ext";
1313

1414
// Init a new client
15-
MindeeClient mindeeClient = new MindeeClient(apiKey);
15+
var mindeeClient = new MindeeClient(apiKey);
1616

1717
// Load a file from disk
18-
LocalInputSource inputSource = new LocalInputSource(filePath);
18+
var inputSource = new LocalInputSource(filePath);
1919

2020
// Parse the file
2121
PredictResponse<BankAccountDetailsV2> response = mindeeClient.parse(

docs/code_samples/barcode_reader_v1.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ public class SimpleMindeeClientV1 {
1212
String filePath = "/path/to/the/file.ext";
1313

1414
// Init a new client
15-
MindeeClient mindeeClient = new MindeeClient(apiKey);
15+
var mindeeClient = new MindeeClient(apiKey);
1616

1717
// Load a file from disk
18-
LocalInputSource inputSource = new LocalInputSource(filePath);
18+
var inputSource = new LocalInputSource(filePath);
1919

2020
// Parse the file
2121
PredictResponse<BarcodeReaderV1> response = mindeeClient.parse(

docs/code_samples/carte_grise_v1.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ public class SimpleMindeeClientV1 {
1212
String filePath = "/path/to/the/file.ext";
1313

1414
// Init a new client
15-
MindeeClient mindeeClient = new MindeeClient(apiKey);
15+
var mindeeClient = new MindeeClient(apiKey);
1616

1717
// Load a file from disk
18-
LocalInputSource inputSource = new LocalInputSource(filePath);
18+
var inputSource = new LocalInputSource(filePath);
1919

2020
// Parse the file
2121
PredictResponse<CarteGriseV1> response = mindeeClient.parse(

docs/code_samples/cropper_v1.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ public class SimpleMindeeClientV1 {
1212
String filePath = "/path/to/the/file.ext";
1313

1414
// Init a new client
15-
MindeeClient mindeeClient = new MindeeClient(apiKey);
15+
var mindeeClient = new MindeeClient(apiKey);
1616

1717
// Load a file from disk
18-
LocalInputSource inputSource = new LocalInputSource(filePath);
18+
var inputSource = new LocalInputSource(filePath);
1919

2020
// Parse the file
2121
PredictResponse<CropperV1> response = mindeeClient.parse(

docs/code_samples/default.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ public class SimpleMindeeClientV1 {
1313
String filePath = "/path/to/the/file.ext";
1414

1515
// Init a new client
16-
MindeeClient mindeeClient = new MindeeClient(apiKey);
16+
var mindeeClient = new MindeeClient(apiKey);
1717

1818
// Load a file from disk
19-
LocalInputSource inputSource = new LocalInputSource(new File(filePath));
19+
var inputSource = new LocalInputSource(new File(filePath));
2020

2121
// Configure the endpoint
2222
Endpoint endpoint = new Endpoint(

docs/code_samples/default_async.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ public class SimpleMindeeClientV1 {
1313
String filePath = "/path/to/the/file.ext";
1414

1515
// Init a new client
16-
MindeeClient mindeeClient = new MindeeClient(apiKey);
16+
var mindeeClient = new MindeeClient(apiKey);
1717

1818
// Load a file from disk
19-
LocalInputSource inputSource = new LocalInputSource(new File(filePath));
19+
var inputSource = new LocalInputSource(new File(filePath));
2020

2121
// Configure the endpoint
2222
Endpoint endpoint = new Endpoint(

docs/code_samples/driver_license_v1_async.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ public class SimpleMindeeClientV1 {
1212
String filePath = "/path/to/the/file.ext";
1313

1414
// Init a new client
15-
MindeeClient mindeeClient = new MindeeClient(apiKey);
15+
var mindeeClient = new MindeeClient(apiKey);
1616

1717
// Load a file from disk
18-
LocalInputSource inputSource = new LocalInputSource(new File(filePath));
18+
var inputSource = new LocalInputSource(new File(filePath));
1919

2020
// Parse the file asynchronously
2121
AsyncPredictResponse<DriverLicenseV1> response = mindeeClient.enqueueAndParse(

docs/code_samples/expense_receipts_v5.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ public class SimpleMindeeClientV1 {
1212
String filePath = "/path/to/the/file.ext";
1313

1414
// Init a new client
15-
MindeeClient mindeeClient = new MindeeClient(apiKey);
15+
var mindeeClient = new MindeeClient(apiKey);
1616

1717
// Load a file from disk
18-
LocalInputSource inputSource = new LocalInputSource(filePath);
18+
var inputSource = new LocalInputSource(filePath);
1919

2020
// Parse the file
2121
PredictResponse<ReceiptV5> response = mindeeClient.parse(

docs/code_samples/expense_receipts_v5_async.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ public class SimpleMindeeClientV1 {
1212
String filePath = "/path/to/the/file.ext";
1313

1414
// Init a new client
15-
MindeeClient mindeeClient = new MindeeClient(apiKey);
15+
var mindeeClient = new MindeeClient(apiKey);
1616

1717
// Load a file from disk
18-
LocalInputSource inputSource = new LocalInputSource(new File(filePath));
18+
var inputSource = new LocalInputSource(new File(filePath));
1919

2020
// Parse the file asynchronously
2121
AsyncPredictResponse<ReceiptV5> response = mindeeClient.enqueueAndParse(

docs/code_samples/financial_document_v1.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ public class SimpleMindeeClientV1 {
1212
String filePath = "/path/to/the/file.ext";
1313

1414
// Init a new client
15-
MindeeClient mindeeClient = new MindeeClient(apiKey);
15+
var mindeeClient = new MindeeClient(apiKey);
1616

1717
// Load a file from disk
18-
LocalInputSource inputSource = new LocalInputSource(filePath);
18+
var inputSource = new LocalInputSource(filePath);
1919

2020
// Parse the file
2121
PredictResponse<FinancialDocumentV1> response = mindeeClient.parse(

0 commit comments

Comments
 (0)