8332085: Remove 10 year old transition check in GenerateCurrencyData tool
Reviewed-by: erikj, iris Backport-of: 4f3b76ff496e7423e5c43ca62cef019e4f4292ec
This commit is contained in:
parent
7c2c24fc05
commit
5ded8da676
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2001, 2023, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2001, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -312,9 +312,6 @@ public class GenerateCurrencyData {
|
|||||||
checkCurrencyCode(newCurrency);
|
checkCurrencyCode(newCurrency);
|
||||||
String timeString = currencyInfo.substring(4, length - 4);
|
String timeString = currencyInfo.substring(4, length - 4);
|
||||||
long time = format.parse(timeString).getTime();
|
long time = format.parse(timeString).getTime();
|
||||||
if (Math.abs(time - System.currentTimeMillis()) > ((long) 10) * 365 * 24 * 60 * 60 * 1000) {
|
|
||||||
throw new RuntimeException("time is more than 10 years from present: " + time);
|
|
||||||
}
|
|
||||||
specialCaseCutOverTimes[specialCaseCount] = time;
|
specialCaseCutOverTimes[specialCaseCount] = time;
|
||||||
specialCaseOldCurrencies[specialCaseCount] = oldCurrency;
|
specialCaseOldCurrencies[specialCaseCount] = oldCurrency;
|
||||||
specialCaseOldCurrenciesDefaultFractionDigits[specialCaseCount] = getDefaultFractionDigits(oldCurrency);
|
specialCaseOldCurrenciesDefaultFractionDigits[specialCaseCount] = getDefaultFractionDigits(oldCurrency);
|
||||||
|
Loading…
Reference in New Issue
Block a user