gerrit/java/com/google/gwtexpui/globalkey
Dave Borowitz 62210a3166 Convert simple anonymous Comparators to comparing()
Where a comparator is obviously comparing one or more derived keys,
either manually or with ComparisonChain, replace with the equivalent
comparing() call. Not all comparators are simple to translate in this
way, such as ChunkManager#getDiffChunkComparator. Even though these
cases could be improved, or, quite likely, they contain bugs, that work
is left for a future change.

In the common case of creating a comparator to pass to Collections#sort
to sort a newly-created ArrayList, replace these with equivalent stream
expressions. Again, not all cases of Collections#sort are simple enough
to tackle here.

In some of these cases, we could probably further alter the types to
more aggressively use immutable types. Generally speaking, that would
introduce ripple effects which would make this change less focused and
difficult to review. Don't do that, in order to limit the cleanup here.

Change-Id: I098d3820927367ee98c96698481cb0edcceb3d64
2018-08-31 08:47:32 -07:00
..
client Convert simple anonymous Comparators to comparing() 2018-08-31 08:47:32 -07:00
BUILD Dissolve gerrit-gwtexpui top-level directory 2017-10-31 11:02:36 -04:00
GlobalKey.gwt.xml Dissolve gerrit-gwtexpui top-level directory 2017-10-31 11:02:36 -04:00