Skip to content

Commit

Permalink
Ust: Fix SonarCloud Regex HotSpots flag
Browse files Browse the repository at this point in the history
Fix SonarCloud Regex related to [1]'s HotSpots issue.

[1]https://sonarcloud.io/organizations/eclipse/rules?open=java%3AS5852&rule_key=java%3AS5852

Change-Id: I9b2b8c36d4af6336e036f1d35a0dbe71e745ea2a
Signed-off-by: Estelle Foisy <estelle.foisy@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/c/tracecompass/org.eclipse.tracecompass/+/201498
Tested-by: Trace Compass Bot <tracecompass-bot@eclipse.org>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Marco Miller <marco.miller@ericsson.com>
  • Loading branch information
Estelle Foisy authored and marco-miller committed Apr 26, 2023
1 parent fd1fef8 commit 7fbf998
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public class UstDebugInfoStateProvider extends AbstractTmfStateProvider {
*
* <value> <type> <name> <source>:<line>
*/
private static final Pattern fNmPattern = Pattern.compile("(\\w+)(\\s+)(\\w)(\\s+)([^\\t]*)(\\t*)([^\\:]*)(:*)(.*)"); //$NON-NLS-1$
private static final Pattern fNmPattern = Pattern.compile("(\\w+)(\\s+)(\\w)(\\s{1,})([^\\t]*)(\\t*)([^\\:]*)(:*)(.*)"); //$NON-NLS-1$

private final LttngUst28EventLayout fLayout;
private final Map<String, Integer> fEventNames;
Expand Down

0 comments on commit 7fbf998

Please sign in to comment.