=== modified file 'src/com/mysql/jdbc/LoadBalancingConnectionProxy.java' --- src/com/mysql/jdbc/LoadBalancingConnectionProxy.java 2013-12-04 09:07:29 +0000 +++ src/com/mysql/jdbc/LoadBalancingConnectionProxy.java 2014-02-27 09:44:21 +0000 @@ -1074,10 +1074,9 @@ } long[] newResponseTimes = new long[this.responseTimes.length + 1]; - - for (int i = 0; i < this.responseTimes.length; i++) { - newResponseTimes[i] = this.responseTimes[i]; - } + + System.arraycopy(this.responseTimes, 0, newResponseTimes, 0, + this.responseTimes.length); this.responseTimes = newResponseTimes; this.hostList.add(host); @@ -1143,4 +1142,4 @@ } -} \ No newline at end of file +} === modified file 'src/com/mysql/jdbc/MysqlIO.java' --- src/com/mysql/jdbc/MysqlIO.java 2013-10-16 16:25:02 +0000 +++ src/com/mysql/jdbc/MysqlIO.java 2014-02-27 09:43:46 +0000 @@ -5213,9 +5213,8 @@ int nanosOffset = 20; - for (int j = 0; j < nanosAsBytes.length; j++) { - datetimeAsBytes[nanosOffset + j] = nanosAsBytes[j]; - } + System.arraycopy(nanosAsBytes, 0, datetimeAsBytes, nanosOffset, + nanosAsBytes.length); unpackedRowData[columnIndex] = datetimeAsBytes; @@ -5379,4 +5378,4 @@ this.deflater = null; } } -} \ No newline at end of file +}