-
Notifications
You must be signed in to change notification settings - Fork 26.4k
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
dubbo 3.2 Rest easyrest response add adaptation #12264
Conversation
支持Jackson序列化器扩展配置 代码格式化调整
# Conflicts: # dubbo-plugin/dubbo-spring-security/src/main/java/org/apache/dubbo/spring/security/jackson/ObjectMapperCodecCustomer.java
# Conflicts: # dubbo-distribution/dubbo-all/pom.xml # dubbo-plugin/dubbo-spring-security/src/main/java/org/apache/dubbo/spring/security/jackson/ObjectMapperCodec.java
Codecov Report
@@ Coverage Diff @@
## 3.2 #12264 +/- ##
============================================
- Coverage 69.87% 69.38% -0.50%
+ Complexity 341 2 -339
============================================
Files 3406 1606 -1800
Lines 159482 66216 -93266
Branches 26586 9712 -16874
============================================
- Hits 111443 45941 -65502
+ Misses 38344 15838 -22506
+ Partials 9695 4437 -5258 see 1995 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@AlbumenJ javax.ws.rs.core.Response 适配 |
Class<?> builtResponse = ClassUtils.forName("org.jboss.resteasy.specimpl.BuiltResponse"); | ||
|
||
Object o = builtResponse.newInstance(); | ||
|
||
Method method = builtResponse.getMethod("setEntity", Object.class); | ||
|
||
method.invoke(o, new String(body, StandardCharsets.UTF_8)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Handle NPE here
Kudos, SonarCloud Quality Gate passed! |
12142