magiconair / properties

Java properties scanner for Go
BSD 2-Clause "Simplified" License
323 stars 77 forks source link

Fixed Delete() function #18

Closed oconnormi closed 7 years ago

oconnormi commented 7 years ago

Delete function was creating a new array that contained only the key that was meant for deletion instead of everything else. The tests missed this since there was nothing that was asserting on the contents of the properties after a delete, just the number of items present.

magiconair commented 7 years ago

Good find. Thanks a lot. Amazing that this went unnoticed for so long.