Skip to content

Commit 4924a70

Browse files
committed
Small program to output failure names.
1 parent 028e777 commit 4924a70

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

edu.cuny.hunter.streamrefactoring.core/src/edu/cuny/hunter/streamrefactoring/core/analysis/PreconditionFailure.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,10 @@ private PreconditionFailure(int code) {
3737
public int getCode() {
3838
return code;
3939
}
40+
41+
public static void main(String[] args) {
42+
System.out.println("code,name");
43+
for (PreconditionFailure failure : PreconditionFailure.values())
44+
System.out.println(failure.getCode() + "," + failure);
45+
}
4046
}

0 commit comments

Comments
 (0)