equal
deleted
inserted
replaced
93 public void validateUri() throws IllegalArgumentException |
93 public void validateUri() throws IllegalArgumentException |
94 { |
94 { |
95 int index = iAbsoluteUri.indexOf("://"); |
95 int index = iAbsoluteUri.indexOf("://"); |
96 int nameLength = iAbsoluteUri.length(); |
96 int nameLength = iAbsoluteUri.length(); |
97 if ((index == -1) || (index != iAbsoluteUri.indexOf(':')) |
97 if ((index == -1) || (index != iAbsoluteUri.indexOf(':')) |
98 || ((index + 3) > nameLength)) |
98 || ((index + 3) >= nameLength)) |
99 { |
99 { |
100 throw new IllegalArgumentException(INVALID_URL.concat(iAbsoluteUri)); |
100 throw new IllegalArgumentException(INVALID_URL.concat(iAbsoluteUri)); |
101 } |
101 } |
102 iProtocol = iAbsoluteUri.substring(0, index); |
102 iProtocol = iAbsoluteUri.substring(0, index); |
103 if (iProtocol.compareTo(SMS_PROTOCOL) != 0 |
103 if (iProtocol.compareTo(SMS_PROTOCOL) != 0 |