mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
Now uses TestOnlyApiUsageProcessor and correctly finds top level parents. GitOrigin-RevId: 41789e2279fc4d4c885050f7ee475a6e8ab81e48
17 lines
511 B
Java
17 lines
511 B
Java
package test;
|
|
|
|
import org.jetbrains.annotations.VisibleForTesting;
|
|
import test.VisibleForTestingTestApi;
|
|
|
|
public class VisibleForTestingTest {
|
|
@VisibleForTesting
|
|
static int fooBar = 0;
|
|
|
|
public static void main(String[] args) {
|
|
System.out.println(fooBar);
|
|
System.out.println(VisibleForTestingTestApi.<warning descr="Test-only field is referenced in production code">foo</warning>);
|
|
VisibleForTestingTestApi.<warning descr="Test-only method is called in production code">bar</warning>();
|
|
}
|
|
}
|
|
|