Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-9453

Fix potential UnsupportedEncodingException

Details

    Description

      Currently the code assigns a new string with

      String s = new String(bytes, "UTF-8");
      

      This has the possibility of throwing an UnsupportedEncodingException.

       

      Using

      new String(bytes, StandardCharsets.UTF_8)

      avoids the possibility of throwing an UnsupportedEncodingException

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              hktang Henry Tang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0h
                  0h
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m