commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r611487 - /commons/proper/math/trunk/src/java/org/apache/commons/math/stat/Frequency.java
Date Sat, 12 Jan 2008 21:32:00 GMT
Author: luc
Date: Sat Jan 12 13:31:59 2008
New Revision: 611487

URL: http://svn.apache.org/viewvc?rev=611487&view=rev
Log:
the internal class NaturalComparator now implements Serializable
to remove a findbugs warning

Modified:
    commons/proper/math/trunk/src/java/org/apache/commons/math/stat/Frequency.java

Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/stat/Frequency.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/Frequency.java?rev=611487&r1=611486&r2=611487&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/stat/Frequency.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/stat/Frequency.java Sat Jan
12 13:31:59 2008
@@ -435,7 +435,9 @@
      * A Comparator that compares comparable objects using the
      * natural order.  Copied from Commons Collections ComparableComparator.
      */
-    private static class NaturalComparator implements Comparator {
+    private static class NaturalComparator implements Comparator, Serializable {
+        private static final long serialVersionUID = -3852193713161395148L;
+
         /**
          * Compare the two {@link Comparable Comparable} arguments.
          * This method is equivalent to:



Mime
View raw message