Source:
private void checkPresenceCode( Set<Status> statusCodes, boolean isUserModification, MUCUser mucUser, FullJid from) { if (statusCodes.contains(Status.KICKED_307)) { if (isUserModification) { joined = false; for (UserStatusListener listener : userStatusListeners) { listener.kicked(mucUser.getItem().getActor(), mucUser.getItem().getReason()); } occupantsMap.clear(); nickname = null; userHasLeft(); } else { for (ParticipantStatusListener listener : participantStatusListeners) { listener.kicked(from, mucUser.getItem().getActor(), mucUser.getItem().getReason()); } } } if (statusCodes.contains(Status.BANNED_301)) { if (isUserModification) { joined = false; for (UserStatusListener listener : userStatusListeners) { listener.banned(mucUser.getItem().getActor(), mucUser.getItem().getReason()); } occupantsMap.clear(); nickname = null; userHasLeft(); } else { for (ParticipantStatusListener listener : participantStatusListeners) { listener.banned(from, mucUser.getItem().getActor(), mucUser.getItem().getReason()); } } } if (statusCodes.contains(Status.REMOVED_AFFIL_CHANGE_321)) { if (isUserModification) { joined = false; for (UserStatusListener listener : userStatusListeners) { listener.membershipRevoked(); } occupantsMap.clear(); nickname = null; userHasLeft(); } } if (statusCodes.contains(Status.NEW_NICKNAME_303)) { for (ParticipantStatusListener listener : participantStatusListeners) { listener.nicknameChanged(from, mucUser.getItem().getNick()); } } if (mucUser.getDestroy() != null) { MultiUserChat alternateMUC = multiUserChatManager.getMultiUserChat(mucUser.getDestroy().getJid()) for (UserStatusListener listener : userStatusListeners) { listener.roomDestroyed(alternateMUC, mucUser.getDestroy().getReason()); } occupantsMap.clear(); nickname = null; userHasLeft(); } }

Target:
private void checkPresenceCode( Set<Status> statusCodes, boolean isUserModification, MUCUser mucUser, FullJid from) { if (statusCodes.contains(Status.KICKED_307)) { if (isUserModification) { joined = false; for (UserStatusListener listener : userStatusListeners) { listener.kicked(mucUser.getItem().getActor(), mucUser.getItem().getReason()); } occupantsMap.clear(); nickname = null; userHasLeft(); } else { for (ParticipantStatusListener listener : participantStatusListeners) { listener.kicked(from, mucUser.getItem().getActor(), mucUser.getItem().getReason()); } } } if (statusCodes.contains(Status.BANNED_301)) { if (isUserModification) { joined = false; for (UserStatusListener listener : userStatusListeners) { listener.banned(mucUser.getItem().getActor(), mucUser.getItem().getReason()); } occupantsMap.clear(); nickname = null; userHasLeft(); } else { for (ParticipantStatusListener listener : participantStatusListeners) { listener.banned(from, mucUser.getItem().getActor(), mucUser.getItem().getReason()); } } } if (statusCodes.contains(Status.REMOVED_AFFIL_CHANGE_321)) { if (isUserModification) { joined = false; for (UserStatusListener listener : userStatusListeners) { listener.membershipRevoked(); } occupantsMap.clear(); nickname = null; userHasLeft(); } } if (statusCodes.contains(Status.NEW_NICKNAME_303)) { for (ParticipantStatusListener listener : participantStatusListeners) { listener.nicknameChanged(from, mucUser.getItem().getNick()); } } if (mucUser.getDestroy() != null) { MultiUserChat alternateMUC = multiUserChatManager.getMultiUserChat(mucUser.getDestroy().getJid()); for (UserStatusListener listener : userStatusListeners) { listener.roomDestroyed(alternateMUC, mucUser.getDestroy().getReason()); } occupantsMap.clear(); nickname = null; userHasLeft(); } }