changeset 8175:95dd5e6c132f

8068625: Remove extra year check for GenerateCurrencyData fix Reviewed-by: naoto
author asaha
date Wed, 07 Jan 2015 15:38:54 -0800
parents cf89305f0d47
children c2a53d62b3ad
files make/tools/src/build/tools/generatecurrencydata/GenerateCurrencyData.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/make/tools/src/build/tools/generatecurrencydata/GenerateCurrencyData.java	Thu Apr 09 16:55:10 2015 -0700
+++ b/make/tools/src/build/tools/generatecurrencydata/GenerateCurrencyData.java	Wed Jan 07 15:38:54 2015 -0800
@@ -281,8 +281,8 @@
             checkCurrencyCode(newCurrency);
             String timeString = currencyInfo.substring(4, length - 4);
             long time = format.parse(timeString).getTime();
-            if (Math.abs(time - System.currentTimeMillis()) > ((long) 20) * 365 * 24 * 60 * 60 * 1000) {
-                throw new RuntimeException("time is more than 10 years from present: " + time + " " + timeString + " " + currencyInfo);
+            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;
             specialCaseOldCurrencies[specialCaseCount] = oldCurrency;