This is correct, for clear() you don't need to call getItem(). All the other code should afaik clear in the way mentioned by @pspanja, so to make it consistent I would vote for changing this one.