Skip to content
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

disable delimiter parsing when construct from MapConfiguration #74

Merged
merged 5 commits into from
Apr 26, 2021

Conversation

houzhizhen
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Apr 26, 2021

Codecov Report

Merging #74 (1f94c3f) into master (f72fac4) will increase coverage by 0.12%.
The diff coverage is 66.66%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master      #74      +/-   ##
============================================
+ Coverage     88.53%   88.66%   +0.12%     
- Complexity      922      924       +2     
============================================
  Files            63       63              
  Lines          2705     2708       +3     
  Branches        395      396       +1     
============================================
+ Hits           2395     2401       +6     
+ Misses          161      159       -2     
+ Partials        149      148       -1     
Impacted Files Coverage Δ Complexity Δ
...ava/com/baidu/hugegraph/version/CommonVersion.java 50.00% <ø> (ø) 1.00 <0.00> (ø)
...in/java/com/baidu/hugegraph/config/HugeConfig.java 88.23% <66.66%> (+5.15%) 20.00 <0.00> (+2.00)

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 f72fac4...1f94c3f. Read the comment docs.


if (config instanceof MapConfiguration) {
((MapConfiguration) config).setDelimiterParsingDisabled(true);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

move into reloadIfNeed()

@@ -62,10 +59,12 @@ public HugeConfig(String configFile) {
}

private void reloadIfNeed(Configuration conf) {
if (conf instanceof MapConfiguration) {
((MapConfiguration) conf).setDelimiterParsingDisabled(true);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

move to line 66

@Linary Linary merged commit 74b954a into master Apr 26, 2021
@Linary Linary deleted the config branch April 26, 2021 08:16
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