ololo3000 commented on a change in pull request #9759:
URL: https://github.com/apache/ignite/pull/9759#discussion_r791227274



##########
File path: 
modules/core/src/main/java/org/apache/ignite/internal/client/router/impl/GridRouterCommandLineStartup.java
##########
@@ -49,20 +50,21 @@
      *
      * @param beans Beans loaded from spring configuration file.
      */
-    public void start(Map<Class<?>, Object> beans) {
-        log = (IgniteLogger)beans.get(IgniteLogger.class);
-
-        if (log == null) {
+    public void start(Map<Class<?>, Collection> beans) {
+        if (F.isEmpty(beans.get(IgniteLogger.class))) {

Review comment:
       Let's just change 
   `log = (IgniteLogger)beans.get(IgniteLogger.class);`
   to
   `log = F.<IgniteLogger>first(beans.get(IgniteLogger.class));`
   
   And do the same with tcpCfg.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to