From 221cdc660793753ac71d5142ae649837eb5b46a1 Mon Sep 17 00:00:00 2001 From: Andrew J Macheret Date: Thu, 16 Aug 2007 20:57:24 +0000 Subject: [PATCH] ICU-5842 Refactored a variable X-SVN-Rev: 22407 --- .../icu/dev/test/perf/DateFormatPerformanceTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/icu4j/src/com/ibm/icu/dev/test/perf/DateFormatPerformanceTest.java b/icu4j/src/com/ibm/icu/dev/test/perf/DateFormatPerformanceTest.java index defcbf1c253..665497a7b54 100644 --- a/icu4j/src/com/ibm/icu/dev/test/perf/DateFormatPerformanceTest.java +++ b/icu4j/src/com/ibm/icu/dev/test/perf/DateFormatPerformanceTest.java @@ -22,7 +22,7 @@ public class DateFormatPerformanceTest extends PerfTest { private com.ibm.icu.text.SimpleDateFormat[] icuDateFormat; - private java.text.SimpleDateFormat[] javaDateFormat; + private java.text.SimpleDateFormat[] jdkDateFormat; public static void main(String[] args) throws Exception { new DateFormatPerformanceTest().run(args); @@ -40,10 +40,10 @@ public class DateFormatPerformanceTest extends PerfTest { locale = Locale.getDefault(); icuDateFormat = new com.ibm.icu.text.SimpleDateFormat[threads]; - javaDateFormat = new java.text.SimpleDateFormat[threads]; + jdkDateFormat = new java.text.SimpleDateFormat[threads]; for (int i = 0; i < threads; i++) { icuDateFormat[i] = new com.ibm.icu.text.SimpleDateFormat(pattern, locale); - javaDateFormat[i] = new java.text.SimpleDateFormat(pattern, locale); + jdkDateFormat[i] = new java.text.SimpleDateFormat(pattern, locale); } if (args.length == 2) { @@ -89,7 +89,7 @@ public class DateFormatPerformanceTest extends PerfTest { return new PerfTest.Function() { public void call(int id) { try { - javaDateFormat[id].parse(dateString); + jdkDateFormat[id].parse(dateString); } catch (ParseException ex) { ex.printStackTrace(); } @@ -108,7 +108,7 @@ public class DateFormatPerformanceTest extends PerfTest { PerfTest.Function TestJDKFormat() { return new PerfTest.Function() { public void call(int id) { - javaDateFormat[id].format(date); + jdkDateFormat[id].format(date); } }; }