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

Getting SuspiciousShadedClassUse.java on Sonar based on package name #411

Open
YassinHajaj opened this issue Mar 1, 2021 · 2 comments
Open

Comments

@YassinHajaj
Copy link

Reproducible scenario:

package be.yassinhajaj.com.bla;

public enum MyEnum {
    BLA
}

When this enum is scanned by Sonar, it raises the error.
I might close the issue, but pretty sure people will stumble upon the same problem, might probably better to fix it at the root.

@mebigfatguy
Copy link
Owner

the detector is working as suspected. That package name is sus, if it really is a normal package name. Not sure i can do anything about it.

@YassinHajaj
Copy link
Author

YassinHajaj commented Dec 3, 2023

Hello @mebigfatguy ,

It's been a while now and I'm not sure exactly what the scenario was but we can imagine that the whole project was using the same package name structure.

It was only raising the error for the enum IIRC, which I found strange.

I should have documented it better in the past though :) would have helped us a bit today.

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

No branches or pull requests

2 participants