summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Sawicki2011-04-22 14:53:15 (EDT)
committer Chris Aniszczyk2011-04-24 12:15:10 (EDT)
commit5b9a5caf52c7c27ffccd7bb10723dd27db4e1855 (patch)
tree7cbf0d025e13a3f3a144d080f7f02d3712dea927
parentd7baff87ed213487cad849b1129a103f1681c620 (diff)
downloadegit-github-5b9a5caf52c7c27ffccd7bb10723dd27db4e1855.zip
egit-github-5b9a5caf52c7c27ffccd7bb10723dd27db4e1855.tar.gz
egit-github-5b9a5caf52c7c27ffccd7bb10723dd27db4e1855.tar.bz2
Make LabelComparator serializable.refs/changes/24/3224/2
This is a FindBugs recommendation. Change-Id: I3a5534576375b6b43fd0a1295a0831e75e285ecc Signed-off-by: Kevin Sawicki <kevin@github.com> Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
-rw-r--r--org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/LabelComparator.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/LabelComparator.java b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/LabelComparator.java
index 4c6ea99..39b7b52 100644
--- a/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/LabelComparator.java
+++ b/org.eclipse.mylyn.github.core/src/org/eclipse/mylyn/github/internal/LabelComparator.java
@@ -10,12 +10,18 @@
*******************************************************************************/
package org.eclipse.mylyn.github.internal;
+import java.io.Serializable;
import java.util.Comparator;
/**
* Label comparator using case-insensitive name comparisons.
*/
-public class LabelComparator implements Comparator<Label> {
+public class LabelComparator implements Comparator<Label>, Serializable {
+
+ /**
+ * serialVersionUID
+ */
+ private static final long serialVersionUID = -3185701121586168554L;
/**
* @see java.util.Comparator#compare(java.lang.Object, java.lang.Object)