1 /* 2 * Copyright (C) 2016 The Dagger Authors. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package dagger.functional.producers.binds; 18 19 /** 20 * This is not marked with {@link javax.inject.Inject @Inject} in order to test that {@link 21 * dagger.Binds @Binds} properly translate to {@code dagger.internal.codegen.ProductionBinding}s 22 * when the right-hand-side of the method is also a production binding. We force this by adding a 23 * {@link dagger.producers.Produces @Produces} method to add it to the graph instead of relying on 24 * the {@code dagger.internal.codegen.ProvisionBinding} that would be created by default with an 25 * {@code @Inject} constructor. 26 */ 27 final class FooOfStrings implements Foo<String> {} 28