Skip to content

Commit

Permalink
Merge pull request #1 from bspkrs/master
Browse files Browse the repository at this point in the history
Fix wrong parsing of primitive multidimensional array parameters (bspkrs#27)
  • Loading branch information
glowredman committed Jan 8, 2022
2 parents 0bd529e + 197de65 commit 949b824
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/bspkrs/mmv/ExcData.java
Expand Up @@ -99,7 +99,7 @@ public int compareTo(ExcData o)

public static String[] splitMethodDesc(String desc)
{
//\[*L[^;]+;|\[[ZBCSIFDJ]|[ZBCSIFDJ]
//\[*(?:L[^;]+;|[ZBCSIFDJ])
int beginIndex = desc.indexOf('(');
int endIndex = desc.lastIndexOf(')');
if (((beginIndex == -1) && (endIndex != -1)) || ((beginIndex != -1) && (endIndex == -1)))
Expand All @@ -117,7 +117,7 @@ public static String[] splitMethodDesc(String desc)
{
x0 = desc.substring(beginIndex + 1, endIndex);
}
Pattern pattern = Pattern.compile("\\[*L[^;]+;|\\[[ZBCSIFDJ]|[ZBCSIFDJ]");
Pattern pattern = Pattern.compile("\\[*(?:L[^;]+;|[ZBCSIFDJ])");
Matcher matcher = pattern.matcher(x0);

ArrayList<String> listMatches = new ArrayList<String>();
Expand Down

0 comments on commit 949b824

Please sign in to comment.