-package org.simantics.issues;\r
-\r
-/**\r
- * Issue severities, from most severe to the least severe.\r
- */\r
-public enum Severity {\r
- FATAL, ERROR, WARNING, INFO, NOTE, UNKNOWN;\r
-\r
- public static Severity moreSevere(Severity s1, Severity s2) {\r
- if (s1 == null)\r
- return s2;\r
- if (s2 == null)\r
- return s1;\r
- return (s1.ordinal() < s2.ordinal()) ? s1 : s2;\r
- }\r
+package org.simantics.issues;
+
+/**
+ * Issue severities, from most severe to the least severe.
+ */
+public enum Severity {
+ FATAL, ERROR, WARNING, INFO, NOTE, UNKNOWN;
+
+ public static Severity moreSevere(Severity s1, Severity s2) {
+ if (s1 == null)
+ return s2;
+ if (s2 == null)
+ return s1;
+ return (s1.ordinal() < s2.ordinal()) ? s1 : s2;
+ }
}
\ No newline at end of file