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

camel-core - Use StringBuilder instead of StringBuffer

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.6.0
    • camel-core
    • Unknown

    Description

      Its mostly in some unit tests, but StringBuilder is better than StringBuffer. Also when biased locking is removed from JVM in the future.

      And there is this on left

      camel-base/src/main/java/org/apache/camel/processor/aggregate/StringAggregationStrategy.java: StringBuffer result; // Aggregate in StringBuffer instead of StringBuilder, to make it thread safe

      git grep StringBuffer

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              davsclaus Claus Ibsen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: