New issue
Advanced search Search tips

Issue 862780 link

Starred by 1 user

Issue metadata

Status: Untriaged
Owner: ----
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

clang-format doesn't properly understand Java annotations.

Project Member Reported by mthiesse@chromium.org, Jul 11

Issue description

For example: https://crrev.com/c/1134091/7/chrome/android/javatests/src/org/chromium/chrome/browser/vr/WebVrDeviceTest.java

    @Test
    @MediumTest
    @CommandLineFlags.Remove({"enable-webvr"})
    @CommandLineFlags.Add({"enable-features=WebXR"})
    @VrActivityRestriction({VrActivityRestriction.SupportedActivity.ALL})
    public void testWebXrCapabilities() throws InterruptedException {

gets turned into the less readable:

    @Test
    @MediumTest
    @CommandLineFlags
            .Remove({"enable-webvr"})
            @CommandLineFlags.Add({"enable-features=WebXR"})
            @VrActivityRestriction({VrActivityRestriction.SupportedActivity.ALL})
            public void testWebXrCapabilities() throws InterruptedException {
 
Cc: thakis@chromium.org
thakis, mind triaging? I don't know which labels to apply, etc, so I just copied from  issue 781015 .

Sign in to add a comment