mirror of
https://github.com/corda/corda.git
synced 2025-01-22 12:28:11 +00:00
fix Class.isArray for case this == Class.class
This commit is contained in:
parent
dd82b58dad
commit
0544ab381f
@ -450,7 +450,7 @@ public final class Class <T> implements Type, GenericDeclaration {
|
||||
}
|
||||
|
||||
public boolean isArray() {
|
||||
return arrayElementSize != 0;
|
||||
return this != Class.class && arrayElementSize != 0;
|
||||
}
|
||||
|
||||
public boolean isInstance(Object o) {
|
||||
|
Loading…
Reference in New Issue
Block a user