Skip to content

Commit ba8a52c

Browse files
remove redundant object + fix typos
1 parent bad3449 commit ba8a52c

File tree

4 files changed

+2
-64
lines changed

4 files changed

+2
-64
lines changed

src/main/java/com/mindee/MindeeClient.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,6 @@ public <T extends Inference> WorkflowResponse<T> executeWorkflow(
331331
Class<T> type,
332332
String workflowId,
333333
LocalInputSource localInputSource
334-
335334
) throws IOException {
336335
return this.mindeeApi.executeWorkflowPost(
337336
type,
@@ -343,21 +342,6 @@ public <T extends Inference> WorkflowResponse<T> executeWorkflow(
343342
);
344343
}
345344

346-
public WorkflowResponse<GeneratedV1> executeWorkflow(
347-
String workflowId,
348-
LocalInputSource localInputSource
349-
350-
) throws IOException {
351-
return this.mindeeApi.executeWorkflowPost(
352-
GeneratedV1.class,
353-
workflowId,
354-
RequestParameters.builder()
355-
.file(localInputSource.getFile())
356-
.fileName(localInputSource.getFilename())
357-
.build()
358-
);
359-
}
360-
361345
/**
362346
* Send a local file to a Standard prediction API and parse the results.
363347
*/

src/main/java/com/mindee/parsing/common/ApiObject.java

Lines changed: 0 additions & 46 deletions
This file was deleted.

src/main/java/com/mindee/parsing/common/Execution.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
@JsonIgnoreProperties(ignoreUnknown = true)
1919
@AllArgsConstructor
2020
@NoArgsConstructor
21-
public class Execution<DocT extends Inference> implements ApiObject {
21+
public class Execution<DocT extends Inference> {
2222
/**
2323
* Identifier for the batch to which the execution belongs.
2424
*/

src/main/java/com/mindee/parsing/common/Job.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
@JsonIgnoreProperties(ignoreUnknown = true)
1818
@AllArgsConstructor
1919
@NoArgsConstructor
20-
public class Job implements ApiObject{
20+
public class Job{
2121

2222
/**
2323
* The time at which the job finished.

0 commit comments

Comments
 (0)