mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Added the Serializable interface to classes that extend/implement a Comparator with an anonymous/typed class. (#1078)
This commit is contained in:
committed by
Rob Bygrave
parent
27b6183aad
commit
9772623880
@@ -2,16 +2,19 @@ package io.ebeaninternal.server.query;
|
||||
|
||||
import io.ebean.Version;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Comparator;
|
||||
|
||||
/**
|
||||
* Compare Version beans in descending order with nulls last.
|
||||
*/
|
||||
class OrderVersionDesc implements Comparator<Version<?>> {
|
||||
class OrderVersionDesc implements Comparator<Version<?>>, Serializable {
|
||||
|
||||
static final OrderVersionDesc INSTANCE = new OrderVersionDesc();
|
||||
|
||||
private static final long serialVersionUID = -3681686029998263310L;
|
||||
|
||||
@Override
|
||||
public int compare(Version<?> o1, Version<?> o2) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user