[java] report access to package-private members declared in production code from tests (IDEA-372858)

GitOrigin-RevId: 6f046186e0f0a587e1aaab31dd55b9f76a28db96
This commit is contained in:
Nikolay Chashnikov
2025-05-16 17:38:06 +02:00
committed by intellij-monorepo-bot
parent 4e72b9064c
commit d039e59e88
7 changed files with 80 additions and 15 deletions

View File

@@ -2437,6 +2437,7 @@ extend.exception.fix.family.name=Make class extend 'Exception'
inspection.use.of.private.field.inner.classes.option=Ignore accesses from inner classes
refused.bequest.fix.family.name=Insert call to super method
inspection.suspicious.package.private.access.description={0} is {1}, but declared in a different module ''{2}''
inspection.suspicious.package.private.access.from.tests.description={0} is {1} and used in tests, but declared in the production source
replace.case.default.with.default=Replace 'case default' with 'default'
replace.case.default.null.with.null.default=Replace 'case default, null' with 'case null, default'
create.default.branch.fix.family.name=Create 'default' branch
@@ -2497,6 +2498,7 @@ inspection.test.method.without.assertions.exceptions.option=Ignore test methods
inspection.collection.must.have.initial.capacity.initializers.option=Don't report field initializers
utility.class.without.private.constructor.cant.generate.constructor.message=Utility class has instantiations, private constructor will not be created
inspection.suspicious.package.private.access.problem={0} overrides a package-private method from {1} which is declared in a different module ''{2}''
inspection.suspicious.package.private.access.from.tests.problem={0} in tests overrides a package-private method from {1} which is declared in the production source
inspection.condition.covered.by.further.condition.descr=Condition ''{0}'' covered by subsequent {1, choice, 1#condition ''''{2}''''|2#conditions}
create.missing.switch.branch=Create missing branch {0}
create.missing.switch.branches=Create missing branches {0}