Commit Graph

5897 Commits

Author SHA1 Message Date
Abhinav Gupta
1ce9ad44b0 ICU-8889 JarURLHandler should not die if icu4j jar is inside another jar.
X-SVN-Rev: 30929
2011-11-04 16:09:57 +00:00
Abhinav Gupta
8c6de437fc ICU-8854 Check for oddness that won't work for negative numbers.
X-SVN-Rev: 30928
2011-11-04 15:19:31 +00:00
Abhinav Gupta
f613d3d4d9 ICU-8854 method ignores result of InputStream.read.
X-SVN-Rev: 30927
2011-11-04 15:19:19 +00:00
Abhinav Gupta
23d796e394 ICU-8854 Inner class does not use embedded reference to creator. Should be static inner class.
X-SVN-Rev: 30926
2011-11-04 15:19:11 +00:00
Abhinav Gupta
049feaf0a2 ICU-8854 Class defines or inherits equals() but not hashCode().
X-SVN-Rev: 30925
2011-11-04 15:18:39 +00:00
Abhinav Gupta
f24d42939c ICU-8854 possible null pointer dereference
X-SVN-Rev: 30924
2011-11-04 15:18:01 +00:00
Abhinav Gupta
698b723ba9 ICU-8854 Dead store to local variable.
X-SVN-Rev: 30923
2011-11-04 15:17:52 +00:00
Abhinav Gupta
82962c12cb ICU-8854 Unused final instance variable. Should be static.
X-SVN-Rev: 30922
2011-11-04 15:17:34 +00:00
Abhinav Gupta
fc9b8646db ICU-8854 string concatenation in loop using + operator
X-SVN-Rev: 30863
2011-10-24 19:24:17 +00:00
Abhinav Gupta
1efa6d411f ICU-8854 bitwise and/or of signed byte value.
Values loaded from a byte array are sign extended to 32-bits before any
bitwise operations are performed. Should &-down back to one-byte.

X-SVN-Rev: 30862
2011-10-24 19:24:08 +00:00
Abhinav Gupta
e35f720425 ICU-8854 dead store to local variable
X-SVN-Rev: 30861
2011-10-24 19:23:59 +00:00
Abhinav Gupta
3ae6d5af5b ICU-8854 computation of average could overflow.
X-SVN-Rev: 30860
2011-10-24 19:23:51 +00:00
Abhinav Gupta
5f0127fd5d ICU-8854 equals() does not check for null.
X-SVN-Rev: 30859
2011-10-24 19:23:44 +00:00
Abhinav Gupta
77598a7d62 ICU-8854 Unused final instance variable. Should be static.
X-SVN-Rev: 30858
2011-10-24 19:23:29 +00:00
Abhinav Gupta
04b9f1678a ICU-8854 unnecessary use of String constructor.
X-SVN-Rev: 30857
2011-10-24 19:23:20 +00:00
Abhinav Gupta
87f031cd34 ICU-8854 use of inefficient Number constructors. Use valueOf.
X-SVN-Rev: 30856
2011-10-24 19:14:19 +00:00
Abhinav Gupta
7f0d45c7ad ICU-8854 toString may return null
X-SVN-Rev: 30855
2011-10-24 19:14:10 +00:00
Abhinav Gupta
2192442a0e ICU-8854 integral division result cast to double (and floored).
Unnecessary because integral division already truncates the result.

X-SVN-Rev: 30854
2011-10-24 19:14:03 +00:00
Abhinav Gupta
9794f1727b ICU-8854 unchecked/unconfirmed cast.
X-SVN-Rev: 30853
2011-10-24 19:13:57 +00:00
Mark Davis
9424775dc1 ICU-8807 Small changes in Map, Property
X-SVN-Rev: 30852
2011-10-23 22:31:02 +00:00
Mark Davis
0e05f5d9d6 ICU-8898 Checked in (since shifting systems) but can retract if not approved.
X-SVN-Rev: 30851
2011-10-23 22:27:11 +00:00
Yoshito Umaoka
02bf9dd68a ICU-8649 Integrating JCite and embedding coding example in the ICU4J API reference doc.
X-SVN-Rev: 30841
2011-10-17 21:10:07 +00:00
Abhinav Gupta
728bdac7fa ICU-8854 possible null pointer dereference.
X-SVN-Rev: 30839
2011-10-17 20:24:17 +00:00
Abhinav Gupta
9c83ba6e64 ICU-8854 Unclosed streams.
X-SVN-Rev: 30838
2011-10-17 20:24:09 +00:00
Abhinav Gupta
0c1d2e9452 ICU-8854 Result of integer multiplication cast to long after
multiplication. Casting should be done before multiplication to avoid
overflow.

X-SVN-Rev: 30837
2011-10-17 20:23:59 +00:00
Abhinav Gupta
7a58e117d9 ICU-8854 Inefficient use of number constructors. Use valueOf instead.
X-SVN-Rev: 30836
2011-10-17 20:23:48 +00:00
Yoshito Umaoka
a5edd10c64 ICU-8446 System property user.script to initialize ULocale's script field on Java 6 or older JREs.
X-SVN-Rev: 30824
2011-10-14 22:11:56 +00:00
Abhinav Gupta
037aa7865a ICU-8876 disabled Clover where necessary.
Disabled for parts of  PluralRules, RBBIDataWrapper, RBBISetBuilder,
TimeZoneNames, Calendar.

X-SVN-Rev: 30811
2011-10-12 15:31:19 +00:00
Abhinav Gupta
ab30e3c400 ICU-8876 added test for SelectFormat.format exception.
X-SVN-Rev: 30810
2011-10-12 15:31:07 +00:00
Yoshito Umaoka
cd49cad3f7 ICU-8874 Modified TestCompareReferenceImpl to do the same tests with ICU4C corresponding test case. Fixed problems in IDNAReference, which was obviously out of date. Restored toUnicode tests in TestErrorCases (but still excluding ASCII only error cases).
X-SVN-Rev: 30805
2011-10-07 22:35:38 +00:00
Abhinav Gupta
cd5ec415e7 ICU-8876 Filtered asserts from coverage reports.
X-SVN-Rev: 30803
2011-10-06 20:07:21 +00:00
Yoshito Umaoka
f996620c7b ICU-8856 Lower case release file name - m1 instead of M1.
X-SVN-Rev: 30800
2011-10-04 21:52:36 +00:00
Yoshito Umaoka
35e6f14f26 ICU-8856 pom.xml to use 49-SNAPSHOT
X-SVN-Rev: 30796
2011-10-04 20:10:13 +00:00
Yoshito Umaoka
b9ae6e1a29 ICU-8856 API change report for 49M1
X-SVN-Rev: 30795
2011-10-04 20:08:06 +00:00
Yoshito Umaoka
33a27b6625 ICU-8856 Updated readme.html for 49M1
X-SVN-Rev: 30794
2011-10-04 20:05:56 +00:00
Yoshito Umaoka
ed2c135303 ICU-8856 Explicit private constructor to prevent MessagePatternUtil instatiation. This change fixed unwanted javadoc/api report for MessagePatternUtil constructor.
X-SVN-Rev: 30791
2011-10-04 15:59:21 +00:00
Yoshito Umaoka
53eb6fa62f ICU-8856 Fixed a javac compiler warning.
X-SVN-Rev: 30790
2011-10-04 15:45:25 +00:00
Yoshito Umaoka
406f46d075 ICU-8856 Fixed Eclipse compiler warnings.
X-SVN-Rev: 30789
2011-10-04 15:09:36 +00:00
Yoshito Umaoka
504e04477a ICU-8856 Organized import statements
X-SVN-Rev: 30788
2011-10-04 14:38:02 +00:00
Michael Ow
46fc0ce9da ICU-8864 Use fallback mechanism for empty string in ICUResourceTableAccess get method
X-SVN-Rev: 30782
2011-10-03 19:17:07 +00:00
Michael Ow
1b6e647811 ICU-8592 Update ICU4J time zone data to 2011k
X-SVN-Rev: 30777
2011-10-03 17:59:37 +00:00
Peter Edberg
69bb199a1b ICU-8753 Replace confusing use of dst variable with prevOffset / newOffset
X-SVN-Rev: 30772
2011-09-30 21:32:41 +00:00
Yoshito Umaoka
c27fc1d6e5 ICU-8518 Misspelled again... Corrected.
X-SVN-Rev: 30771
2011-09-30 21:17:08 +00:00
Yoshito Umaoka
a87cae4ff8 ICU-8518 Corrected spelling found by Markus's review
X-SVN-Rev: 30769
2011-09-30 20:52:56 +00:00
Abhinav Gupta
33f9e7e935 ICU-8856 copyright info on com.ibm.icu.text.SourceTargetUtility.
X-SVN-Rev: 30768
2011-09-30 20:28:27 +00:00
Michael Ow
6903a27947 ICU-8515 Add missing provisional tag to draft API CharsetEncoderICU.getMaxBytesForString
X-SVN-Rev: 30760
2011-09-30 19:16:20 +00:00
Abhinav Gupta
2dde8091b2 ICU-8268 fixed problems found in code review.
X-SVN-Rev: 30759
2011-09-30 19:01:29 +00:00
John Emmons
e14fa4e630 ICU-8846 Merge CLDRv21M1 data into ICU
X-SVN-Rev: 30756
2011-09-29 21:57:33 +00:00
Abhinav Gupta
9f4b2deecc ICU-8856 fixed newline removed by icu-svnprops-check.
X-SVN-Rev: 30754
2011-09-29 21:05:55 +00:00
Steven R. Loomis
f2dea4dba1 ICU-8855 undo bad commit r30752
X-SVN-Rev: 30753
2011-09-29 20:18:13 +00:00
Abhinav Gupta
27cdc577c8 ICU-8855 utf-8 file properties for icu4j (with copyright updates).
X-SVN-Rev: 30752
2011-09-29 19:44:32 +00:00
Abhinav Gupta
deca5a8197 ICU-8856 text file line endings fixed for icu4j
X-SVN-Rev: 30741
2011-09-28 21:16:24 +00:00
Abhinav Gupta
00d87011fd ICU-8268 Unitialized read of field in constructor.
X-SVN-Rev: 30738
2011-09-28 20:30:19 +00:00
Abhinav Gupta
dc1f5c5a80 ICU-8268 Fixed use of & instead of &&.
X-SVN-Rev: 30737
2011-09-28 20:30:12 +00:00
Abhinav Gupta
7048d48b6e ICU-8268 equals(Object o) methods assume that o is the correct type.
X-SVN-Rev: 30736
2011-09-28 20:30:06 +00:00
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
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
d00e5b14fb ICU-8328 switched to separate icudata.jar and icutzdata.jar
X-SVN-Rev: 30710
2011-09-26 15:30:39 +00:00
Angshuman Deb
aab73b3bb7 ICU-8796 fixed Javadoc with {@icuenhanced} tag
X-SVN-Rev: 30694
2011-09-20 01:40:44 +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
Markus Scherer
28e4515617 ICU-8788 deprecate ChoiceFormat
X-SVN-Rev: 30674
2011-09-16 00:24:27 +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
Mark Davis
acf033775b ICU-8816 Fix missing code to utilize fast frozen data structure.
X-SVN-Rev: 30654
2011-09-13 22:13:48 +00:00
Michael Ow
739dc92460 ICU-8815 Update alias table in ICU4J data
X-SVN-Rev: 30653
2011-09-13 21:35:51 +00:00
Michael Ow
844d3c5e1f ICU-8795 Remove suffix when CharsetMatch is creating a new string
X-SVN-Rev: 30648
2011-09-13 18:10:10 +00:00
Yoshito Umaoka
a6f627d664 ICU-8592 tzdata2011j to ICU4J
X-SVN-Rev: 30645
2011-09-12 19:37:31 +00:00
Mark Davis
666e129847 ICU-8807 Fix constant that can't be changed until U6.1
X-SVN-Rev: 30641
2011-09-09 18:16:53 +00:00
Mark Davis
5b237cf6bb ICU-8807 cleanup warnings
X-SVN-Rev: 30640
2011-09-08 23:07:29 +00:00
Mark Davis
c47d4fdbd7 ICU-8808 add access to punctuation characters
X-SVN-Rev: 30639
2011-09-08 22:38:05 +00:00
Mark Davis
e3546c39d6 ICU-8807 Add internal changes for use in unicode tools. Adds internal API, but doesn't change behavior if that is not called.
X-SVN-Rev: 30638
2011-09-08 22:28:40 +00:00
Markus Scherer
693640fd13 ICU-8805 fix some MessagePattern API comments
X-SVN-Rev: 30636
2011-09-08 19:27:48 +00:00
Markus Scherer
49407c6a1e ICU-8806 fix MessageFormat plural # formatting: fix offset lookup
X-SVN-Rev: 30634
2011-09-07 23:02:21 +00:00
Yoshito Umaoka
27b6a943bc ICU-8769 Reverted the previous change because of loading status issue. Move the cache to ICUResourceBundleReader that actually hold the resource data. Moved pool key bundle initialization to ICUResourceBundle to prevent cached instances modified by other classes.
X-SVN-Rev: 30633
2011-09-07 22:47:55 +00:00
Yoshito Umaoka
3959df3834 ICU-8769 Brought back ICUResourceBundle cache with improved cache logic.
X-SVN-Rev: 30627
2011-09-07 04:45:20 +00:00
John Emmons
2abb6e6d3b ICU-8423 Use stand-alone form of script name if possible in getDisplayScript() APIs
X-SVN-Rev: 30621
2011-09-06 20:28:21 +00:00
John Emmons
34cbf1552e ICU-8423 Data to support stand-alone script names
X-SVN-Rev: 30617
2011-09-02 01:08:00 +00:00
Yoshito Umaoka
f0b3038b80 ICU-8774 Updated the call sites of JDK service object creation depending on default Locale to use proper ULocale category default. On JRE 6, ULocale.setDefault(Category, ULocale) affects the behavior on ICU services. com.ibm.icu.base implementation should honor the category default.
X-SVN-Rev: 30608
2011-08-31 19:44:57 +00:00
Yoshito Umaoka
7f0deb8734 ICU-8774 Support locale category in com.ibm.icu.base plug-in. Also fixed a Java 5 support problem in DateFormatSymbols in com.ibm.icu.base.
X-SVN-Rev: 30602
2011-08-31 07:02:05 +00:00
Yoshito Umaoka
33f643ba29 ICU-8592 tzdata2011i to ICU4J. Also includes updates from CLDR (rev#6121)
X-SVN-Rev: 30589
2011-08-29 22:04:18 +00:00
John Emmons
d3f81bfa50 ICU-8611 Allow number patterns to be looked up by numbering system
X-SVN-Rev: 30576
2011-08-24 22:33:08 +00:00
Michael Ow
dd8732a309 ICU-7365 Promote approved data version API to draft 49 in ICU4J
X-SVN-Rev: 30571
2011-08-23 17:24:11 +00:00
Yoshito Umaoka
02375bb109 ICU-8630 Follow up fix - ULocale#setDefault(ULocale) to synchronize default Locale properly.
X-SVN-Rev: 30549
2011-08-19 20:44:12 +00:00
Markus Scherer
6a3384cfa2 ICU-8745 docs & comments from code review
X-SVN-Rev: 30533
2011-08-16 23:04:09 +00:00