Skip to content

Optimize ParameterUtils.curingGlobalParams() execution efficiency#2090

Merged
davidzollo merged 3 commits intoapache:devfrom
yh2388:optimize-params-utils-1
Mar 5, 2020
Merged

Optimize ParameterUtils.curingGlobalParams() execution efficiency#2090
davidzollo merged 3 commits intoapache:devfrom
yh2388:optimize-params-utils-1

Conversation

@yh2388
Copy link
Copy Markdown
Contributor

@yh2388 yh2388 commented Mar 5, 2020

Directly return null when globalParamList is null or empty.

Remove excess null check.

@codecov-io
Copy link
Copy Markdown

Codecov Report

❗ No coverage uploaded for pull request base (dev@d33b883). Click here to learn what that means.
The diff coverage is 83.33%.

Impacted file tree graph

@@          Coverage Diff           @@
##             dev    #2090   +/-   ##
======================================
  Coverage       ?   33.18%           
  Complexity     ?     1555           
======================================
  Files          ?      313           
  Lines          ?    15532           
  Branches       ?     1883           
======================================
  Hits           ?     5155           
  Misses         ?     9850           
  Partials       ?      527
Impacted Files Coverage Δ Complexity Δ
.../dolphinscheduler/common/utils/ParameterUtils.java 59.37% <83.33%> (ø) 13 <7> (?)

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 d33b883...ba3231c. Read the comment docs.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Mar 5, 2020

Kudos, SonarCloud Quality Gate passed!

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

100.0% 100.0% Coverage
0.0% 0.0% Duplication

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.

good job,the code is very high quality

+1
looking forward to your next contribution

@davidzollo davidzollo merged commit 1f92b4c into apache:dev Mar 5, 2020
@davidzollo davidzollo added the enhancement New feature or request label Mar 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants