Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-20384

modernization: modernize map operations

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.4.0
    • None
    • Novice

    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.

      Attachments

        Issue Links

          Activity

            People

              orpiske Otavio Rodolfo Piske
              orpiske Otavio Rodolfo Piske
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: