Kaydet (Commit) 5ff0c0c2 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1326973 SBSC: String concatenation in loop using + operator

Change-Id: I8fb8afa2951201106443f76fde3f55ead24d43c2
üst f852edc6
......@@ -250,19 +250,21 @@ public class UnoUrl {
while (true) {
char c = ',';
String aKey = "";
String aValue = "";
StringBuffer sb = new StringBuffer();
while ((pos < paramString.length())
&& ((c = paramString.charAt(pos++)) != '=')) {
aKey += c;
sb.append(c);
}
String aKey = sb.toString();
sb = new StringBuffer();
while ((pos < paramString.length())
&& ((c = paramString.charAt(pos++)) != ',')
&& c != ';') {
aValue += c;
sb.append(c);
}
String aValue = sb.toString();
if ((aKey.length() > 0) && (aValue.length() > 0)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment