Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

One modifier is deleted from the method declaration when annotation is followed by a comment #13

Closed
IlyaMatsuev opened this issue Nov 19, 2022 · 0 comments · Fixed by #18
Assignees
Labels
bug Something isn't working

Comments

@IlyaMatsuev
Copy link
Owner

# Prettier options (if any):
apexExplicitAccessModifier: true
apexSortModifiers: true

Input:

@IsTest
public class TestClass {
    @isTest
    // Some comment goes here
    static void someTest() {
    }
}

Actual output:

@IsTest
public class TestClass {
    @isTest
    // Some comment goes here
    void someTest() {
    }
}

Expected output:

@IsTest
public class TestClass {
    @isTest
    // Some comment goes here
    static void someTest() {
    }
}
@IlyaMatsuev IlyaMatsuev added the bug Something isn't working label Nov 19, 2022
@IlyaMatsuev IlyaMatsuev self-assigned this Nov 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant