Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(464)

Issue 199390043: ticket:11463: ICU4J ought to always close() resources (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 11 months ago by roubert (google)
Modified:
9 years, 11 months ago
Reviewers:
yoshito_umaoka, yoshito, markus.icu
Base URL:
svn+ssh://source.icu-project.org/repos/icu/icu4j/trunk
Visibility:
Public.

Description

ticket:11463: ICU4J ought to always close() resources R=yoshito_umaoka@us.ibm.com Committed: http://bugs.icu-project.org/trac/changeset/37034

Patch Set 1 #

Patch Set 2 : Updated copyright headers. #

Total comments: 44

Patch Set 3 : Rebase. #

Patch Set 4 : Code review. #

Total comments: 4

Patch Set 5 : Add copyInputStream() for use with JarFile. #

Patch Set 6 : Code review. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+576 lines, -443 lines) Patch
M main/classes/charset/src/com/ibm/icu/charset/CharsetMBCS.java View 1 2 3 2 chunks +5 lines, -3 lines 0 comments Download
M main/classes/charset/src/com/ibm/icu/charset/UConverterDataReader.java View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M main/classes/core/src/com/ibm/icu/impl/ICUBinary.java View 1 2 3 3 chunks +17 lines, -11 lines 0 comments Download
M main/classes/core/src/com/ibm/icu/impl/ICUConfig.java View 1 2 chunks +7 lines, -3 lines 0 comments Download
M main/classes/core/src/com/ibm/icu/impl/ICUResourceBundleReader.java View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M main/classes/core/src/com/ibm/icu/impl/URLHandler.java View 1 2 3 4 5 4 chunks +13 lines, -3 lines 0 comments Download
M main/classes/core/src/com/ibm/icu/impl/UnicodeRegex.java View 1 2 chunks +10 lines, -5 lines 0 comments Download
M main/classes/core/src/com/ibm/icu/impl/data/ResourceReader.java View 1 2 3 4 chunks +20 lines, -4 lines 0 comments Download
M main/classes/core/src/com/ibm/icu/impl/duration/impl/ResourceBasedPeriodFormatterDataService.java View 1 2 3 4 5 5 chunks +15 lines, -7 lines 0 comments Download
M main/classes/core/src/com/ibm/icu/text/BreakDictionary.java View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M main/classes/core/src/com/ibm/icu/text/Normalizer2.java View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M main/classes/core/src/com/ibm/icu/text/RuleBasedBreakIterator.java View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M main/classes/core/src/com/ibm/icu/text/StringPrep.java View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M main/classes/localespi/src/com/ibm/icu/impl/javaspi/ICULocaleServiceProvider.java View 1 2 chunks +7 lines, -3 lines 0 comments Download
M main/tests/collate/src/com/ibm/icu/dev/test/collator/CollationThaiTest.java View 1 2 3 2 chunks +56 lines, -69 lines 0 comments Download
M main/tests/core/src/com/ibm/icu/dev/test/bidi/BiDiConformanceTest.java View 1 2 3 3 chunks +142 lines, -135 lines 0 comments Download
M main/tests/core/src/com/ibm/icu/dev/test/charsetdet/TestCharsetDetector.java View 2 chunks +11 lines, -2 lines 0 comments Download
M main/tests/core/src/com/ibm/icu/dev/test/duration/LanguageTestRoot.java View 1 2 3 3 chunks +10 lines, -7 lines 0 comments Download
M main/tests/core/src/com/ibm/icu/dev/test/format/NumberFormatTest.java View 1 2 3 4 5 4 chunks +9 lines, -3 lines 0 comments Download
M main/tests/core/src/com/ibm/icu/dev/test/lang/UCharacterTest.java View 1 2 3 3 chunks +17 lines, -13 lines 0 comments Download
M main/tests/core/src/com/ibm/icu/dev/test/normalizer/ConformanceTest.java View 1 4 chunks +10 lines, -10 lines 0 comments Download
M main/tests/core/src/com/ibm/icu/dev/test/normalizer/UnicodeNormalizerConformanceTest.java View 1 4 chunks +10 lines, -10 lines 0 comments Download
M main/tests/core/src/com/ibm/icu/dev/test/rbbi/RBBITestExtended.java View 1 2 chunks +26 lines, -19 lines 0 comments Download
M main/tests/core/src/com/ibm/icu/dev/test/serializable/CompatibilityTest.java View 1 2 3 4 5 chunks +104 lines, -77 lines 0 comments Download
M main/tests/core/src/com/ibm/icu/dev/test/serializable/CoverageTest.java View 1 2 chunks +11 lines, -7 lines 0 comments Download
M main/tests/core/src/com/ibm/icu/dev/test/stringprep/IDNAConformanceTest.java View 1 2 3 5 chunks +7 lines, -13 lines 0 comments Download
M main/tests/core/src/com/ibm/icu/dev/test/text/SpoofCheckerTest.java View 1 2 chunks +14 lines, -5 lines 0 comments Download
M main/tests/core/src/com/ibm/icu/dev/test/util/ICUResourceBundleTest.java View 1 2 chunks +11 lines, -9 lines 0 comments Download
M main/tests/core/src/com/ibm/icu/dev/test/util/Trie2Test.java View 1 2 3 2 chunks +15 lines, -6 lines 0 comments Download
M main/tests/translit/src/com/ibm/icu/dev/test/translit/RegexUtilitiesTest.java View 1 2 chunks +8 lines, -3 lines 0 comments Download
M main/tests/translit/src/com/ibm/icu/dev/util/FileUtilities.java View 1 2 chunks +7 lines, -3 lines 0 comments Download

Messages

Total messages: 8
roubert (google)
9 years, 11 months ago (2015-02-04 23:13:05 UTC) #1
markus.icu
https://codereview.appspot.com/199390043/diff/20001/main/classes/core/src/com/ibm/icu/impl/ICUBinary.java File main/classes/core/src/com/ibm/icu/impl/ICUBinary.java (right): https://codereview.appspot.com/199390043/diff/20001/main/classes/core/src/com/ibm/icu/impl/ICUBinary.java#newcode360 main/classes/core/src/com/ibm/icu/impl/ICUBinary.java:360: ByteBuffer buffer = null; Other than the added @SuppressWarnings, ...
9 years, 11 months ago (2015-02-05 01:50:27 UTC) #2
roubert (google)
https://codereview.appspot.com/199390043/diff/20001/main/classes/core/src/com/ibm/icu/impl/ICUBinary.java File main/classes/core/src/com/ibm/icu/impl/ICUBinary.java (right): https://codereview.appspot.com/199390043/diff/20001/main/classes/core/src/com/ibm/icu/impl/ICUBinary.java#newcode360 main/classes/core/src/com/ibm/icu/impl/ICUBinary.java:360: ByteBuffer buffer = null; On 2015/02/05 01:50:26, markus.icu wrote: ...
9 years, 11 months ago (2015-02-13 15:31:27 UTC) #3
markus.icu
https://codereview.appspot.com/199390043/diff/20001/main/classes/core/src/com/ibm/icu/impl/ICUResourceBundleReader.java File main/classes/core/src/com/ibm/icu/impl/ICUResourceBundleReader.java (right): https://codereview.appspot.com/199390043/diff/20001/main/classes/core/src/com/ibm/icu/impl/ICUResourceBundleReader.java#newcode340 main/classes/core/src/com/ibm/icu/impl/ICUResourceBundleReader.java:340: @SuppressWarnings("resource") // Closed by getByteBufferFromInputStream(). On 2015/02/13 15:31:26, roubert ...
9 years, 11 months ago (2015-02-13 17:14:50 UTC) #4
roubert (google)
https://codereview.appspot.com/199390043/diff/20001/main/classes/core/src/com/ibm/icu/impl/ICUResourceBundleReader.java File main/classes/core/src/com/ibm/icu/impl/ICUResourceBundleReader.java (right): https://codereview.appspot.com/199390043/diff/20001/main/classes/core/src/com/ibm/icu/impl/ICUResourceBundleReader.java#newcode340 main/classes/core/src/com/ibm/icu/impl/ICUResourceBundleReader.java:340: @SuppressWarnings("resource") // Closed by getByteBufferFromInputStream(). On 2015/02/13 17:14:50, markus.icu ...
9 years, 11 months ago (2015-02-13 18:17:10 UTC) #5
markus.icu
Looks good to me.
9 years, 11 months ago (2015-02-13 19:38:14 UTC) #6
roubert (google)
Committed patchset #6 (id:100001) manually as 37034 (presubmit successful).
9 years, 11 months ago (2015-02-13 20:16:31 UTC) #7
yoshito
9 years, 11 months ago (2015-02-13 20:59:49 UTC) #8
Message was sent while issue was closed.
On 2015/02/13 20:16:31, roubert (google) wrote:
> Committed patchset #6 (id:100001) manually as 37034 (presubmit successful).

Thanks. I did not have bandwidth to review your changes in last two weeks..
Markus, thanks for the review.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b