taglib deprecated removeField internally in [1], but did not add the
deprecation warning until about four years later. The original bug
report [2] and pull request commit both mention not wanting to change
the original method's behaviour, but this was done anyway (perhaps by
mistake) in [3].
With that change, removeField(type) will not remove all tags of the
given type anymore, as the default for value has changed from
String::null to String().
This commit replaces explicit calls to removeField(type) with
removeFields(type), which has the correct behaviour. In writeXiph,
removeField is removed entirely, as addField(key, value) will replace
the tag by default.
[1] https://github.com/taglib/taglib/pull/681
[2] https://github.com/taglib/taglib/issues/651
[3] c05fa78406
master
parent
31ee76e8ee
commit
5e54cf2ca3
1 changed files with 5 additions and 6 deletions
Loading…
Reference in new issue