Søren Gjesse | 600b824 | 2022-03-17 13:51:19 +0100 | [diff] [blame] | 1 | // Copyright (c) 2022, the R8 project authors. Please see the AUTHORS file |
| 2 | // for details. All rights reserved. Use of this source code is governed by a |
| 3 | // BSD-style license that can be found in the LICENSE file. |
| 4 | package basic; |
| 5 | |
| 6 | import dagger.Module; |
| 7 | import dagger.Provides; |
| 8 | |
| 9 | @Module |
| 10 | class ModuleUsingProvides { |
| 11 | @Provides |
| 12 | // @Singleton (added by transformer in some tests) |
| 13 | public static I1 i1() { |
| 14 | return new I1Impl2(); |
| 15 | } |
| 16 | |
| 17 | @Provides |
| 18 | // @Singleton (added by transformer in some tests) |
| 19 | public static I2 i2() { |
| 20 | return new I2Impl2(); |
| 21 | } |
| 22 | |
| 23 | @Provides |
| 24 | // @Singleton (added by transformer in some tests) |
| 25 | public static I3 i3() { |
| 26 | return new I3Impl2(); |
| 27 | } |
| 28 | } |