Anonymous type can be replaced with lambda + formatting along the way#520
Anonymous type can be replaced with lambda + formatting along the way#520ham1 wants to merge 1 commit intoapache:masterfrom
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.
I guess this can be further simplified by using Comparator.comparing(Map.Entry::getKey)?
There was a problem hiding this comment.
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.
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