Files
kotlin-fork/idea/resources/intentionDescriptions/ReplaceMapGetOrDefaultIntention/description.html
T
Toshiaki Kameyama f5c0a30c51 Add intention to replace "Map.getOrDefault"
#KT-21503 Fixed
2019-08-07 17:38:15 +03:00

5 lines
183 B
HTML

<html>
<body>
This intention replaces <b>map.getOrDefault(key, defaultValue)</b> function calls with the indexing and elvis operator (<b>map[key] ?: defaultValue</b>).
</body>
</html>