Alluxio / Community

New Contributor Tasks for Alluxio
20 stars 38 forks source link

[SMALLFIX] Java 8 improvement: replace collections.sort() with list.sort in /alluxio/core/server/worker/src/main/java/alluxio/worker/block/evictor/LRFUEvictor.java#getSortedCRF #478

Closed newnius closed 5 years ago

newnius commented 5 years ago

Change

    Collections.sort(sortedCRF, Comparator.comparingDouble(Entry::getValue));

to

    sortedCRF.sort(Comparator.comparingDouble(Entry::getValue));
JianhaoChen-nju commented 5 years ago

I have already modified the file asked. Why did my pull request #8816 still failed?