1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-12-05 18:41:11 +01:00

SMACK-363 Applied code cleanup patches for many generics related issues.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@13325 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
rcollier 2012-10-26 10:47:55 +00:00
parent 6dc64671e2
commit e08c8afe44
109 changed files with 577 additions and 605 deletions

View file

@ -45,12 +45,12 @@ public class ChatSettings extends IQ {
*/
public static final int BOT_SETTINGS = 2;
private List settings;
private List<ChatSetting> settings;
private String key;
private int type = -1;
public ChatSettings() {
settings = new ArrayList();
settings = new ArrayList<ChatSetting>();
}
public ChatSettings(String key) {
@ -69,16 +69,16 @@ public class ChatSettings extends IQ {
settings.add(setting);
}
public Collection getSettings() {
public Collection<ChatSetting> getSettings() {
return settings;
}
public ChatSetting getChatSetting(String key) {
Collection col = getSettings();
Collection<ChatSetting> col = getSettings();
if (col != null) {
Iterator iter = col.iterator();
Iterator<ChatSetting> iter = col.iterator();
while (iter.hasNext()) {
ChatSetting chatSetting = (ChatSetting)iter.next();
ChatSetting chatSetting = iter.next();
if (chatSetting.getKey().equals(key)) {
return chatSetting;
}