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

Run multiple checker at the same time if error issues #724

Open
Ao-senXiong opened this issue Mar 27, 2024 · 0 comments
Open

Run multiple checker at the same time if error issues #724

Ao-senXiong opened this issue Mar 27, 2024 · 0 comments

Comments

@Ao-senXiong
Copy link
Member

Ao-senXiong commented Mar 27, 2024

For this example below, ./checker/bin/javac -processor nullness,regex Demo.java only output

Demo.java:6: error: [dereference.of.nullable] dereference of possibly-null reference o
        o.toString();
        ^
1 error

import org.checkerframework.checker.nullness.qual.Nullable;
import java.util.regex.Pattern;

class Demo {
    void test(@Nullable Object o) {
        o.toString();
	    Pattern.compile("x(");
    }
}

Think about how to run multiple checker at the same time when each checker issue errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant