forked from I2P_Developers/i2p.i2p
* Console: Hide iframe on mobile browsers
* DataHelper: Speed up eq() (Ticket #437) * HTTPServer: Strip inbound X-Accept-Encoding header * netdb.jsp: HTML fixes * Plugins: Log error when console server not found * Reseed: Log tweak
This commit is contained in:
@@ -781,11 +781,10 @@ public class DataHelper {
|
||||
* This treats (null == null) as true, (null == (!null)) as false,
|
||||
* and unequal length arrays as false.
|
||||
*
|
||||
* @return Arrays.equals(lhs, rhs)
|
||||
*/
|
||||
public final static boolean eq(byte lhs[], byte rhs[]) {
|
||||
// this appears to be the way Arrays.equals is defined, so all the extra tests are unnecessary?
|
||||
boolean eq = (((lhs == null) && (rhs == null)) || ((lhs != null) && (rhs != null) && (Arrays.equals(lhs, rhs))));
|
||||
return eq;
|
||||
return Arrays.equals(lhs, rhs);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user