Commit Graph

24225 Commits

Author SHA1 Message Date
Abhinav Gupta
6916271396 ICU-8268 computation of average could overflow.
The (a+b)/2 or (a+b)>>1 could cause an overflow. Use unsigned bit shift (>>>).

X-SVN-Rev: 30735
2011-09-28 20:29:59 +00:00
Abhinav Gupta
24f423c0f8 ICU-8268 inefficient use of Long, Integer, Character constructors.
X-SVN-Rev: 30734
2011-09-28 20:29:47 +00:00
Abhinav Gupta
79287fc66b ICU-8268 Inefficient use of new String(...) constructor.
X-SVN-Rev: 30733
2011-09-28 20:29:28 +00:00
Abhinav Gupta
7e90359b1a ICU-8268 null check of value previously dereferenced.
A value is null-checked after it has already been dereferenced. If it was
null, it would never get to the check because of NullPointerException.

X-SVN-Rev: 30732
2011-09-28 20:29:19 +00:00
Abhinav Gupta
8db98c750a ICU-8268 fixed bug introduced by infinite recursion fix (r30724).
X-SVN-Rev: 30731
2011-09-28 14:46:18 +00:00
Abhinav Gupta
e20dcd910d ICU-8268 toString on array doesn't produce anything useful. Use Arrays.toString.
X-SVN-Rev: 30730
2011-09-28 14:46:11 +00:00
Markus Scherer
3458799ca4 ICU-8779 add getUnknown()
X-SVN-Rev: 30729
2011-09-28 00:00:31 +00:00
Markus Scherer
077d3a16e0 ICU-8779 add UNKNOWN_ZONE & GMT_ZONE
X-SVN-Rev: 30728
2011-09-27 23:52:04 +00:00
Abhinav Gupta
c2769af599 ICU-8268 return value was ignored.
Return value of string concatenation was ignored. Results in invalid data.

X-SVN-Rev: 30726
2011-09-27 19:50:26 +00:00
Abhinav Gupta
c9b90e11db ICU-8268 dead store to local variable.
A value is assigned to a local variable but never read again.

Signed-off-by: Abhinav Gupta <abhinavg@ca.ibm.com>

X-SVN-Rev: 30725
2011-09-27 19:50:19 +00:00
Abhinav Gupta
b69da8afad ICU-8268 infinite recursive loop fixed
X-SVN-Rev: 30724
2011-09-27 19:50:07 +00:00
Abhinav Gupta
b58534a609 ICU-8268 impossible cast from double[] to int[].
Java doesn't allow casting array of type A to array of type B. The elements
have to be manually casted.

X-SVN-Rev: 30723
2011-09-27 19:49:59 +00:00
Abhinav Gupta
2fe1f01851 ICU-8268 Illegal format string %04lx fixed.
X-SVN-Rev: 30722
2011-09-27 19:49:51 +00:00
Abhinav Gupta
55e9ba2738 ICU-8268 Inefficient use of Map.keySet. Use entrySet instead.
X-SVN-Rev: 30721
2011-09-27 19:49:44 +00:00
Abhinav Gupta
b8f1bb9223 ICU-8268 concatenation of strings using + in a loop is inefficient. Use StringBuilder.
X-SVN-Rev: 30720
2011-09-27 18:15:21 +00:00
Abhinav Gupta
811b9905c8 ICU-8268 toString on array doesn't produce anything useful. Use Arrays.toString.
X-SVN-Rev: 30719
2011-09-27 18:15:12 +00:00
Abhinav Gupta
a65971645c ICU-8268 repeated conditional test
X-SVN-Rev: 30718
2011-09-27 18:15:03 +00:00
Abhinav Gupta
d96782f661 ICU-8268 update copyrights of previously touched files
X-SVN-Rev: 30717
2011-09-27 18:14:53 +00:00
Abhinav Gupta
2b36c4da2e ICU-8328 added note about data files to readme.
X-SVN-Rev: 30712
2011-09-26 17:00:46 +00:00
Abhinav Gupta
d00e5b14fb ICU-8328 switched to separate icudata.jar and icutzdata.jar
X-SVN-Rev: 30710
2011-09-26 15:30:39 +00:00
Abhinav Gupta
3db9ae8155 ICU-8328 separated icu4j tzdata for make and nmake
X-SVN-Rev: 30709
2011-09-26 15:30:34 +00:00
Steven R. Loomis
e73e4ea280 ICU-8784 improve pointer toc code, however still not working on i- document as such for now.
X-SVN-Rev: 30702
2011-09-21 20:00:24 +00:00
Abhinav Gupta
63e25666ad ICU-8838 added quotes to directory path.
X-SVN-Rev: 30701
2011-09-20 18:46:01 +00:00
Steven R. Loomis
d8630bafcb ICU-8837 improve date sample
X-SVN-Rev: 30699
2011-09-20 18:15:46 +00:00
Angshuman Deb
aab73b3bb7 ICU-8796 fixed Javadoc with {@icuenhanced} tag
X-SVN-Rev: 30694
2011-09-20 01:40:44 +00:00
Jungshik Shin
0140e29ece ICU-8561 DigitList::set(double) breaks in some locales and generates NaN
X-SVN-Rev: 30689
2011-09-20 00:12:55 +00:00
Andy Heninger
81618f4a97 ICU-8824 Apply patch to remove read of unitialized memory.
X-SVN-Rev: 30688
2011-09-19 20:48:29 +00:00
Abhinav Gupta
df03c9748c ICU-8579 added u_printf_u and u_get_stdout
X-SVN-Rev: 30685
2011-09-19 17:58:14 +00:00
John Emmons
42a46a6e1e ICU-8811 Regen of CLDR data with no commonlyUsed
X-SVN-Rev: 30684
2011-09-19 16:14:43 +00:00
John Emmons
adc6836918 ICU-8821 Handle no inheritance marker in ICU4J
X-SVN-Rev: 30683
2011-09-19 16:10:48 +00:00
Abhinav Gupta
b65c4ce3ab ICU-8579 missing return in uprintf_cleanup
X-SVN-Rev: 30682
2011-09-18 23:54:02 +00:00
John Emmons
41c28f1ee2 ICU-8811 Regen of CLDR data with no commonlyUsed
X-SVN-Rev: 30680
2011-09-16 20:24:34 +00:00
John Emmons
921f531cb7 ICU-8821 Handle empty set markers in ures_getStringByKeyWithFallback()
X-SVN-Rev: 30679
2011-09-16 20:22:44 +00:00
Abhinav Gupta
b199eb07ee ICU-8579 added u_printf
X-SVN-Rev: 30677
2011-09-16 17:44:06 +00:00
Steven R. Loomis
4e3ef555e0 ICU-8784 iSeries updates - passes on iSeries!
X-SVN-Rev: 30675
2011-09-16 01:59:56 +00:00
Markus Scherer
28e4515617 ICU-8788 deprecate ChoiceFormat
X-SVN-Rev: 30674
2011-09-16 00:24:27 +00:00
Markus Scherer
f7f54e2084 ICU-8788 deprecate ChoiceFormat
X-SVN-Rev: 30673
2011-09-16 00:24:00 +00:00
Steven R. Loomis
be1a29532e ICU-8784 more fixes for i
X-SVN-Rev: 30671
2011-09-15 23:31:15 +00:00
Steven R. Loomis
eefcfdaff6 ICU-8828 turn off searchengine by default
X-SVN-Rev: 30670
2011-09-15 21:49:17 +00:00
John Emmons
5b41678b44 ICU-8811 Remove extra comma from enumeration
X-SVN-Rev: 30669
2011-09-15 20:50:10 +00:00
Yoshito Umaoka
93cb17f386 ICU-8811 Removed the logic for supporting short commonly used time zone names.
X-SVN-Rev: 30668
2011-09-15 20:38:26 +00:00
Steven R. Loomis
737d129645 ICU-8784 commit iSeries porting fixes into trunk
X-SVN-Rev: 30667
2011-09-15 19:34:17 +00:00
Abhinav Gupta
f67841a40d ICU-8813 removed name from stack buffer in init_entry (uresbound.cpp)
X-SVN-Rev: 30664
2011-09-15 18:09:30 +00:00
Abhinav Gupta
936abbe238 ICU-8819 DecimalFormatSymbols::initialize now throws a DEFAULT WARNING instead of FALLBACK. Updated NumberFormatTest::TestSymbolsWithBadLocale to reflect this change.
X-SVN-Rev: 30662
2011-09-15 17:37:00 +00:00
Abhinav Gupta
bfb7ec3b44 ICU-8558 added descriptive error to TestOpenVsTestOpenRules.
X-SVN-Rev: 30661
2011-09-15 16:19:03 +00:00
Peter Edberg
99fa6505ef ICU-8753 Fix ICU4J Calendar.add() to handle change in ZONE_OFFSET
X-SVN-Rev: 30660
2011-09-15 04:22:55 +00:00
Yoshito Umaoka
684bbcecfe ICU-8512 Prmoting previously tech preview TimeZoneNames/TimeZoneFormat APIs to draft. Implementing explicit serialization. Removed the logic for commonlyUsed flag for short names (#8811). Let TimeZoneNameImpl fail when it cannot load necessary data.
X-SVN-Rev: 30659
2011-09-15 01:57:16 +00:00
Peter Edberg
ed01311886 ICU-8753 Fix Calendar::add to handle change in UCAL_ZONE_OFFSET
X-SVN-Rev: 30657
2011-09-14 22:33:22 +00:00
Peter Edberg
7bb51b02e8 ICU-8794 Ensure that TextFile::ensureCapacity initial loop value is at least 64, quiet a warning.
X-SVN-Rev: 30656
2011-09-14 21:27:45 +00:00
Abhinav Gupta
612c7a44b5 ICU-8558 added locale name to error log for TestOpenVsOpenRules.
X-SVN-Rev: 30655
2011-09-14 16:12:36 +00:00