[Demonstration 1]

[Buggy Method]
@Override
public int hashCode() {
    final int prime = 31;
    int result = 1;
    result = prime * result + layer;
    result = prime * result + tags.hashCode();
    result = prime * result + latLongs.hashCode();
    if (labelPosition != null) {
        result = prime * result + labelPosition.hashCode();
    }
    return result;
}

[Buggy Hunk]
result = prime * result + latLongs.hashCode();

[Patch]
result = prime * result + Arrays.deepHashCode(latLongs);

[Demonstration 2]

[Buggy Method]
@Override
public void onListItemClick(ListView listView, View view, int position, long id) {
    super.onListItemClick(listView, view, position, id);
    // Notify the active callbacks interface (the activity, if the
    // fragment is attached to one) that an item has been selected.
    if (callbacks != null) {
        callbacks.onItemSelected(worker.userProfile.chats.get(position).peerName);
    }
}

[Buggy Hunk]
callbacks.onItemSelected(worker.userProfile.chats.get(position).peerName);

[Patch]
callbacks.onItemSelected(worker.userProfile.chats.get(position).id);