dmfs / jems

Java gems, a collection of Java utilities.
Apache License 2.0
5 stars 2 forks source link

Reintroduce SingleFunction, fixes #311 #313

Closed dmfs closed 3 years ago

dmfs commented 3 years ago

Looks like there is an issue with the generic argument inference in Java 12 in the class Digest. By introducing a SingleFunction we can fix this.

codecov[bot] commented 3 years ago

Codecov Report

Merging #313 (42467ea) into master (69216fc) will increase coverage by 0.00%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #313   +/-   ##
=========================================
  Coverage     99.33%   99.33%           
- Complexity      611      618    +7     
=========================================
  Files           151      153    +2     
  Lines          1345     1356   +11     
  Branches         73       73           
=========================================
+ Hits           1336     1347   +11     
  Misses            9        9           
Impacted Files Coverage Δ Complexity Δ
...n/java/org/dmfs/jems2/function/SingleFunction.java 100.00% <100.00%> (ø) 4.00 <4.00> (?)
src/main/java/org/dmfs/jems2/single/Digest.java 100.00% <100.00%> (ø) 9.00 <1.00> (ø)
.../org/dmfs/jems2/comparator/OptionalComparator.java 100.00% <0.00%> (ø) 3.00% <0.00%> (?%)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 69216fc...42467ea. Read the comment docs.