修改了一些问题

This commit is contained in:
远方夕阳 2020-04-30 19:35:25 +08:00
parent 69303c1825
commit 4c6a1a5162
4 changed files with 4 additions and 4 deletions

View File

@ -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();

View File

@ -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);

View File

@ -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;