iothub/device/iot-device-client/src/main/java/com/microsoft/azure/sdk/iot/device/twin/ParserUtility.java [56:67]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public static void validateStringUTF8(String str) throws IllegalArgumentException
    {
        if ((str == null) || str.isEmpty())
        {
            throw new IllegalArgumentException("parameter is null or empty");
        }

        if (str.getBytes(StandardCharsets.UTF_8).length != str.length())
        {
            throw new IllegalArgumentException("parameter contains non UTF-8 character");
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



provisioning/provisioning-service-client/src/main/java/com/microsoft/azure/sdk/iot/provisioning/service/configs/ParserUtility.java [56:67]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public static void validateStringUTF8(String str) throws IllegalArgumentException
    {
        if ((str == null) || str.isEmpty())
        {
            throw new IllegalArgumentException("parameter is null or empty");
        }

        if (str.getBytes(StandardCharsets.UTF_8).length != str.length())
        {
            throw new IllegalArgumentException("parameter contains non UTF-8 character");
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



