Skip to content

Commit 7610007

Browse files
committed
Clone bounds arrays in WildcardTypeImpl, as done for arrays in other type implementations
1 parent fc76333 commit 7610007

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/ch/jalu/typeresolver/typeimpl/WildcardTypeImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ public static WildcardType newUnboundedWildcard() {
5858

5959
@Override
6060
public Type[] getUpperBounds() {
61-
return upperBounds;
61+
return upperBounds.clone();
6262
}
6363

6464
@Override
6565
public Type[] getLowerBounds() {
66-
return lowerBounds;
66+
return lowerBounds.clone();
6767
}
6868

6969
@Override

0 commit comments

Comments
 (0)