@Before public void setup() { compilationHelper = CompilationTestHelper.newInstance(NullAway.class, getClass()); }
@Before public void setup() { compilationHelper = CompilationTestHelper.newInstance(UseAutoDispose.class, getClass()); }
@Before public void setup() { compilationHelper = CompilationTestHelper.newInstance(NullAway.class, getClass()); compilationHelper.setArgs( Arrays.asList( "-d", temporaryFolder.getRoot().getAbsolutePath(), "-XepOpt:NullAway:AnnotatedPackages=com.uber,com.ubercab,io.reactivex")); }
@Before public void setup() { compilationHelper = CompilationTestHelper.newInstance(NullAway.class, getClass()); compilationHelper.setArgs( Arrays.asList( "-d", temporaryFolder.getRoot().getAbsolutePath(), "-XepOpt:NullAway:KnownInitializers=" + "com.uber.nullaway.testdata.CheckFieldInitNegativeCases.Super.doInit," + "com.uber.nullaway.testdata.CheckFieldInitNegativeCases" + ".SuperInterface.doInit2", "-XepOpt:NullAway:AnnotatedPackages=com.uber,com.ubercab,io.reactivex", // We give the following in Regexp format to test that support "-XepOpt:NullAway:UnannotatedSubPackages=com.uber.nullaway.[a-zA-Z0-9.]+.unannotated", "-XepOpt:NullAway:ExcludedClasses=" + "com.uber.nullaway.testdata.Shape_Stuff," + "com.uber.nullaway.testdata.excluded", "-XepOpt:NullAway:ExcludedClassAnnotations=com.uber.nullaway.testdata.TestAnnot", "-XepOpt:NullAway:CastToNonNullMethod=com.uber.nullaway.testdata.Util.castToNonNull", "-XepOpt:NullAway:ExternalInitAnnotations=com.uber.ExternalInit", "-XepOpt:NullAway:ExcludedFieldAnnotations=com.uber.ExternalFieldInit")); }
@Before public void setup() { compilationHelper = CompilationTestHelper.newInstance(MethodInputParametersMustBeFinal.class, getClass()); }
@Before public void setup() { compilationHelper = CompilationTestHelper.newInstance(DoNotCreateSecureRandomDirectly.class, getClass()); }
@Before public void setup() { compilationHelper = CompilationTestHelper.newInstance(DoNotInvokeMessageDigestDirectly.class, getClass()); }
@Before public void setup() { compilationHelper = CompilationTestHelper.newInstance(DoNotReturnNullOptionals.class, getClass()); }
@Before public void before() { compilationHelper = CompilationTestHelper.newInstance(ValidateConstantMessage.class, getClass()); }
@Before public void before() { compilationHelper = CompilationTestHelper.newInstance(DangerousThrowableMessageSafeArg.class, getClass()); }
@Before public void before() { compilationHelper = CompilationTestHelper.newInstance(PreferSafeLoggingPreconditions.class, getClass()); }
@Before public void before() { compilationHelper = CompilationTestHelper.newInstance(DangerousThreadPoolExecutorUsage.class, getClass()); }
@Before public void before() { compilationHelper = CompilationTestHelper.newInstance(DangerousJsonTypeInfoUsage.class, getClass()); }
@Before public void before() { compilationHelper = CompilationTestHelper.newInstance(GuavaPreconditionsMessageFormat.class, getClass()); }
@Before public void before() { compilationHelper = CompilationTestHelper.newInstance(ShutdownHook.class, getClass()); }
@Before public void before() { compilationHelper = CompilationTestHelper.newInstance(LogSafePreconditionsConstantMessage.class, getClass()); }
@Before public void before() { compilationHelper = CompilationTestHelper.newInstance(SwitchStatementDefaultCase.class, getClass()); }
@Before public void before() { compilationHelper = CompilationTestHelper.newInstance(LogSafePreconditionsMessageFormat.class, getClass()); }
@Before public void before() { compilationHelper = CompilationTestHelper.newInstance(CatchBlockLogException.class, getClass()); }
@Before public void before() { compilationHelper = CompilationTestHelper.newInstance(PreconditionsConstantMessage.class, getClass()); }