1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-06 09:16:02 +02:00

Bug 526669 - Use the Matcher API correctly in CodanProblemMarkerResolutionGenerator

Change-Id: Ia47cabea736fe2965f60117ae2074b6e2212d917
This commit is contained in:
Nathan Ridge 2017-11-14 20:37:25 -05:00
parent 12e709427d
commit a20271a780

View file

@ -84,6 +84,8 @@ public class CodanProblemMarkerResolutionGenerator implements IMarkerResolutionG
int n = matcher.groupCount();
if (n == 0)
return;
if (!matcher.matches())
return;
String[] res = new String[n];
for (int i = 0; i < n; i++) {
res[i] = matcher.group(i + 1);