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:
parent
12e709427d
commit
a20271a780
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue