Skip to content

The escape char is not showing up on the UI #91

Open
@evelinec

Description

@evelinec

The test class has the following line of code that uses escape char:

1 <= Integer.parseInt(metric.split("\\s+")[metric.split("\\s+").length - 1]));

It shows up on the ol.io UI as:

1 <= Integer.parseInt(metric.split("\s+")[metric.split("\s+").length - 1]));

On Linux and Mac, the later causes a code compilation error:

/root/guides/PRs/guide-microprofile-metrics/start/src/test/java/it/io/openliberty/guides/metrics/MetricsIT.java:73: error: illegal escape character
            1 <= Integer.parseInt(metric.split("\s+")[metric.split("\s+").length - 1]));

Metadata

Metadata

Assignees

No one assigned

    Labels

    Blocked byBlocked by other issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions