Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-5038

Replace StringBuffer with StringBuilder

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Core 2.1.0
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Low

      Description

      Replace uses of synchronized class StringBuffer with unsynchronized StringBuilder
      where StringBuffer is used for local variables in which the state will not be shared among threads and thus the synchronization is not needed.

      you can easily find all occurences on github
      https://github.com/openmrs/openmrs-core/search?p=1&q=StringBuffer&type=Code&utf8=%E2%9C%93
      or using git/your ide

      see issue and affected classes on sonar
      https://ci.openmrs.org/sonar/drilldown/issues/1865?&rule=squid%3AS1149&rule_sev=CRITICAL

        Attachments

          Activity

            People

            • Assignee:
              mavrk Sanatt Abrol
              Reporter:
              teleivo Ivo Ulrich
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: