"Declaration access can be weaker" not applied in Inspect Code in 2019.2.4

Answered

I noticed recently when running Analyze -> Inspect Code, the "Declaration access can be weaker" is not applied even though I see the code highlighted in editor (real time inspection). This was not an issue before - is this a bug in the recent version?

0
4 comments

Hello,

Please share the code sample where the issue is reproduced for you. Thank you

0
Avatar
Permanently deleted user
public class TestClass {
public void test() {

}
}
import org.junit.Test;

public class TestTest {

TestClass test = new TestClass();

@Test
public void test(){
test.test();
}
}

 

0

Thank you for the sample provided. Please follow the issue created at YouTrack:

https://youtrack.jetbrains.com/issue/IDEA-226551

1
Avatar
Permanently deleted user

Thank you, btw this could be also true for other inspections however I only noticed this one so far.

0

Please sign in to leave a comment.