diff --git a/icu4j/APIChangeReport.html b/icu4j/APIChangeReport.html index 24c77121d2e..8ade0f05c39 100644 --- a/icu4j/APIChangeReport.html +++ b/icu4j/APIChangeReport.html @@ -2,233 +2,171 @@ - + -ICU4J API Comparison: ICU4J 69.1 with ICU4J 70.1 +ICU4J API Comparison: ICU4J 70 with ICU4J 71 -

ICU4J API Comparison: ICU4J 69.1 with ICU4J 70.1

+

ICU4J API Comparison: ICU4J 70 with ICU4J 71


-

Removed from ICU4J 69.1

- -

Package com.ibm.icu.lang

- - -

Package com.ibm.icu.text

- - +

Removed from ICU4J 70

+

(no API removed)


-

Deprecated or Obsoleted in ICU4J 70.1

+

Deprecated or Obsoleted in ICU4J 71

(no API obsoleted)


-

Changed in ICU4J 70.1 (old, new)

+

Changed in ICU4J 71 (old, new)

+

(no API changed)

-

Package com.ibm.icu.lang

+
+

Promoted to stable in ICU4J 71

+ +

Package com.ibm.icu.number

+ +

Package com.ibm.icu.util

+
-

Promoted to stable in ICU4J 70.1

+

Added in ICU4J 71

Package com.ibm.icu.number

Package com.ibm.icu.text

Package com.ibm.icu.util

- - -
-

Added in ICU4J 70.1

- -

Package com.ibm.icu.lang

- - -

Package com.ibm.icu.text

- - -

Package com.ibm.icu.util

-
-

Contents generated by ReportAPI tool on Tue Sep 28 16:43:15 PDT 2021
© 2021 and later: Unicode, Inc. and others. License & terms of use: http://www.unicode.org/copyright.html

+

Contents generated by ReportAPI tool on Thu Mar 10 16:22:38 PST 2022
© 2022 and later: Unicode, Inc. and others. License & terms of use: http://www.unicode.org/copyright.html

diff --git a/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/ReportAPI.java b/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/ReportAPI.java index 8e8938e3de9..0fa921ec87f 100644 --- a/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/ReportAPI.java +++ b/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/ReportAPI.java @@ -284,9 +284,22 @@ public class ReportAPI { throw new IllegalStateException(); // UTF-8 should always be supported } + // Change names to remove minor, milli, and micro version numbers for the report. + String oldName = oldData.name; + int ptIndex = oldName.indexOf('.'); + if (ptIndex >= 0) { + oldName = oldName.substring(0, ptIndex); + } + String newName = newData.name; + ptIndex = newName.indexOf('.'); + if (ptIndex >= 0) { + newName = newName.substring(0, ptIndex); + } + + DateFormat fmt = new SimpleDateFormat("yyyy"); String year = fmt.format(new Date()); - String title = "ICU4J API Comparison: " + oldData.name + " with " + newData.name; + String title = "ICU4J API Comparison: " + oldName + " with " + newName; String info = "Contents generated by ReportAPI tool on " + new Date().toString(); String copyright = "© " + year + " and later: Unicode, Inc. and others." + " License & terms of use: " @@ -307,7 +320,7 @@ public class ReportAPI { pw.println(); pw.println("
"); - pw.println("

Removed from " + oldData.name +"

"); + pw.println("

Removed from " + oldName +"

"); if (removed.size() > 0) { printResults(removed, pw, true, false); } else { @@ -317,9 +330,9 @@ public class ReportAPI { pw.println(); pw.println("
"); if (internal) { - pw.println("

Withdrawn, Deprecated, or Obsoleted in " + newData.name + "

"); + pw.println("

Withdrawn, Deprecated, or Obsoleted in " + newName + "

"); } else { - pw.println("

Deprecated or Obsoleted in " + newData.name + "

"); + pw.println("

Deprecated or Obsoleted in " + newName + "

"); } if (obsoleted.size() > 0) { printResults(obsoleted, pw, true, false); @@ -329,7 +342,7 @@ public class ReportAPI { pw.println(); pw.println("
"); - pw.println("

Changed in " + newData.name + " (old, new)

"); + pw.println("

Changed in " + newName + " (old, new)

"); if (changed.size() > 0) { printResults(changed, pw, true, true); } else { @@ -338,7 +351,7 @@ public class ReportAPI { pw.println(); pw.println("
"); - pw.println("

Promoted to stable in " + newData.name + "

"); + pw.println("

Promoted to stable in " + newName + "

"); if (promotedStable.size() > 0) { printResults(promotedStable, pw, true, false); } else { @@ -350,7 +363,7 @@ public class ReportAPI { // internal API check is enabled pw.println(); pw.println("
"); - pw.println("

Promoted to draft in " + newData.name + "

"); + pw.println("

Promoted to draft in " + newName + "

"); if (promotedDraft.size() > 0) { printResults(promotedDraft, pw, true, false); } else { @@ -360,7 +373,7 @@ public class ReportAPI { pw.println(); pw.println("
"); - pw.println("

Added in " + newData.name + "

"); + pw.println("

Added in " + newName + "

"); if (added.size() > 0) { printResults(added, pw, true, false); } else { @@ -376,7 +389,7 @@ public class ReportAPI { pw.println(); pw.println(); - pw.println("=== Removed from " + oldData.name + " ==="); + pw.println("=== Removed from " + oldName + " ==="); if (removed.size() > 0) { printResults(removed, pw, false, false); } else { @@ -386,9 +399,9 @@ public class ReportAPI { pw.println(); pw.println(); if (internal) { - pw.println("=== Withdrawn, Deprecated, or Obsoleted in " + newData.name + " ==="); + pw.println("=== Withdrawn, Deprecated, or Obsoleted in " + newName + " ==="); } else { - pw.println("=== Deprecated or Obsoleted in " + newData.name + " ==="); + pw.println("=== Deprecated or Obsoleted in " + newName + " ==="); } if (obsoleted.size() > 0) { printResults(obsoleted, pw, false, false); @@ -398,7 +411,7 @@ public class ReportAPI { pw.println(); pw.println(); - pw.println("=== Changed in " + newData.name + " (old, new) ==="); + pw.println("=== Changed in " + newName + " (old, new) ==="); if (changed.size() > 0) { printResults(changed, pw, false, true); } else { @@ -407,7 +420,7 @@ public class ReportAPI { pw.println(); pw.println(); - pw.println("=== Promoted to stable in " + newData.name + " ==="); + pw.println("=== Promoted to stable in " + newName + " ==="); if (promotedStable.size() > 0) { printResults(promotedStable, pw, false, false); } else { @@ -417,7 +430,7 @@ public class ReportAPI { if (internal) { pw.println(); pw.println(); - pw.println("=== Promoted to draft in " + newData.name + " ==="); + pw.println("=== Promoted to draft in " + newName + " ==="); if (promotedDraft.size() > 0) { printResults(promotedDraft, pw, false, false); } else { @@ -427,7 +440,7 @@ public class ReportAPI { pw.println(); pw.println(); - pw.println("=== Added in " + newData.name + " ==="); + pw.println("=== Added in " + newName + " ==="); if (added.size() > 0) { printResults(added, pw, false, false); } else {