mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-22 00:42:16 -05:00
IRCService: suppress rawtype warning
This commit is contained in:
parent
39175635d9
commit
a357c42477
@ -66,9 +66,9 @@ public class IRCService extends Service
|
|||||||
|
|
||||||
private static final int FOREGROUND_NOTIFICATION = 1;
|
private static final int FOREGROUND_NOTIFICATION = 1;
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("rawtypes")
|
||||||
private static final Class[] mStartForegroundSignature = new Class[] { int.class, Notification.class };
|
private static final Class[] mStartForegroundSignature = new Class[] { int.class, Notification.class };
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("rawtypes")
|
||||||
private static final Class[] mStopForegroundSignature = new Class[] { boolean.class };
|
private static final Class[] mStopForegroundSignature = new Class[] { boolean.class };
|
||||||
|
|
||||||
public static final String ACTION_FOREGROUND = "org.yaaic.service.foreground";
|
public static final String ACTION_FOREGROUND = "org.yaaic.service.foreground";
|
||||||
@ -87,7 +87,7 @@ public class IRCService extends Service
|
|||||||
|
|
||||||
private HashMap<Integer, PendingIntent> alarmIntents;
|
private HashMap<Integer, PendingIntent> alarmIntents;
|
||||||
private HashMap<Integer, ReconnectReceiver> alarmReceivers;
|
private HashMap<Integer, ReconnectReceiver> alarmReceivers;
|
||||||
private Object alarmIntentsLock;
|
private final Object alarmIntentsLock;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create new service
|
* Create new service
|
||||||
@ -434,7 +434,7 @@ public class IRCService extends Service
|
|||||||
connection.setSaslCredentials(
|
connection.setSaslCredentials(
|
||||||
server.getAuthentication().getSaslUsername(),
|
server.getAuthentication().getSaslUsername(),
|
||||||
server.getAuthentication().getSaslPassword()
|
server.getAuthentication().getSaslPassword()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (server.getPassword() != "") {
|
if (server.getPassword() != "") {
|
||||||
@ -483,7 +483,7 @@ public class IRCService extends Service
|
|||||||
Broadcast.CONVERSATION_MESSAGE,
|
Broadcast.CONVERSATION_MESSAGE,
|
||||||
serverId,
|
serverId,
|
||||||
ServerInfo.DEFAULT_NAME
|
ServerInfo.DEFAULT_NAME
|
||||||
);
|
);
|
||||||
sendBroadcast(cIntent);
|
sendBroadcast(cIntent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user