Bukkit/CraftBukkit — pull request #795 by Acrobot (2012-06-14 14:47:07+00:00)
Title: Fix add/removeInventory methods changing ItemStacks in arguments [Fixes BUKKIT-1803]

Well, the original method changed its arguments, so it could cause a disaster in code.

Associated JIRA ticket:
https://bukkit.atlassian.net/browse/BUKKIT-1803