[rfc][icedtea-web] fix itweb-settings set command to allow duplicate strings

Lukasz Dracz ldracz at redhat.com
Wed Mar 11 19:19:51 UTC 2015


Hello,

This patch fixes the issue where the itweb-settings Set would not allow the key and value to be the same value.
Such as set blah blah. This was due to the isKey() method using .indexOf() which would always return the index of the first "blah" registering two keys with no values. The fix is to just alternate between the two parts of the if statement. It does this by using null for key and checking when it is null, to assign a key. When a value is assigned and written then the key is assigned back to null.

Thank you,
Lukasz Dracz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FixSetCommandToAllowDuplicates.patch
Type: text/x-patch
Size: 1218 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20150311/075c15ab/FixSetCommandToAllowDuplicates.patch>


More information about the distro-pkg-dev mailing list