Skip to content

Commit 070c84c

Browse files
committed
8357178: Simplify Class::componentType
Reviewed-by: rriggs
1 parent 6674771 commit 070c84c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/java.base/share/classes/java/lang/Class.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3982,7 +3982,7 @@ public String descriptorString() {
39823982
*/
39833983
@Override
39843984
public Class<?> componentType() {
3985-
return isArray() ? componentType : null;
3985+
return getComponentType();
39863986
}
39873987

39883988
/**

0 commit comments

Comments
 (0)