Skip to content

Conversation

@piyush280599
Copy link
Contributor

No description provided.

final String subRes = HttpUtils.post(httpClient, target, subscribeParam);
final EventMeshRetObj ret = JsonUtils.parseObject(subRes, EventMeshRetObj.class);
if (ret.getRetCode() != EventMeshRetCode.SUCCESS.getRetCode()) {
throw new EventMeshException(ret.getRetCode(), ret.getRetMsg());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, the number of issue description lines may be incorrect due to the code update. The places to be changed here are as follows:
image
image
image

final EventMeshRetObj ret = JsonUtils.parseObject(subRes, EventMeshRetObj.class);
if (ret.getRetCode() != EventMeshRetCode.SUCCESS.getRetCode()) {
throw new EventMeshException(ret.getRetCode(), ret.getRetMsg());
if (Object.requireNonNull(ret).getRetCode() != EventMeshRetCode.SUCCESS.getRetCode()) {
Copy link
Contributor

@Alonexc Alonexc Feb 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modify: Objects.requireNonNull()
The same is true for other repair points.

if (ret.getRetCode() != EventMeshRetCode.SUCCESS.getRetCode()) {
throw new EventMeshException(ret.getRetCode(), ret.getRetMsg());
if (Object.requireNonNull(ret).getRetCode() != EventMeshRetCode.SUCCESS.getRetCode()) {
throw new EventMeshException(ret.getRetCode(),ret.getRetMsg());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A space is missing before ret.getRetMsg().

@codecov
Copy link

codecov bot commented Mar 3, 2023

Codecov Report

Merging #3262 (d44a011) into master (c978891) will increase coverage by 0.01%.
The diff coverage is 18.64%.

❗ Current head d44a011 differs from pull request most recent head da23245. Consider uploading reports for the commit da23245 to get more accurate results

@@             Coverage Diff              @@
##             master    #3262      +/-   ##
============================================
+ Coverage     13.07%   13.09%   +0.01%     
  Complexity     1159     1159              
============================================
  Files           550      550              
  Lines         28765    28724      -41     
  Branches       2857     2855       -2     
============================================
  Hits           3761     3761              
+ Misses        24679    24638      -41     
  Partials        325      325              
Impacted Files Coverage Δ
...mesh/common/protocol/grpc/protos/BatchMessage.java 0.00% <ø> (ø)
...entmesh/connector/kafka/consumer/ConsumerImpl.java 0.00% <0.00%> (ø)
.../connector/kafka/consumer/KafkaConsumerRunner.java 0.00% <0.00%> (ø)
...h/registry/nacos/service/NacosRegistryService.java 38.63% <0.00%> (-0.30%) ⬇️
...che/eventmesh/runtime/boot/AbstractHTTPServer.java 1.12% <0.00%> (-0.01%) ⬇️
...eventmesh/runtime/connector/ConnectorResource.java 0.00% <0.00%> (ø)
...ocol/http/processor/BatchSendMessageProcessor.java 0.00% <0.00%> (ø)
...ol/http/processor/BatchSendMessageV2Processor.java 0.00% <0.00%> (ø)
...protocol/http/processor/ReplyMessageProcessor.java 0.00% <0.00%> (ø)
...otocol/http/processor/SendAsyncEventProcessor.java 0.00% <0.00%> (ø)
... and 14 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Member

@mytang0 mytang0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mytang0 mytang0 merged commit 93342ee into apache:master Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants