Skip to content

Conversation

@frankfliu
Copy link
Contributor

  1. Add jacoco report
  2. improve code coverage
  3. Remove unrelated features

Description

Brief description of what this PR is about

  • If this change is a backward incompatible change, why must this change be made?
  • Interesting edge cases to note here

@frankfliu frankfliu requested review from a team and zachgk as code owners June 13, 2024 16:50
*/
private static void scanForPickle(Path directory) throws IOException, ModelException {
Pattern pattern = Pattern.compile(PICKLE_EXTENSIONS_REGEX);
Set<String> controls = new HashSet<>(Arrays.asList(securityControls.split("\\s+,\\s*")));
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't understand this regex, doesn't this require a whitespace before the comma? Ideally we just split around commas and then trim whitespace from each member

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch, fixed.

1. Add jacoco report
2. improve code coverage
3. Remove unrelated features
@frankfliu frankfliu merged commit b13deb7 into deepjavalibrary:master Jun 13, 2024
@frankfliu frankfliu deleted the secure branch June 13, 2024 19:26
frankfliu added a commit to frankfliu/djl-serving that referenced this pull request Jun 13, 2024
frankfliu added a commit to frankfliu/djl-serving that referenced this pull request Jun 13, 2024
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