posted 7 years ago
IntellIJ IDEA has many refactoring methods available to help migration. For example, they allow you to convert a regular loop with an if statement that puts the results into a collection into a stream/collect combination. There are many more available, too.
That said, I don't spend a lot of time converting legacy code unless I was already planning to refactor it. Still, it's easy enough to do with the right tools. This is especially useful when you can convert to library calls, like changing your own hand-crafted comparators into simple combinations of Comparator.comparing().thenComparing() chains.