From e44f5ecfcaaca8eb90a21d1d91a92f602f8a7b03 Mon Sep 17 00:00:00 2001 From: Paolo Di Tommaso Date: Fri, 3 Jan 2025 15:56:37 +0800 Subject: [PATCH] Minor cleanup [ci fast] Signed-off-by: Paolo Di Tommaso --- modules/nextflow/src/main/groovy/nextflow/dag/DAG.groovy | 6 +++--- .../src/main/groovy/nextflow/processor/TaskId.groovy | 2 -- .../main/groovy/nextflow/processor/TaskStartParams.groovy | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/modules/nextflow/src/main/groovy/nextflow/dag/DAG.groovy b/modules/nextflow/src/main/groovy/nextflow/dag/DAG.groovy index 0289f948a8..5a362be353 100644 --- a/modules/nextflow/src/main/groovy/nextflow/dag/DAG.groovy +++ b/modules/nextflow/src/main/groovy/nextflow/dag/DAG.groovy @@ -113,7 +113,7 @@ class DAG { void addOperatorNode( String label, inputs, outputs, List operators=null ) { assert label assert inputs - addVertex(Type.OPERATOR, label, normalizeChannels(inputs), normalizeChannels(outputs), operators ) + addVertex( Type.OPERATOR, label, normalizeChannels(inputs), normalizeChannels(outputs), operators ) } /** @@ -125,7 +125,7 @@ class DAG { void addSourceNode( String label, source ) { assert label assert source - addVertex(Type.ORIGIN, label, null, normalizeChannels(source) ) + addVertex( Type.ORIGIN, label, null, normalizeChannels(source) ) } /** @@ -158,7 +158,7 @@ class DAG { * @return A {@link Vertex} object */ @PackageScope - Vertex createVertex( Type type, String label, extra=null ) { + Vertex createVertex( Type type, String label, Object extra=null ) { def result = new Vertex(type, label) if( extra instanceof TaskProcessor ) { result.process = extra diff --git a/modules/nextflow/src/main/groovy/nextflow/processor/TaskId.groovy b/modules/nextflow/src/main/groovy/nextflow/processor/TaskId.groovy index 1207a42ec0..3576b9fde7 100644 --- a/modules/nextflow/src/main/groovy/nextflow/processor/TaskId.groovy +++ b/modules/nextflow/src/main/groovy/nextflow/processor/TaskId.groovy @@ -116,6 +116,4 @@ class TaskId extends Number implements Comparable, Serializable, Cloneable { // return Long.toString(toUnsignedLong(i)); // } - - } diff --git a/modules/nextflow/src/main/groovy/nextflow/processor/TaskStartParams.groovy b/modules/nextflow/src/main/groovy/nextflow/processor/TaskStartParams.groovy index 11f9a6ead2..f7721c91c6 100644 --- a/modules/nextflow/src/main/groovy/nextflow/processor/TaskStartParams.groovy +++ b/modules/nextflow/src/main/groovy/nextflow/processor/TaskStartParams.groovy @@ -36,7 +36,7 @@ class TaskStartParams { } String toString() { - "id=$id; index=$index" + "TaskStartParams[id=$id; index=$index]" } }