diff --git a/migrator/config/java-api-mapper.xml b/migrator/config/java-api-mapper.xml
index ed623b6419a8f3b9064d3a2ca8e0c7703815a424..964748e077f4292c996b4c9d603b053da54a6102 100644
--- a/migrator/config/java-api-mapper.xml
+++ b/migrator/config/java-api-mapper.xml
@@ -55,7 +55,7 @@
-
+
@@ -65,7 +65,7 @@
-
+
@@ -199,7 +199,7 @@
-->
-
+
@@ -209,7 +209,7 @@
-
+
@@ -225,7 +225,7 @@
-->
-
+
@@ -243,7 +243,7 @@
-->
-
+
@@ -258,20 +258,37 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
@@ -283,7 +300,7 @@
-->
-
+
@@ -293,7 +310,7 @@
-
+
@@ -303,57 +320,169 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
-
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
@@ -366,7 +495,7 @@
-->
-
+
@@ -376,7 +505,7 @@
-
+
@@ -394,7 +523,7 @@
-->
-
+
@@ -404,7 +533,7 @@
-
+
@@ -420,7 +549,7 @@
-->
-
+
@@ -439,7 +568,7 @@
-->
-
+
@@ -460,7 +589,7 @@
-->
-
+
@@ -470,7 +599,7 @@
-
+
@@ -486,7 +615,7 @@
-->
-
+
@@ -505,7 +634,7 @@
-->
-
+
@@ -526,7 +655,7 @@
-->
-
+
@@ -536,7 +665,7 @@
-
+
@@ -552,7 +681,7 @@
-->
-
+
@@ -571,7 +700,7 @@
-->
-
+
@@ -592,7 +721,7 @@
-->
-
+
@@ -602,7 +731,7 @@
-
+
@@ -618,7 +747,7 @@
-->
-
+
@@ -637,7 +766,7 @@
-->
-
+
@@ -650,7 +779,7 @@
-
+
+
-
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -736,20 +875,29 @@
-->
+
+
+
+
+
+
+
+
-
+
-
+
-
+
@@ -758,48 +906,41 @@
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
-
-
diff --git a/migrator/docs/Java_API_to_ArkTS_API_mapping_rules.docx b/migrator/docs/Java_API_to_ArkTS_API_mapping_rules.docx
index 546e10db26560dce2b175475fd9fb67838fe1cc6..792dbc5959dbc45c10b9692309c6b4e847c7e4bf 100644
Binary files a/migrator/docs/Java_API_to_ArkTS_API_mapping_rules.docx and b/migrator/docs/Java_API_to_ArkTS_API_mapping_rules.docx differ
diff --git a/migrator/docs/java-api-list.xml b/migrator/docs/java-api-list.xml
index 4ffec05bcd3b170396dc7b8db123a53083bb17fb..ce3cb0dd184ec72f28be9b7603c06d8b2eb19981 100644
--- a/migrator/docs/java-api-list.xml
+++ b/migrator/docs/java-api-list.xml
@@ -93,7 +93,7 @@
// Interfaces:
java.lang.Appendable
java.lang.AutoCloseable
- java.lang.CharSequence
+ java.lang.CharSequence ==> std.core.String ????
java.lang.Cloneable
==> std.core.Comparable
@@ -149,7 +149,7 @@
boolean equals(Object obj) ArkTS: the same
float floatValue() ArkTS: the same
int hashCode() ArkTS: the same
- static int hashCode(byte value)
+ static int hashCode(byte value) ArkTS: new Byte(value).hasCode()
int intValue() ArkTS: the same
long longValue() ArkTS: the same
static byte parseByte(String s)
@@ -233,7 +233,7 @@
static byte UNASSIGNED
static byte UPPERCASE_LETTER
- Character(char value) ArkTS: the same
+ Character(char value) ArkTS: Char(char value)
static int charCount(int codePoint)
char charValue()
static int codePointAt(char[] a, int index)
@@ -258,15 +258,15 @@
static int getType(char ch)
static int getType(int codePoint)
int hashCode() ArkTS: the same
- static int hashCode(char value) ArkTS: the same
- static char highSurrogate(int codePoint) ArkTS: static getHighSurrogate(value: int): char
+ static int hashCode(char value) ArkTS: the same function name but the type is renamed
+ static char highSurrogate(int codePoint) ArkTS: static getHighSurrogate(codePoint: int): char
static boolean isAlphabetic(int codePoint)
static boolean isBmpCodePoint(int codePoint)
static boolean isDefined(char ch)
static boolean isDefined(int codePoint)
- static boolean isDigit(char ch) ArkTS: static isDecDigit(value: char): boolean
+ static boolean isDigit(char ch) ArkTS: the same function name but the type is renamed
static boolean isDigit(int codePoint)
- static boolean isHighSurrogate(char ch) ArkTS: the same
+ static boolean isHighSurrogate(char ch) ArkTS: the same function name but the type is renamed
static boolean isIdentifierIgnorable(char ch)
static boolean isIdentifierIgnorable(int codePoint)
static boolean isIdeographic(int codePoint)
@@ -278,13 +278,13 @@
static boolean isJavaIdentifierStart(int codePoint)
static boolean isJavaLetter(char ch)
static boolean isJavaLetterOrDigit(char ch)
- static boolean isLetter(char ch)
- static boolean isLetter(int codePoint) ArkTS: the same
+ static boolean isLetter(char ch) ArkTS: the same function but the type is renamed
+ static boolean isLetter(int codePoint)
static boolean isLetterOrDigit(char ch)
static boolean isLetterOrDigit(int codePoint)
- static boolean isLowerCase(char ch) ArkTS: the same
+ static boolean isLowerCase(char ch) ArkTS: the same function but the type is renamed
static boolean isLowerCase(int codePoint)
- static boolean isLowSurrogate(char ch) ArkTS: the same
+ static boolean isLowSurrogate(char ch) ArkTS: the same function but the type is renamed
static boolean isMirrored(char ch)
static boolean isMirrored(int codePoint)
static boolean isSpace(char ch)
@@ -299,27 +299,27 @@
static boolean isUnicodeIdentifierPart(int codePoint)
static boolean isUnicodeIdentifierStart(char ch)
static boolean isUnicodeIdentifierStart(int codePoint)
- static boolean isUpperCase(char ch) ArkTS: the same
+ static boolean isUpperCase(char ch) ArkTS: the same function but the type is renamed
static boolean isUpperCase(int codePoint)
static boolean isValidCodePoint(int codePoint)
- static boolean isWhitespace(char ch) ArkTS: the same
+ static boolean isWhitespace(char ch) ArkTS: the same function but the type is renamed
static boolean isWhitespace(int codePoint)
- static char lowSurrogate(int codePoint) ArkTS: static getLowSurrogate(value: int): char
+ static char lowSurrogate(int codePoint) ArkTS: static getLowSurrogate(codePoint: int): char
static int offsetByCodePoints(char[] a, int start, int count, int index, int codePointOffset)
static int offsetByCodePoints(CharSequence seq, int index, int codePointOffset)
static char reverseBytes(char ch)
static char[] toChars(int codePoint)
static int toChars(int codePoint, char[] dst, int dstIndex)
static int toCodePoint(char high, char low)
- static char toLowerCase(char ch) ArkTS: the same
+ static char toLowerCase(char ch) ArkTS: the same function but the type is renamed
static int toLowerCase(int codePoint)
- String toString()
- static String toString(char c)
+ String toString() ArkTS: the same
+ static String toString(char c) ArkTS: new Char(c).toString();
static char toTitleCase(char ch)
static int toTitleCase(int codePoint)
- static char toUpperCase(char ch) ArkTS: the same
+ static char toUpperCase(char ch) ArkTS: the same function but the type is renamed
static int toUpperCase(int codePoint)
- static Character valueOf(char c) ArkTS: the same
+ static Character valueOf(char c) ArkTS: the same function but the type is renamed
java.lang.Character.Subset
java.lang.Character.UnicodeBlock
diff --git a/migrator/src/com/ohos/migrator/apimapper/ArrayLiteralExpression.java b/migrator/src/com/ohos/migrator/apimapper/ArrayLiteralExpression.java
index a582394c7e940d9bc169b02375fc6e0713d3718b..ed9f1b7851194112c08eaf0a18f40339dec9162f 100644
--- a/migrator/src/com/ohos/migrator/apimapper/ArrayLiteralExpression.java
+++ b/migrator/src/com/ohos/migrator/apimapper/ArrayLiteralExpression.java
@@ -109,6 +109,7 @@ public class ArrayLiteralExpression extends ArrayList