diff --git a/sql-plugin/src/main/scala/org/apache/spark/sql/rapids/test/cpuJsonExpressions.scala b/sql-plugin/src/main/scala/org/apache/spark/sql/rapids/test/cpuJsonExpressions.scala index 97d271b076f..0dd048967a8 100644 --- a/sql-plugin/src/main/scala/org/apache/spark/sql/rapids/test/cpuJsonExpressions.scala +++ b/sql-plugin/src/main/scala/org/apache/spark/sql/rapids/test/cpuJsonExpressions.scala @@ -203,7 +203,7 @@ object GetJsonObjectMask { oneToOneMap: Map[Char, Char], digitMap: Map[Char, Char]): String = { if (originStr != null) { - val buf = new StringBuffer(originStr.length) + val buf = new StringBuilder(originStr.length) var idx = 0 while (idx < originStr.length) { val originChar = originStr(idx)