Skip to content

Commit

Permalink
Fix WildTypePattern.isArray
Browse files Browse the repository at this point in the history
The method falsely determined that a one-dimensional array was not an
array due to a one-off bug.

Relates to #24.

Signed-off-by: Alexander Kriegisch <[email protected]>
  • Loading branch information
kriegaex committed Jan 15, 2023
1 parent 9198f15 commit 5a8cdee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ public int getDimensions() {

@Override
public boolean isArray() {
return dim > 1;
return dim > 0;
}

/**
Expand Down

0 comments on commit 5a8cdee

Please sign in to comment.