-
Notifications
You must be signed in to change notification settings - Fork 45
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
Conversation
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
|
||
if (config instanceof MapConfiguration) { | ||
((MapConfiguration) config).setDelimiterParsingDisabled(true); | ||
} |
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.
move into reloadIfNeed()
@@ -62,10 +59,12 @@ public HugeConfig(String configFile) { | |||
} | |||
|
|||
private void reloadIfNeed(Configuration conf) { | |||
if (conf instanceof MapConfiguration) { | |||
((MapConfiguration) conf).setDelimiterParsingDisabled(true); | |||
} |
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.
move to line 66
No description provided.