Skip to content

Commit 53cb7f4

Browse files
author
Mark Robinson
committed
CamelCase to improve readability and match CWL conventions
1 parent 6f1ab18 commit 53cb7f4

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/main/java/org/commonwl/view/cwl/CWLProcess.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,15 @@ public enum CWLProcess {
2929

3030
@Override
3131
public String toString() {
32-
String defaultString = super.toString();
33-
return defaultString.substring(0, 1) + defaultString.substring(1).toLowerCase();
32+
switch (this) {
33+
case WORKFLOW:
34+
return "Workflow";
35+
case COMMANDLINETOOL:
36+
return "CommandLineTool";
37+
case EXPRESSIONTOOL:
38+
return "ExpressionTool";
39+
default:
40+
return super.toString();
41+
}
3442
}
3543
}

0 commit comments

Comments
 (0)