mirror of
https://gitee.com/farsunset/cim.git
synced 2025-07-27 10:30:34 +08:00
修改了一些问题
This commit is contained in:
parent
69303c1825
commit
4c6a1a5162
@ -56,7 +56,7 @@ public class CIMPushService extends Service {
|
||||
@Override
|
||||
public void onCreate() {
|
||||
connectorManager = CIMConnectorManager.getManager(this.getApplicationContext());
|
||||
notificationManager = getSystemService(NotificationManager.class);
|
||||
notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
|
||||
keepAliveReceiver = new KeepAliveBroadcastReceiver();
|
||||
|
@ -17,7 +17,7 @@ public class WebMessageDecoder extends SimpleChannelInboundHandler<Object> {
|
||||
|
||||
private final static String URI = "ws://localhost:%d";
|
||||
|
||||
private static ConcurrentHashMap<String, WebSocketServerHandshaker> handShakerMap = new ConcurrentHashMap<>();
|
||||
private static final ConcurrentHashMap<String, WebSocketServerHandshaker> handShakerMap = new ConcurrentHashMap<>();
|
||||
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(WebMessageDecoder.class);
|
||||
|
||||
|
@ -54,8 +54,8 @@ import java.util.concurrent.ConcurrentHashMap;
|
||||
public class CIMNioSocketAcceptor{
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(CIMNioSocketAcceptor.class);
|
||||
|
||||
private HashMap<String, CIMRequestHandler> innerHandlerMap = new HashMap<>();
|
||||
private ConcurrentHashMap<String,Channel> channelGroup = new ConcurrentHashMap<>();
|
||||
private final HashMap<String, CIMRequestHandler> innerHandlerMap = new HashMap<>();
|
||||
private final ConcurrentHashMap<String,Channel> channelGroup = new ConcurrentHashMap<>();
|
||||
|
||||
|
||||
private EventLoopGroup appBossGroup;
|
||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user