Denis Vnukov | 9031862 | 2018-06-20 15:22:57 -0700 | [diff] [blame] | 1 | // Copyright (c) 2018, 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 | |
| 5 | package class_inliner_lambda_j_style; |
| 6 | |
| 7 | public interface SamIface { |
| 8 | String foo(); |
| 9 | |
| 10 | class Consumer { |
| 11 | public static void consume(SamIface iface) { |
Jinseong Jeon | 69b6218 | 2018-10-30 13:15:40 -0700 | [diff] [blame] | 12 | iface.foo(); |
Denis Vnukov | 9031862 | 2018-06-20 15:22:57 -0700 | [diff] [blame] | 13 | } |
| 14 | |
| 15 | public static void consumeBig(SamIface iface) { |
Denis Vnukov | eb81dc9 | 2018-06-22 07:40:09 -0700 | [diff] [blame] | 16 | System.out.println("Bigger than inline limit, class name: " + Consumer.class.getName()); |
| 17 | System.out.println("Bigger than inline limit, result: '" + SamIface.class.getName() + "'"); |
Denis Vnukov | 9031862 | 2018-06-20 15:22:57 -0700 | [diff] [blame] | 18 | consume(iface); |
| 19 | } |
| 20 | } |
| 21 | } |