]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.issues/src/org/simantics/issues/Severity.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.issues / src / org / simantics / issues / Severity.java
1 package org.simantics.issues;\r
2 \r
3 /**\r
4  * Issue severities, from most severe to the least severe.\r
5  */\r
6 public enum Severity {\r
7     FATAL, ERROR, WARNING, INFO, NOTE, UNKNOWN;\r
8 \r
9     public static Severity moreSevere(Severity s1, Severity s2) {\r
10         if (s1 == null)\r
11             return s2;\r
12         if (s2 == null)\r
13             return s1;\r
14         return (s1.ordinal() < s2.ordinal()) ? s1 : s2;\r
15     }\r
16 }