|
@@ -1412,8 +1412,8 @@ public class Verification {
|
|
|
compare = ((YearMonth) value).compareTo(YearMonth.now(clock));
|
|
|
} else if (value instanceof ZonedDateTime) {
|
|
|
compare = ((ZonedDateTime) value).compareTo(ZonedDateTime.now(clock));
|
|
|
- } else {
|
|
|
- compare = -2;
|
|
|
+ }else{
|
|
|
+ compare = Integer.MAX_VALUE;
|
|
|
}
|
|
|
} else if (isDate) {
|
|
|
Date val = (Date) value;
|
|
@@ -1448,7 +1448,7 @@ public class Verification {
|
|
|
return false;
|
|
|
}
|
|
|
int compare = dateComparator(value, isTemporalAccessor, isDate);
|
|
|
- if (-2 == compare) {
|
|
|
+ if (Integer.MAX_VALUE == compare) {
|
|
|
setIllegalArg(value.getClass().toString() + " is not a supported date class temporarily.");
|
|
|
return false;
|
|
|
}
|
|
@@ -1479,7 +1479,7 @@ public class Verification {
|
|
|
return false;
|
|
|
}
|
|
|
int compare = dateComparator(value, isTemporalAccessor, isDate);
|
|
|
- if (-2 == compare) {
|
|
|
+ if (Integer.MAX_VALUE == compare) {
|
|
|
setIllegalArg(value.getClass().toString() + " is not a supported date class temporarily.");
|
|
|
return false;
|
|
|
}
|
|
@@ -1510,7 +1510,7 @@ public class Verification {
|
|
|
return false;
|
|
|
}
|
|
|
int compare = dateComparator(value, isTemporalAccessor, isDate);
|
|
|
- if (-2 == compare) {
|
|
|
+ if (Integer.MAX_VALUE == compare) {
|
|
|
setIllegalArg(value.getClass().toString() + " is not a supported date class temporarily.");
|
|
|
return false;
|
|
|
}
|
|
@@ -1541,7 +1541,7 @@ public class Verification {
|
|
|
return false;
|
|
|
}
|
|
|
int compare = dateComparator(value, isTemporalAccessor, isDate);
|
|
|
- if (-2 == compare) {
|
|
|
+ if (Integer.MAX_VALUE == compare) {
|
|
|
setIllegalArg(value.getClass().toString() + " is not a supported date class temporarily.");
|
|
|
return false;
|
|
|
}
|