-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The usage of Log4j2 Strings Util class in the code makes users force dependency on log4j2. #345
Comments
I agree with you, we can use commons-lang3 StringUtils to replaces Strings in log4j-api, and upgrade commons-lang to commons-lang3 in the project. |
Done. PTAL By the way, Is there a plan to publish new version to the Maven repository recently? The dubbo-spi-extension repository have some modules about sofa-registry and we has been doing version upgrading and writing unit tests. The is some problem encountered this issue when writing unit tests. |
why use common-lang will cause problem when writing unit tests, what are the problems? |
The main issue is the It will cause
While excluded the
I can certainly remove the exclusion statements, but I would recommend not force users dependency on log4j2. I just upgraded commons-lang to commons-lang3 based on this suggestion.
However, some modules in the project still has the commons-lang library such as If upgrade commons-lang to commons-lang3 is not necessary, I will close this PR and recreate another pr. |
In what area(s)?
/area test-and-release
sofa-registry/server/server/session/src/main/java/com/alipay/sofa/registry/server/session/wrapper/BlacklistWrapperInterceptor.java
Line 31 in 3d8297a
sofa-registry/server/server/integration/src/main/java/com/alipay/sofa/registry/server/integration/RegistryApplication.java
Line 45 in 3d8297a
Describe the feature
Please use the commons-lang3 library or maintain self StringUtils class in the project.
The text was updated successfully, but these errors were encountered: