Skip to content

Allow suppress Fiesta annotation outputs. #2

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

Open
roll-w opened this issue Mar 20, 2024 · 0 comments
Open

Allow suppress Fiesta annotation outputs. #2

roll-w opened this issue Mar 20, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@roll-w
Copy link
Owner

roll-w commented Mar 20, 2024

In some cases, we don't want the log output of a lower priority issue to bother us.

We planning add a new annotation @SuppressFiesta to disable log output in some cases.

e.g.:

If you have annotated on a class, and you use the class in the other place, usually there will be a output:

@Dangerous("You are using the DangerousClass!")
public class DangerousClass {
}


public void doSomething() {
    DangerousClass danger = // do something...
}

Output will be like:

SomeClass.java:[1,1] Dangerous: You are using the DangerousClass! 

With the new @SuppressFiesta annotation, we could disable the output in this way:

@SuppressFiesta(Dangerous.class)
public void doSomething() {
    DangerousClass danger = // do something...
}

Further, we could using the SuppressWarnings annotation that defined in Java, like @SuppressWarnings("FiestaDanger") to disable the output.

@roll-w roll-w added the enhancement New feature or request label Mar 20, 2024
@roll-w roll-w added this to the 0.3.0 milestone Mar 20, 2024
@roll-w roll-w self-assigned this Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant