You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@linkis.apache.org by GitBox <gi...@apache.org> on 2022/03/29 12:38:38 UTC
[GitHub] [incubator-linkis] husofskyzy opened a new issue #1824: [Feature] update commons-lang to commons-lang3
husofskyzy opened a new issue #1824:
URL: https://github.com/apache/incubator-linkis/issues/1824
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/incubator-linkis/issues) and found no similar feature requirement.
### Problem Description
_No response_
### Description
### 1.1 general commons Lang methods can be directly upgraded to Commons lang3 methods. The main modification is to convert some passed parameters from string to charsequences
### 1.2 when the parameters of the Commons Lang method are string [] {"Tom", "Lucy", "Bob"} the parameters of the Commons lang3 method are charsequences ("Tom", "Lucy", "Bob"), but in Scala, when the parameters of charsequences are passed, only one string parameter can be passed. If multiple parameters are passed, an error will be reported --- class (codeparser) charsequence searchStrings
val closeBrackets = Array("}", ")", "]")
Commons-lang3 parameter passing method stringutils endsWithAny(real, openBrackets)
Commons Lang parameter passing method stringutils endsWithAny(real, openBrackets: _*)
### 1.3 org. apache. commons. lang3. exception. ExceptionUtils. Getstacktrace replaces org apache. commons. lang3. exception. ExceptionUtils. getFullStackTrace
### 1.4 org. apache. commons. lang.ClassUtils. When getClass (classname) uses the commons-lang3 package, you need to add strong conversion (class <? Extensions labelbuilderfactory >) classutils getClass(className);
### Use case
_No response_
### solutions
_No response_
### Anything else
_No response_
### Are you willing to submit a PR?
- [X] Yes I am willing to submit a PR!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@linkis.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@linkis.apache.org
For additional commands, e-mail: dev-help@linkis.apache.org