@@ -38,11 +38,11 @@ public static Workflow readWorkflow(byte[] input, WorkflowFormat format) throws
3838 }
3939
4040 public static Workflow readWorkflow (Path path ) throws IOException {
41- return readWorkflow (defaultReader (), path , WorkflowFormat .fromPath (path ));
41+ return readWorkflow (path , WorkflowFormat .fromPath (path ), defaultReader ( ));
4242 }
4343
4444 public static Workflow readWorkflow (Path path , WorkflowFormat format ) throws IOException {
45- return readWorkflow (defaultReader (), path , format );
45+ return readWorkflow (path , format , defaultReader () );
4646 }
4747
4848 public static Workflow readWorkflowFromString (String input , WorkflowFormat format )
@@ -51,35 +51,35 @@ public static Workflow readWorkflowFromString(String input, WorkflowFormat forma
5151 }
5252
5353 public static Workflow readWorkflowFromClasspath (String classpath ) throws IOException {
54- return readWorkflowFromClasspath (defaultReader (), classpath );
54+ return readWorkflowFromClasspath (classpath , defaultReader ());
5555 }
5656
5757 public static Workflow readWorkflowFromClasspath (
5858 String classpath , ClassLoader cl , WorkflowFormat format ) throws IOException {
59- return readWorkflowFromClasspath (defaultReader (), classpath );
59+ return readWorkflowFromClasspath (classpath , defaultReader ());
6060 }
6161
62- public static Workflow readWorkflow (WorkflowReaderOperations reader , Path path )
62+ public static Workflow readWorkflow (Path path , WorkflowReaderOperations reader )
6363 throws IOException {
64- return readWorkflow (reader , path , WorkflowFormat .fromPath (path ));
64+ return readWorkflow (path , WorkflowFormat .fromPath (path ), reader );
6565 }
6666
6767 public static Workflow readWorkflow (
68- WorkflowReaderOperations reader , Path path , WorkflowFormat format ) throws IOException {
68+ Path path , WorkflowFormat format , WorkflowReaderOperations reader ) throws IOException {
6969 return reader .read (Files .readAllBytes (path ), format );
7070 }
7171
7272 public static Workflow readWorkflowFromClasspath (
73- WorkflowReaderOperations reader , String classpath ) throws IOException {
73+ String classpath , WorkflowReaderOperations reader ) throws IOException {
7474 return readWorkflowFromClasspath (
75- reader ,
7675 classpath ,
7776 Thread .currentThread ().getContextClassLoader (),
78- WorkflowFormat .fromFileName (classpath ));
77+ WorkflowFormat .fromFileName (classpath ),
78+ reader );
7979 }
8080
8181 public static Workflow readWorkflowFromClasspath (
82- WorkflowReaderOperations reader , String classpath , ClassLoader cl , WorkflowFormat format )
82+ String classpath , ClassLoader cl , WorkflowFormat format , WorkflowReaderOperations reader )
8383 throws IOException {
8484 try (InputStream in = cl .getResourceAsStream (classpath )) {
8585 if (in == null ) {
0 commit comments