|
58 | 58 |
|
59 | 59 | public class CheckDates extends FactoryCheckCLDR {
|
60 | 60 | private static final boolean DEBUG = false;
|
| 61 | + private static final boolean DISABLE_DATE_ORDER = true; |
61 | 62 |
|
62 | 63 | static boolean GREGORIAN_ONLY = CldrUtility.getProperty("GREGORIAN", false);
|
63 | 64 | private static final Set<String> CALENDARS_FOR_CORES = Set.of("gregorian", "iso8601");
|
@@ -205,16 +206,18 @@ public CheckCLDR handleSetCldrFileToCheck(
|
205 | 206 | */
|
206 | 207 | flexInfo.getRedundants(redundants);
|
207 | 208 |
|
208 |
| - pathsWithConflictingOrder2sample = |
209 |
| - DateOrder.getOrderingInfo(cldrFileToCheck, resolved, flexInfo.fp); |
210 |
| - if (pathsWithConflictingOrder2sample == null) { |
211 |
| - CheckStatus item = |
212 |
| - new CheckStatus() |
213 |
| - .setCause(this) |
214 |
| - .setMainType(CheckStatus.errorType) |
215 |
| - .setSubtype(Subtype.internalError) |
216 |
| - .setMessage("DateOrder.getOrderingInfo fails"); |
217 |
| - possibleErrors.add(item); |
| 209 | + if (!DISABLE_DATE_ORDER) { |
| 210 | + pathsWithConflictingOrder2sample = |
| 211 | + DateOrder.getOrderingInfo(cldrFileToCheck, resolved, flexInfo.fp); |
| 212 | + if (pathsWithConflictingOrder2sample == null) { |
| 213 | + CheckStatus item = |
| 214 | + new CheckStatus() |
| 215 | + .setCause(this) |
| 216 | + .setMainType(CheckStatus.errorType) |
| 217 | + .setSubtype(Subtype.internalError) |
| 218 | + .setMessage("DateOrder.getOrderingInfo fails"); |
| 219 | + possibleErrors.add(item); |
| 220 | + } |
218 | 221 | }
|
219 | 222 |
|
220 | 223 | dateFormatInfoFormat = sdi.getDayPeriods(Type.format, cldrFileToCheck.getLocaleID());
|
|
0 commit comments