We use it when we offer suggested fixes in our code-review tool.
Some examples:
1.
if (map.get(key) == null) {
map.put(key, function(key));
}
->
map.putIfAbsent(key, function(key));
or, because `function` might be expensive, we also suggest...
map.computeIfAbsent(key, (K k) -> function(k));
2. String.equalsIgnoreCase is not i18n-correct, so we suggest either Ascii.equalsIgnoreCase (to be explicit about lack of i18n and maybe to avoid dependence on the default locale??) or a more complex, i18n-correct alternative.
3. String.getBytes() uses the system default charset. We suggest either specifying "use the default charset" (to make that dependency explicit) or else using UTF-8.