Skip to content

Commit fa4ae0d

Browse files
authored
CLDR-18718 Disable DateOrder usage for now (#4787)
1 parent 0b71b19 commit fa4ae0d

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

tools/cldr-code/src/main/java/org/unicode/cldr/test/CheckDates.java

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858

5959
public class CheckDates extends FactoryCheckCLDR {
6060
private static final boolean DEBUG = false;
61+
private static final boolean DISABLE_DATE_ORDER = true;
6162

6263
static boolean GREGORIAN_ONLY = CldrUtility.getProperty("GREGORIAN", false);
6364
private static final Set<String> CALENDARS_FOR_CORES = Set.of("gregorian", "iso8601");
@@ -205,16 +206,18 @@ public CheckCLDR handleSetCldrFileToCheck(
205206
*/
206207
flexInfo.getRedundants(redundants);
207208

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+
}
218221
}
219222

220223
dateFormatInfoFormat = sdi.getDayPeriods(Type.format, cldrFileToCheck.getLocaleID());

0 commit comments

Comments
 (0)