[
https://issues.apache.org/jira/browse/CAMEL-20384?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Otavio Rodolfo Piske updated CAMEL-20384:
-----------------------------------------
Description:
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.
was:
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
> 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
> Priority: Major
> Labels: help-wanted
> Fix For: 4.x
>
>
> 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)