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

Fixes #920 java codegen for filter lines #923

Merged
merged 1 commit into from
Feb 10, 2019

Conversation

mfkahn
Copy link
Contributor

@mfkahn mfkahn commented Feb 9, 2019

Original VM template was reassigning the filtered list to the outputs variable
which would have no effect on the contents of the passed-in argument. Working
pipelines in the GRIP GUI would show zero filtered lines when the generated class
was used.

Altered the template to manipulate the passed-in list object instead, using
clear() and addAll().

Note: there doesn't appear to be unit tests for the generated classes, and I
don't have time to write them. I tested the fix using test cases in our
own FRC project that use the generated class.

Original VM template was reassigning the filtered list to the outputs variable
which would have no effect on the contents of the passed-in argument.  Working
pipelines in the GRIP GUI would show zero filtered lines when the generated class
was used.

Altered the template to manipulate the passed-in list object instead, using
`clear()` and `addAll()`.

Note: there doesn't appear to be unit tests for the generated classes, and I
don't have time to write them.  I tested the fix using test cases in our
own FRC project that use the generated class.
@codecov-io
Copy link

Codecov Report

Merging #923 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #923      +/-   ##
==========================================
- Coverage    54.5%   54.49%   -0.02%     
==========================================
  Files         304      304              
  Lines        8318     8318              
  Branches      535      535              
==========================================
- Hits         4534     4533       -1     
- Misses       3587     3589       +2     
+ Partials      197      196       -1

@SamCarlberg
Copy link
Member

Thanks for fixing this!

@SamCarlberg SamCarlberg merged commit d8cabe8 into WPIRoboticsProjects:master Feb 10, 2019
@JLLeitschuh
Copy link
Member

Thank you!

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.

4 participants