-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Anonymous type can be replaced with lambda + formatting along the way #520
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #520 +/- ##
============================================
+ Coverage 55.97% 55.97% +<.01%
- Complexity 9953 9961 +8
============================================
Files 1018 1018
Lines 62744 62741 -3
Branches 7062 7059 -3
============================================
- Hits 35118 35117 -1
+ Misses 25161 25160 -1
+ Partials 2465 2464 -1
Continue to review full report at Codecov.
|
4cde2c8 to
e52661f
Compare
e52661f to
cd88775
Compare
| String m2 = (String) o2.getKey(); | ||
| return m1.compareTo(m2); | ||
| } | ||
| al.sort((o1, o2) -> { |
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.
I guess this can be further simplified by using Comparator.comparing(Map.Entry::getKey)?
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.
That doesn't work out of the box for me, as the Map isn't typed strong enough.
al.sort(Comparator.comparing(o -> (String) o.getKey()));
could be good, though.
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.
That doesn't seem to compile, I think they need to be cast to Strings first.
Incorporate note from pascalschumacher. Relates to #520 on github
|
This causes the following exception when right-clicking on the "test plan": |
|
That means we don't have a UI test that would build a basic test plan via the context menu :-/ |
What is strange is not it didn't compile in my Eclipse, I faced the issue this morning using current master code in my work, so I don't understand how it does using gradle, or is there a missing clean (which I don't think is the case)? |
As discussed in #514