Replace Map::get by Map::getOrDefault

jSparrow 3.5.0 and jSparrow Maven Plugin 2.2.0 released!

The sparrows round their new nests chirp with glee as jSparrow is hatching a rule in the syntax tree!

The new Replace Map::get by Map::getOrDefault rule automatically replaces invocations of Map::get with the alternative Map::getOrDefault, thus eliminating the succeeding null checks.

This new rule brings jSparrow to a total of 58 automatic refactoring rules!

Find more information in our jSparrow Eclipse and jSparrow Maven Release Notes!

“Controlling complexity is the essence of computer programming.” — Brian Kernigan