]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.issues.common/src/org/simantics/issues/common/SimpleIssue.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.issues.common / src / org / simantics / issues / common / SimpleIssue.java
index 0da33547d7af0878499c80194b4714f19e1f845f..2a4e170decaaa35f0e05a5ec3de037c49b8a5369 100644 (file)
@@ -1,45 +1,45 @@
-package org.simantics.issues.common;\r
-\r
-import org.simantics.db.Resource;\r
-import org.simantics.issues.Severity;\r
-\r
-\r
-public class SimpleIssue {\r
-    public static final SimpleIssue[] EMPTY_ARRAY = new SimpleIssue[0];\r
-    \r
-    public final String label;\r
-    public final Severity severity;\r
-    // Optional, not used for equals/hashCode\r
-    public final Resource issueResource;\r
-    \r
-    public SimpleIssue(String label, Severity severity) {\r
-        this(label, severity, null);\r
-    }\r
-    \r
-    public SimpleIssue(String label, Severity severity, Resource issueResource) {\r
-        if(label == null)\r
-            throw new NullPointerException();\r
-        if(severity == null)\r
-            throw new NullPointerException();\r
-        this.label = label;\r
-        this.severity = severity;\r
-        this.issueResource = issueResource;\r
-    }\r
-\r
-    @Override\r
-    public int hashCode() {\r
-        return 31*label.hashCode() + severity.hashCode();\r
-    }\r
-\r
-    @Override\r
-    public boolean equals(Object obj) {\r
-        if (this == obj)\r
-            return true;\r
-        if (obj == null)\r
-            return false;\r
-        if (getClass() != obj.getClass())\r
-            return false;\r
-        SimpleIssue other = (SimpleIssue) obj;\r
-        return severity.equals(other.severity) && label.equals(other.label);                \r
-    }\r
-}\r
+package org.simantics.issues.common;
+
+import org.simantics.db.Resource;
+import org.simantics.issues.Severity;
+
+
+public class SimpleIssue {
+    public static final SimpleIssue[] EMPTY_ARRAY = new SimpleIssue[0];
+    
+    public final String label;
+    public final Severity severity;
+    // Optional, not used for equals/hashCode
+    public final Resource issueResource;
+    
+    public SimpleIssue(String label, Severity severity) {
+        this(label, severity, null);
+    }
+    
+    public SimpleIssue(String label, Severity severity, Resource issueResource) {
+        if(label == null)
+            throw new NullPointerException();
+        if(severity == null)
+            throw new NullPointerException();
+        this.label = label;
+        this.severity = severity;
+        this.issueResource = issueResource;
+    }
+
+    @Override
+    public int hashCode() {
+        return 31*label.hashCode() + severity.hashCode();
+    }
+
+    @Override
+    public boolean equals(Object obj) {
+        if (this == obj)
+            return true;
+        if (obj == null)
+            return false;
+        if (getClass() != obj.getClass())
+            return false;
+        SimpleIssue other = (SimpleIssue) obj;
+        return severity.equals(other.severity) && label.equals(other.label);                
+    }
+}