You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Otavio Rodolfo Piske (Jira)" <ji...@apache.org> on 2024/03/20 09:36:00 UTC

[jira] [Resolved] (CAMEL-20384) modernization: modernize map operations

     [ https://issues.apache.org/jira/browse/CAMEL-20384?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Otavio Rodolfo Piske resolved CAMEL-20384.
------------------------------------------
      Assignee: Otavio Rodolfo Piske
    Resolution: Fixed

This was fixed by the linked PR from Brice Frisco. Thanks for your contribution!

> modernization: modernize map operations
> ---------------------------------------
>
>                 Key: CAMEL-20384
>                 URL: https://issues.apache.org/jira/browse/CAMEL-20384
>             Project: Camel
>          Issue Type: Task
>            Reporter: Otavio Rodolfo Piske
>            Assignee: Otavio Rodolfo Piske
>            Priority: Major
>              Labels: help-wanted
>             Fix For: 4.4.0
>
>
> Use more modern map operations (see below) where this could lead to cleaner code. Check this list for outdated map usages: https://sonarcloud.io/project/issues?resolved=false&rules=java%3AS3824&id=apache_camel
> Modern map operations:
> * putIfAbsent
> * computeIfPresent
> * computeIfAbsent
> * compute
> Note: be careful with changing code in `core` as it could be part of the hot path, and it needs closer inspection. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)