fix array comparison for byte[]

This commit is contained in:
Branislav Stojkovic
2019-02-26 16:20:40 +01:00
parent 67761b1027
commit 8bfb3ade55
3 changed files with 3 additions and 1 deletions
@@ -275,7 +275,9 @@ public abstract class AbstractComponent<T> implements IDIYComponent<T> {
return true;
if (o1 == null || o2 == null)
return false;
if (o1.getClass().isArray()) {
if (o1.getClass().isArray()) {
if (o1.getClass().getComponentType() == byte.class)
return Arrays.equals((byte[]) o1, (byte[]) o2);
return Arrays.equals((Object[]) o1, (Object[]) o2);
}
return o1.equals(o2);
Binary file not shown.
Binary file not shown.