the internal class NaturalComparator now implements Serializable

to remove a findbugs warning

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@611487 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Luc Maisonobe 2008-01-12 21:31:59 +00:00
parent 7092368cf1
commit 9ce7a64492
1 changed files with 3 additions and 1 deletions

View File

@ -435,7 +435,9 @@ public class Frequency implements Serializable {
* 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: