Created some unit tests for idgenrator package.
This commit is contained in:
@ -30,6 +30,7 @@ import java.util.Objects;
|
||||
/**
|
||||
*
|
||||
* @author 7u83 <7u83@mail.ru>
|
||||
* @param <T>
|
||||
*/
|
||||
public class Id<T extends Comparable> implements Comparable<Id> {
|
||||
|
||||
@ -61,7 +62,7 @@ public class Id<T extends Comparable> implements Comparable<Id> {
|
||||
|
||||
@Override
|
||||
public int compareTo(Id o) {
|
||||
return value.compareTo(o);
|
||||
return value.compareTo(o.value);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user