CLDR-17399 Migrate from deprecated boxed primitive constructors
CLDR-17399
- [x] This PR completes the ticket.
ALLOW_MANY_COMMITS=true
Were these changes generated by a refactoring tool or ide?
On Sat, Feb 24, 2024, 01:28 Mihai Nita @.***> wrote:
CLDR-17399 https://unicode-org.atlassian.net/browse/CLDR-17399
- This PR completes the ticket.
ALLOW_MANY_COMMITS=true
You can view, comment on, or merge this pull request online at:
https://github.com/unicode-org/cldr/pull/3520 Commit Summary
- 4a734c5 https://github.com/unicode-org/cldr/pull/3520/commits/4a734c539297887ab29cc9a80cf863deca5537b5 CLDR-17399 Migrate from deprecated boxed primitive constructors to their replacements
File Changes
(35 files https://github.com/unicode-org/cldr/pull/3520/files)
- M tools/cldr-apps/src/main/java/org/json/JSONArray.java https://github.com/unicode-org/cldr/pull/3520/files#diff-9f71ebca8dd236d30c66324520313a6c064155fe9e33bc7027448b25fb05e7b9 (14)
- M tools/cldr-apps/src/main/java/org/json/JSONObject.java https://github.com/unicode-org/cldr/pull/3520/files#diff-7a62bd432bf20a9a8713a3d15440eb31d0b2ad98bbf41174376f67334f47a9dc (14)
- M tools/cldr-apps/src/main/java/org/json/JSONWriter.java https://github.com/unicode-org/cldr/pull/3520/files#diff-3dad2130f469f4409a9b5b5628f6480b3eb77d3af12f105444bcdf6cf5ae582e (2)
- M tools/cldr-apps/src/main/java/org/json/XML.java https://github.com/unicode-org/cldr/pull/3520/files#diff-1b8f4ac31655a18b5457b58457580c096608bf296e6157f7c7425da9ec18fda7 (18)
- M tools/cldr-apps/src/main/java/org/unicode/cldr/web/XPathTable.java https://github.com/unicode-org/cldr/pull/3520/files#diff-30a315b94a3092f4ba98d2340b1dbec02da89f27caa2a84ff9ccc09427662630 (2)
- M tools/cldr-apps/src/main/webapp/admin-usersWithOldVotes.jsp https://github.com/unicode-org/cldr/pull/3520/files#diff-29483d5deea6d5ad6862254224b7498b09915f4dd36db1db534843f57088fd68 (2)
- M tools/cldr-apps/src/main/webapp/numbers.jsp https://github.com/unicode-org/cldr/pull/3520/files#diff-4b588e0196a18b9d724fa17177e1cd47e58a909a57d58272d42895cf7860a3d6 (2)
- M tools/cldr-apps/src/main/webapp/reset.jsp https://github.com/unicode-org/cldr/pull/3520/files#diff-9f2e43ce15ff49f6eed84883233201dc9079099abbb5b14a10a00c908113f199 (2)
- M tools/cldr-code/src/main/java/org/unicode/cldr/posix/POSIXUtilities.java https://github.com/unicode-org/cldr/pull/3520/files#diff-ef956deab990551d145a3442633ae367d6a376b1fd80644cf7ce664439e04fe1 (2)
- M tools/cldr-code/src/main/java/org/unicode/cldr/posix/POSIX_LCMonetary.java https://github.com/unicode-org/cldr/pull/3520/files#diff-b8be4bcec1816bb2b9ded8aaf0068573299b5aa5ee9a2899a2472f2f4ea94ef2 (4)
- M tools/cldr-code/src/main/java/org/unicode/cldr/test/CheckNumbers.java https://github.com/unicode-org/cldr/pull/3520/files#diff-102ea7eccc5865aead0f94d6e87316d073a64b154059ce637875fd9bb80c279f (2)
- M tools/cldr-code/src/main/java/org/unicode/cldr/tool/ChartGrammaticalForms.java https://github.com/unicode-org/cldr/pull/3520/files#diff-2f5f83b470b7bc3ba13e8985e3a8119154354888f43e37045a3fa4d02c1b092c (2)
- M tools/cldr-code/src/main/java/org/unicode/cldr/tool/GeneratedPluralSamples.java https://github.com/unicode-org/cldr/pull/3520/files#diff-607349082724999fdfda418ca3b1ad938a90ddc711c0412a5eed81beecc90751 (2)
- M tools/cldr-code/src/main/java/org/unicode/cldr/tool/MatcherList.java https://github.com/unicode-org/cldr/pull/3520/files#diff-af4d04be2d56d84db75afa3354884635e1a0736694f1494c1a0a1eb752dee320 (2)
- M tools/cldr-code/src/main/java/org/unicode/cldr/tool/Misc.java https://github.com/unicode-org/cldr/pull/3520/files#diff-6aa66a3a3db3f7423ee6e12425ac0b4709473ca64cd843bcb14396abcd297af9 (2)
- M tools/cldr-code/src/main/java/org/unicode/cldr/util/BNF.java https://github.com/unicode-org/cldr/pull/3520/files#diff-be4681f2c68bfc83e23fcf04ac38908158c8e9ba8b77ab4980616f57689fb2aa (8)
- M tools/cldr-code/src/main/java/org/unicode/cldr/util/Counter2.java https://github.com/unicode-org/cldr/pull/3520/files#diff-f315da2f5ec7f474c63aca70458c6ef03fcaf53bc337c692a8ace9cb8d0c3f4e (4)
- M tools/cldr-code/src/main/java/org/unicode/cldr/util/IsoCurrencyParser.java https://github.com/unicode-org/cldr/pull/3520/files#diff-8132f6fbecd6f6de71c0bbd0ddfe359f9408a1f089da3551bafbfe05099abe20 (4)
- M tools/cldr-code/src/main/java/org/unicode/cldr/util/LogicalGrouping.java https://github.com/unicode-org/cldr/pull/3520/files#diff-43a5d89195f692a1decd88cfb5f6702ce5025fdcbf553b6fb6ea06dfb980f481 (8)
- M tools/cldr-code/src/main/java/org/unicode/cldr/util/MapComparator.java https://github.com/unicode-org/cldr/pull/3520/files#diff-4208950eb7069a4e33de9aa5a407592fe8eddf1807ffe69d6484dae012d56c03 (2)
- M tools/cldr-code/src/main/java/org/unicode/cldr/util/PathHeader.java https://github.com/unicode-org/cldr/pull/3520/files#diff-d8f5171addf72506a382773c33ad377654b50a106521da58b01492a04ca52ae1 (8)
- M tools/cldr-code/src/main/java/org/unicode/cldr/util/RegexLogger.java https://github.com/unicode-org/cldr/pull/3520/files#diff-02741cb6eb4f50ab3556f40c23cb61174694d4a6c1eb9fcd666cda3c0b7a3f20 (4)
- M tools/cldr-code/src/main/java/org/unicode/cldr/util/Tabber.java https://github.com/unicode-org/cldr/pull/3520/files#diff-0210e87b55c30bae47980a04ad4c59f5c3c00fb31796f96f034d71cc62516b45 (8)
- M tools/cldr-code/src/main/java/org/unicode/cldr/util/TestUtilities.java https://github.com/unicode-org/cldr/pull/3520/files#diff-bb4c641b6023a26f87d55cc04951bb37e88ead264eae94949b54fabe43da8159 (4)
- M tools/cldr-code/src/main/java/org/unicode/cldr/util/TimezoneFormatter.java https://github.com/unicode-org/cldr/pull/3520/files#diff-172d447dbf8d85a16a4684ebb05fd057d6fa09c99d65e531d8e3e58d9e2de3ed (2)
- M tools/cldr-code/src/main/java/org/unicode/cldr/util/UnitConverter.java https://github.com/unicode-org/cldr/pull/3520/files#diff-8337e5fd4bb55dd16a63e459c82df8599baed207556404729e2962e5328a5d48 (4)
- M tools/cldr-code/src/main/java/org/unicode/cldr/util/Visitor.java https://github.com/unicode-org/cldr/pull/3520/files#diff-33b71a925dcfcf5ec0516c42523d53b7a8c57e95b244a0579b98078933998a9e (6)
- M tools/cldr-code/src/main/java/org/unicode/cldr/util/XEquivalenceClass.java https://github.com/unicode-org/cldr/pull/3520/files#diff-5ad031ee6db542cd6fbdd02a43fd3bcd7e9fd8435b3a344f95371a0f758b35bb (2)
- M tools/cldr-code/src/main/java/org/unicode/cldr/util/ZoneParser.java https://github.com/unicode-org/cldr/pull/3520/files#diff-43b0b62ce55133987473b4966f6de558a999ea386cea95c983135017347817ad (14)
- M tools/cldr-code/src/test/java/org/unicode/cldr/unittest/TestBasic.java https://github.com/unicode-org/cldr/pull/3520/files#diff-16f978932a097175770f614f4c923a0a87468c5de7a9ee36afcdab50bbf44046 (2)
- M tools/cldr-code/src/test/java/org/unicode/cldr/unittest/TestDtdData.java https://github.com/unicode-org/cldr/pull/3520/files#diff-481a2270c053251016a26bbc24be5ddc5e1a6b2484f64fbca6736d2437680a8e (10)
- M tools/cldr-code/src/test/java/org/unicode/cldr/unittest/TestPathLookup.java https://github.com/unicode-org/cldr/pull/3520/files#diff-495aeef2a0dfceb187f401d6090ff4fb78b03a4e015e6f2c12308a6515a5523f (2)
- M tools/cldr-code/src/test/java/org/unicode/cldr/unittest/TestSupplementalInfo.java https://github.com/unicode-org/cldr/pull/3520/files#diff-36994b58edb9853f984f3f4b991c5a1acb4753a776a6c0b8adb7037e0b10292e (2)
- M tools/cldr-code/src/test/java/org/unicode/cldr/unittest/TestUnits.java https://github.com/unicode-org/cldr/pull/3520/files#diff-e912bcadf0d5075f640d61cc4f444b1f605f3b3fd2445386bc82a33e6c14bfb1 (2)
- M tools/cldr-code/src/test/java/org/unicode/cldr/unittest/XLocaleMatcherTest.java https://github.com/unicode-org/cldr/pull/3520/files#diff-9dbe1af9d05486efe4a7734b870e208f09b6eac77248e9bdb742b236fb8a5d16 (2)
Patch Links:
- https://github.com/unicode-org/cldr/pull/3520.patch
- https://github.com/unicode-org/cldr/pull/3520.diff
— Reply to this email directly, view it on GitHub https://github.com/unicode-org/cldr/pull/3520, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACJLEMBBRC5YU4WSGBZSXETYVGXEDAVCNFSM6AAAAABDX32W66VHI2DSMVQWIX3LMV43ASLTON2WKOZSGE2TEMRTGAZTAMQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
org.json is external but has already diverged
needs mvn spotless:apply
Were these changes generated by a refactoring tool or ide?
I wish :-)
Detected by erroprone. I added a profile for maven so that we can run from command line. (not a friendly report though)
I use the report as a guideline, but did the fixes in IntelliJ, with assistance. Could have accepted the fixes "as is", but they were not always the best option.
For example:
Integer foo = new Integer(123);
Proposed fix:
Integer foo = Integer.valueOf(123);
But that only introduced another errorprone issue (not reported if you limit yourself to test for a one issue type only). What I did in the end was:
Integer foo = 123;
TLDR: IDE assisted
org.json is external but has already diverged I will reconcile.
needs mvn spotless:apply Done. I didn't know about it, I don't touch CLDR too much (at all :-).
Thanks, M
Should I drop org.json, if it is external?