blob: 3d40987a93631e2be8c6477bc4e613e3045e334a [file] [log] [blame]
Denis Vnukov90318622018-06-20 15:22:57 -07001// 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
5package class_inliner_lambda_j_style;
6
7public interface SamIface {
8 String foo();
9
10 class Consumer {
11 public static void consume(SamIface iface) {
Jinseong Jeon69b62182018-10-30 13:15:40 -070012 iface.foo();
Denis Vnukov90318622018-06-20 15:22:57 -070013 }
14
15 public static void consumeBig(SamIface iface) {
Denis Vnukoveb81dc92018-06-22 07:40:09 -070016 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 Vnukov90318622018-06-20 15:22:57 -070018 consume(iface);
19 }
20 }
21}