Skip to content

Fix some code specification issues#2482

Merged
davidzollo merged 12 commits intoapache:devfrom
s751167520:dev
May 10, 2020
Merged

Fix some code specification issues#2482
davidzollo merged 12 commits intoapache:devfrom
s751167520:dev

Conversation

@s751167520
Copy link
Copy Markdown
Contributor

  • Pre-compile regular expressions to improve efficiency and solve concurrency problems

  • Solve the nullpoint problem that Object.equals may bring

  • Modify if else structure, add {} to improve code readability

Co-Authored-By: daili daili@users.noreply.github.com

Tips

What is the purpose of the pull request

  • Pre-compile regular expressions to improve efficiency and solve concurrency problems

  • Solve the nullpoint problem that Object.equals may bring

  • Modify if else structure, add {} to improve code readability

s751167520 and others added 6 commits April 21, 2020 11:50
* Pre-compile regular expressions to improve efficiency and solve concurrency problems

* Solve the nullpoint problem that Object.equals may bring

* Modify if else structure, add {} to improve code readability

Co-Authored-By: daili <daili@users.noreply.github.com>
@davidzollo

This comment has been minimized.

@Jave-Chen
Copy link
Copy Markdown
Contributor

Coverage for new codes is required more than 33%, please add more UT.

You can see more detail at:
https://sonarcloud.io/component_measures?id=apache-dolphinscheduler&pullRequest=2482&metric=new_coverage&view=list

@codecov-io
Copy link
Copy Markdown

codecov-io commented May 6, 2020

Codecov Report

Merging #2482 into dev will decrease coverage by 0.96%.
The diff coverage is 11.53%.

Impacted file tree graph

@@             Coverage Diff              @@
##                dev    #2482      +/-   ##
============================================
- Coverage     37.09%   36.12%   -0.97%     
+ Complexity     2534     2470      -64     
============================================
  Files           431      431              
  Lines         19856    19879      +23     
  Branches       2419     2419              
============================================
- Hits           7366     7182     -184     
- Misses        11825    12053     +228     
+ Partials        665      644      -21     
Impacted Files Coverage Δ Complexity Δ
...api/dto/resources/visitor/ResourceTreeVisitor.java 95.45% <ø> (ø) 15.00 <0.00> (ø)
...dolphinscheduler/api/service/ResourcesService.java 57.06% <0.00%> (ø) 67.00 <0.00> (ø)
...inscheduler/common/task/datax/DataxParameters.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...mmon/utils/process/ProcessEnvironmentForWin32.java 3.73% <0.00%> (ø) 1.00 <0.00> (ø)
...uler/common/utils/process/ProcessImplForWin32.java 0.64% <0.00%> (-0.02%) 1.00 <0.00> (ø)
...olphinscheduler/dao/entity/ProcessInstanceMap.java 41.93% <0.00%> (-8.07%) 9.00 <0.00> (ø)
.../org/apache/dolphinscheduler/dao/entity/Queue.java 51.61% <0.00%> (-7.65%) 11.00 <0.00> (ø)
...rg/apache/dolphinscheduler/dao/entity/Session.java 41.93% <0.00%> (-8.07%) 9.00 <0.00> (ø)
...e/dolphinscheduler/dao/utils/MysqlPerformance.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
.../dolphinscheduler/service/zk/AbstractZKClient.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
... and 20 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a5b0536...2a4c446. Read the comment docs.

Copy link
Copy Markdown
Contributor

@davidzollo davidzollo left a comment

Choose a reason for hiding this comment

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

+1

re-run test process
@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 1 Security Hotspot to review)
Code Smell A 1 Code Smell

19.4% 19.4% Coverage
7.7% 7.7% Duplication

@davidzollo davidzollo merged commit cb52853 into apache:dev May 10, 2020
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.

4 participants