yanickxia commented on a change in pull request #3034: Optimize performance, 
reduce unnecessary loops
URL: 
https://github.com/apache/incubator-shardingsphere/pull/3034#discussion_r324546567
 
 

 ##########
 File path: 
sharding-proxy/sharding-proxy-transport/sharding-proxy-transport-mysql/src/main/java/org/apache/shardingsphere/shardingproxy/transport/mysql/packet/command/MySQLCommandPacketType.java
 ##########
 @@ -253,6 +256,17 @@
      * @see <a 
href="https://dev.mysql.com/doc/internals/en/com-reset-connection.html";>COM_RESET_CONNECTION</a>
      */
     COM_RESET_CONNECTION(0x1f);
+
+    /**
+     * The cache map for MySQLCommandPacketType.
+     */
+    private static final Map<Integer, MySQLCommandPacketType> 
MYSQL_COMMAND_PACKET_TYPE_CACHE = new HashMap<Integer, 
MySQLCommandPacketType>() {
 
 Review comment:
   
![image](https://user-images.githubusercontent.com/6848593/64942175-fb0ce400-d89a-11e9-81eb-5ba9a529e82e.png)
   
   this is anyomous inner class, if omitted the type, a uncheck warning. i 
think keep it more better.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to