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