-
Notifications
You must be signed in to change notification settings - Fork 53
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
Support custom black list. #29
Conversation
CI failed. Add this to
|
Codecov Report
@@ Coverage Diff @@
## 3.x #29 +/- ##
=========================================
+ Coverage 25.48% 25.58% +0.1%
=========================================
Files 157 157
Lines 11016 11041 +25
Branches 1951 1959 +8
=========================================
+ Hits 2807 2825 +18
- Misses 7923 7925 +2
- Partials 286 291 +5
Continue to review full report at Codecov.
|
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.
Add test case.
Scanner scanner = new Scanner(file); | ||
while (scanner.hasNextLine()) { | ||
String line = scanner.nextLine(); | ||
result.add(line); |
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.
Add to list if not blank.
String line = scanner.nextLine(); | ||
result.add(line); | ||
} | ||
scanner.close(); |
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 finally
.
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.
ok
use resource file and switcher to define blacklist .so user can set it by themself
use java resource path instead of the absolute path
use serialize.blacklist.file to define it.