aws-iot-device-sdk-java/src/main/java/com/amazonaws/services/iot/client/util/AwsIotWebSocketUrlSigner.java [95:107]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        if (endpoint == null) {
            throw new IllegalArgumentException("Invalid endpoint provided");
        }
        this.endpoint = endpoint.trim().toLowerCase();
        if (region == null) {
            throw new IllegalArgumentException("Invalid region provided");
        } else if(region.equals(REGION_TO_BE_DETERMINED)) {
            this.regionName = getRegionFromEndpoint(this.endpoint);
            if(this.regionName == null) {
                throw new IllegalArgumentException("Could not extract region from endpoint provided");
            }
        } else {
            this.regionName = region;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



aws-iot-device-sdk-java/src/main/java/com/amazonaws/services/iot/client/util/AwsIotWebSocketUrlSigner.java [119:131]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        if (endpoint == null) {
            throw new IllegalArgumentException("Invalid endpoint provided");
        }
        this.endpoint = endpoint.trim().toLowerCase();
        if (region == null) {
            throw new IllegalArgumentException("Invalid region provided");
        } else if(region.equals(REGION_TO_BE_DETERMINED)) {
            this.regionName = getRegionFromEndpoint(this.endpoint);
            if(this.regionName == null) {
                throw new IllegalArgumentException("Could not extract region from endpoint provided");
            }
        } else {
            this.regionName = region;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



