public static Handler buildDefault ( Config config ) { ImmutableList . Builder < Handler > handlerListBuilder = ImmutableList . builder ( ) ; if ( config . acknowledgeRestrictiveAnnotations ( ) ) { // This runs before LibraryModelsHandler, so that library models can override third-party // bytecode annotations handlerListBuilder . add ( new RestrictiveAnnotationHandler ( config ) ) ; } if ( config . isJarInferEnabled ( ) ) { handlerListBuilder . add ( new InferredJARModelsHandler ( config ) ) ; } if ( config . handleTestAssertionLibraries ( ) ) { handlerListBuilder . add ( new AssertionHandler ( ) ) ; } handlerListBuilder . add ( new LibraryModelsHandler ( ) ) ; handlerListBuilder . add ( new RxNullabilityPropagator ( ) ) ; handlerListBuilder . add ( new ContractHandler ( ) ) ; handlerListBuilder . add ( new ApacheThriftIsSetHandler ( ) ) ; if ( config . checkOptionalEmptiness ( ) ) { handlerListBuilder . add ( new OptionalEmptinessHandler ( config ) ) ; } return new CompositeHandler ( handlerListBuilder . build ( ) ) ; }
Builds the default handler for the checker .